ws_activate
Activate the worksheet plug-in form for the current main development object.
operation ws_activate params string pObjectUrl: IN endparams ; <... Your code here ...> end ; ws_activate
Parameters
pObjectUrl—URL of the current main development object, in the format ObjectType:
ObjectName. For example, cpt:MY_COMPONENT
, ent:SALES_ORDER.SALES
, aps:MY_APP
, libsnp:MYSNIPPETS
, and so on.
Description
The ws_activate operation of a worksheet plug-in must have an IN string parameter to hold the value of the current object.
It should contain edit/nonmodal command to ensure the contents of the form are displayed.
After it is executed, the ws_getsVisible operation of the plug-in Form is called.
Example
operation ws_activate params string pObjectUrl : IN endparams activate "IDE_API_1".outputMessage("Execute trigger (Url=%%pObjectUrl).") if ($procerror != 0) putmess "Activate error: %%$procerror%%%, %%$procerrorcontext%%%" endif $URL$ = pObjectUrl URL.ENT = $URL$ edit/nonmodal end ; operation ws_activate