Hi.
I'm in the process of modernizing a legacy program which uses 16 forms and 10 different INPUT BY NAME. These forms have many fields in common and ultimately the data is inserted in the same tebles(s). My goal it to simplify this and throw out redundant code by creating one paged form and one input by name block. Then I want to hide all pages except the one relevant to the type of input. By creating one input by name block I can have one before/after field block for a field that appears on all the forms (instead of 10 now)!.
My problem is this: Some fields appear on all the forms, some on 6, others on 8 etc. It is impossible to hide the fields not relevant because it would make the resulting form too big, visually unpleasing and with too much unused space in it.
So what would be useful if I could put the same field multiple times on the same form. Example:
LAYOUT ( TEXT = "Customer orders" )
02 VBOX
03 GROUP group1 ( TEXT = "Customer" )
04 GRID
05 {
06 <G Common_fields >
07 [f001 |f010 ]
08 < >
13 }
14 END
15 END
25 FOLDER
26 PAGE pg1 ( TEXT = "Address" )
27 GRID
28 {
29 Address: [f011 ]
30 State: [f012 ]
31
Zip Code: [f013 ]32 }
33 END
34 END
35 PAGE pg2 ( TEXT = "Comments" )
36 GRID
37 {
38 Name: [fname ]
ZIP: [nzip]42 }
43 END
44 END
45 END
46 END
47 END
attributes
....
edit f011=formonly.adress
edit
f013,nzip =
formonly.zip....
In the example above, the zip field has two references in the form, f013 and nzip. If I would hide page pg1 the zip field would be visible on pg2. BEFORE/AFTER FIELD zip code would work for "both" fields. In my case, the same field would be for exapmle on pages 1,4,7,8 but not on the other pages (2,3,5,6 etc). This way I could layout my form more easily than having to hide/show fields.
Does this make sense, or is there another way to achieve this? (I know I could create the form manually via DOM etc. but placing the fields in the right positions can be rather difficult :-))
Best regs,
-Snorri