RavCOder
6th September 2019, 11:24
Hi,
I want to insert a display field that show me the sum of order quantity.
I ihave inserted the query into a script and I have inserted the display field into DFE.
My question is how do I link the final result of my query into the display form?
Regards,
-RavCoder-
bdittmar
6th September 2019, 21:02
Maybe you can use:
display()
Syntax:
function void display (string field)
Description
Use this function to display a specified field on a form. Usually, the 4GL engine displays fields
automatically, either when the form is opened or when data in a related input field is changed.
However, there are situations when you need to use these functions to display fields.
For example, to display stand-alone fields, to display fields that are not in the input
field TAB sequence, or to send data to the form during batch processes.
display() Displays a single-occurrence field. You cannot use this to display a field for all occurrences.
Arguments
string field Indicates the field to be displayed. This can be the field number or a string containing the field name. For example:
display( "pctstqqq.item" )
Context
This function can be used in all script types.
See also
display.all(), display.curr.occ(), display.fld(), display.occ()
Notes
This function always display the current value of the specified fields.
The current field pointer and form status are always saved when a display
function is called and then restored when the function has terminated.
Non-database fields must be declared as extern in the program script.
The function display.all(), display.occ(), and display.curr.occ() do not affect stand-alone fields.
To display a value for a stand-alone field use display() or display.fld().