Download Research and Development BAAN V User Interface
Transcript
6 - Programming form fields 6.3 Total fields in a grid 6.3.1 Overview In BAAN V, it is possible to add a total line to the grid. 6.3.2 Implementation You only have to modify the UI script in order to add a total line to your grid: 1 Add the following code fragments in your UI script before.program: fattr.total.line = true 2 For every update of the total fields add: … display.total.fields(“field1”, value1, “field2”, value2) … Where field1 and field2 are defined as multi-occurrence form fields on the form and declared in the UI script. Of course, this can also be a table field. Restrictions n n n Total have the same display properties as the field above. Array fields fields cannot be disabled or enabled (they are always read-only). The total fields cannot be displayed in the total line. Example : before.program: fattr.total.line = true before.display.object: total1 = total1 + whwmd000.amnt1 total2 = total2 + whwmd000.amnt2 if actual.occ = filled.occ then display.total.fields(“whwmd000.amnt1”,total1, “whwmd000.amnt2”,total2) endif BAAN V User Interface 6-3