Hi all,
I'm having an issue needs your help. I have a template with 3 subforms. Each of subforms contains header caption and text field.Need your help: the layout printed out...When you compile your template a series of instructions are created in JFpreamble_1.?These tell merge what to do when it encounters certain events for the fields.
Your data:
1. specifies a field GL_DATA_1 as global
2. specifies a field FD_DATA
3. specifies a field GL_DATA_2 as global
4. specifies a group mygroup
What Merge does:
1. defines GL_DATA_1 in the global dictionary.
2. since merge cannot find the field FD_DATA on the current form or subform it executes the FldNotAvail event for the field in JFpreamble_1 (unless it is overwritten by an event in Jfpreamble).?This will lay down subformB and populate the field FD_DATA.
3. defines GL_DATA_2 in the global dictionary.
4. merge executes the event for mygroup.?This will lay down subformA and populate the field with the value from the global dictionary; lay down subformB (field is not populated because no value is available for FD_DATA since it was used to populate in step 2); then lay down subformC and populate the field with the value from the global dictionary.
Solutions:
- What you discovered is one solution - make all field calls as ^global.
- Another solution could be to combine all of your subforms into one subform.?In your data stream call the group with the ^group, then specify the data for all the fields with ^field calls.?This would not be appropriate if the subforms were used separately elsewhere on the form.
No comments:
Post a Comment