alexpreyer
16th September 2010, 15:57
I want to fill a string array in the program script. This array then should printed as display fields on the form (see my script below). But every time I start the session the fields are not known in form ("Formfield unknown")
declaration:
table ttfzzz100 | Sub sites
table ttfzzz105 | Cost Center per sub sites
extern string rid(3,5)
|****************************** form section **********************************
form.all:
init.form:
long a
for a = 1 to 5
rid(1,a) = "aaa"
endfor
mark_h
16th September 2010, 18:04
(1) Did you make sure you dumped the form?
(2) Make sure you do not have the form already open.
(3) You might need to create runtime dd on the form. I have had this happen to me before.
rberti
16th September 2010, 18:10
Hi alex,
I don't see nothing wrong in your script... I mean, to use as form field, the variable must be extern, as yours, and even without a domain there should not be problem if the data type is the same... maybe a print of the form field properties could help to find out whats wrong, or maybe give a clue...
Regards,
Rafael
MilindV
17th September 2010, 09:15
Hi Alex,
Check the element no. on the form field properties.
As it is array field, you may need to specify element no.
Ragards,
MilindV
alexpreyer
17th September 2010, 10:23
The issue is coming out of the field properties. After setting the field from rid(1,1) to rid and set the element.no there's no error message anymore. But unfortunatelly the value of the string is not shown on the form. Here is the setting of the first field:
alexpreyer
17th September 2010, 11:02
Forget my last thread. When the first record is inserted the values are shown.
Thanks all for the help