en@frrom
6th August 2010, 15:11
I have an input session with main table, the main table contains an array of 10 for 1 field. Based on data defined in a different table, I will assign labels/names to the various elements of the array field.
Example:
- main table ttmmm001
- index: item
- 2nd field: arr(10)
- table ttmmm002
- index: sequ(ence)
- 2nd field: desc(ription)
In the main input session, I want to show the field ttmmm002.desc as a label for each one of the array elements. Thus I have a form field desc(10) in which I assign all the values from ttmmm002, where sequence is the element number. I put this field's elements as a header. So instead of using labels, I use string fields which contain the label text.
This works fine once the main session contains records (items). However, before inserting records for the first time (i.e. table is empty thus no records displayed), the label fields will not be shown. Through debugging I see that the values do get filled into the label fields, yet still nothing gets displayed.
It seems like the system will not show ANY FIELDS if no records are found in the main table (i.e. no occurences filled).
My question:
1) does anyone know how Baan checks it and deals with it?
2) Does anyone know a way around? I thought of either somehow fooling the system and make it seem there ARE records found, or displaying the variable label fields in a different way.
Note: this is not a dynamic form, so no dynamic form options are relevant.
Thanks a lot in advance,
Eli Nager
Example:
- main table ttmmm001
- index: item
- 2nd field: arr(10)
- table ttmmm002
- index: sequ(ence)
- 2nd field: desc(ription)
In the main input session, I want to show the field ttmmm002.desc as a label for each one of the array elements. Thus I have a form field desc(10) in which I assign all the values from ttmmm002, where sequence is the element number. I put this field's elements as a header. So instead of using labels, I use string fields which contain the label text.
This works fine once the main session contains records (items). However, before inserting records for the first time (i.e. table is empty thus no records displayed), the label fields will not be shown. Through debugging I see that the values do get filled into the label fields, yet still nothing gets displayed.
It seems like the system will not show ANY FIELDS if no records are found in the main table (i.e. no occurences filled).
My question:
1) does anyone know how Baan checks it and deals with it?
2) Does anyone know a way around? I thought of either somehow fooling the system and make it seem there ARE records found, or displaying the variable label fields in a different way.
Note: this is not a dynamic form, so no dynamic form options are relevant.
Thanks a lot in advance,
Eli Nager