Hi Guys
I have created subitems but not in a roster form, now i get this message(refer to the attached file),
when i create my form. your help will be highly appreciated.
Regards
Thabiso
Sub-Items
Re: Sub-Items
This is because you already have the item on the form. You can't have both the item and the subitem on the form. Remove the item and then drop the subitem on the form again.
Re: Sub-Items
hey Josh i did that but it also doing the same thing, i think it only works on numeric than alphanumeric....
bcoz on numeric it works fine
bcoz on numeric it works fine
Re: Sub-Items
Subitems work with both alpha and numeric. Make sure that the item isn't on any other form in your application.
Re: Sub-Items
Please check the sample i did......
- Attachments
-
- Sub-Items.zip
- (1.79 KiB) Downloaded 382 times
Re: Sub-Items
In the example you posted your subitems overlap so you can have only one of them on the form. Q1_1_1_LINE_ONE starts at position 3 and is 30 long and Q1_1_2_LINE_TWO starts at position 5 so it is occupying the same space in the dictionary. You can see this clearly if you look at the layout view in the dictionary editor.
The general rule is that if two variables on the form key to the same digit in the dictionary then only one of them can be on the form. So you can't have both the child item and the parent item on the form and you can't have two sub-items that overlap on the form.
The general rule is that if two variables on the form key to the same digit in the dictionary then only one of them can be on the form. So you can't have both the child item and the parent item on the form and you can't have two sub-items that overlap on the form.
Re: Sub-Items
Hi Josh
Finally i managed
Thanks
Finally i managed
Thanks
Re: Sub-Items
Hi Guys
I have been trying to labels using:
PROC PERSON
setocclabel(PERSON,strip(PERSON_GENDER)))curocc());
but am getting this message:
ERROR: A multiply occurring group (or form) is expected near line 3 in PERSON procedure
what is it that am missing.
I have been trying to labels using:
PROC PERSON
setocclabel(PERSON,strip(PERSON_GENDER)))curocc());
but am getting this message:
ERROR: A multiply occurring group (or form) is expected near line 3 in PERSON procedure
what is it that am missing.
Re: Sub-Items
The index needs be in parentheses after the group name i.e. PERSON(curocc()) and not after the label as you have it.
In addition setocclabel requires the group name (name of the roster) and not the name of the dictionary record. Without seeing your app I cant tell if PERSON is the group name but if you haven't modified the name in the forms tree then chances the group name is PERSON000. The code below should work but you will need to verify that PERSON000 is the group name by looking at the roster name in the form tree.
In addition setocclabel requires the group name (name of the roster) and not the name of the dictionary record. Without seeing your app I cant tell if PERSON is the group name but if you haven't modified the name in the forms tree then chances the group name is PERSON000. The code below should work but you will need to verify that PERSON000 is the group name by looking at the roster name in the form tree.
setocclabel(PERSON000(curocc()), strip(PERSON_GENDER));
Re: Sub-Items
Hi Josh here is the Application...
- Attachments
-
- GetLabels funtion.zip
- (3.18 KiB) Downloaded 363 times