Just some simple topics about the SysOperation, which can however, be quite useful to people who are just starting the grasp the framework. Today, one way to display the values from the caller in the dialog.
What we are trying to do is if we are leaving from a selected record in a form, and open up a SysOperation dialog, we have to populate some dialog fields with values from the record.
The code speaks for itself (remember, the code below in written in the main method of the constructor). Also, observe how the contract and the controller are working together to get us what we need:
public static void main(Args _args)
ITRSysOpControllerA controllerA = new ITRSysOpControllerA();
if (_args != null &&
_args.record() != null &&
_args.dataset() == tableNum(ITRParentA))
contractA = controllerA.getDataContractObject();
contractA.parmValue(_args.record().(fieldNum(ITRParentA, Value))); }