Tip:
Highlight text to annotate it
X
Each function in the generated code is nested within a BLOCK section.
This means that you can change the behavior of the generated function.
However once you add new code to a BLOCK you take responsibility for the validity of all the code in that BLOCK.
First identified and modification to be made.
Currently, in office store example application
if the user modifies the quantity of a line item
he is prompted to accept or cancel his change.
Let's modify this so that if he does confirm the change of the quantity of the line item a new a new message displays the new line total.
Now identify where in the code you will add your own code.
In the OrderForm_ui.4gl is a function called OrderForm_uiInput.
Within that function is an INPUT ARRAY.
Here you can see that the AFTER ROW block is where the first confirmation message displays
This is the right place to add the new code.
The new message will pop up only when the user confirms their change.
This code calls a new FGL_WINMESSAGE()
and includes all the information needed
to present the new line total.
Compile and run to see the change.