March 2020
Intermediate to advanced
534 pages
14h 15m
English
The code in our display method returns an empty string, and it doesn't look great having a pointless empty control on the form. We should hide it.
To do this, we would usually use the formControlStr compile time function as shown below the control instance:
int controlId = this.controlId(formControlStr(SalesTable, SalesLine_ItemId));FormStringControl = this.control(controlId);
We can't use this with extension fields, so we need to make the control automatically declare itself. Find the CtrlDispConVMSServiceMessage control and set the Auto Declaration property to Yes. Save and close the form.
We can now write an EnableFields method to control its visibility on our form extension class:
public void ConVMSEnableFields(){ boolean ...Read now
Unlock full access