T24: Removing MV groups in a version

1,265 views
Skip to first unread message

Igor Micev

unread,
Nov 17, 2009, 3:01:19 PM11/17/09
to jBASE
Hi All

I have a version and some fields grouped in a mv group. With an Autho
New Content routine I want to delete the content in the mv groups and
in the fields, but the boxes for the fields remain empty, so when on
F5 the messages is something like 'must enter value' ... or so

I want to remove the fields authomatically in that way that only one
mv group remains empty and the others removed. For now i have to do it
manually.

Can anyone help how to resolve this?

Thanks in advance
Igor

Rashid K.P

unread,
Nov 21, 2009, 1:10:30 PM11/21/09
to jb...@googlegroups.com
Hi,
 
   If my understanding is right , you want to delete all the multivalue set and keep only one set with  blank values..
 
   To do this apart from clearing the field , delete the multivalue set also in ur routine....
 
   for eg :
 
   MV.COUNT = DCOUNT(R.NEW(YOUR.FIELD.NAME),@VM)
   FOR  Z = 1 to MV.COUNT
         DEL  R.NEW(YOUR.FIELD.NAME)<1,Z>
   NEXT I
 
REgards,
RAshid
 
  


--
Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24

To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

VK

unread,
Nov 23, 2009, 7:46:04 AM11/23/09
to jBASE
Hi,
just assign an empty value to all of your fields in a group; e.g.
R.NEW(MY.FLD.1) = ''

vm

unread,
Nov 23, 2009, 8:46:29 AM11/23/09
to jBASE
Hello,
In auto new content routines you have an access to R.NEW array. If you
want to delete one or more group in multigroup you should use DEL
function for each field in mg. For example: DEL R.NEW(field.name)
<1,index>.

gabalian

unread,
Nov 24, 2009, 12:02:14 AM11/24/09
to jb...@googlegroups.com
Use a constant value "2" instead of the variable "Z" in DELL statement.
--
Imran Khan
T24 Technical Consultant
+92 334 3545114
Reply all
Reply to author
Forward
0 new messages