...
In case the custom form container is used, then explicit wiring is needed to proceed with the live edit or delete sequence. The wiring can be done using the executeAction API. For information on custom action wiring, refer API to Wire Custom Actions in the Self-designed Forms or Form Container to the Request Model Actions section.
For information on form, app, and menu creation, refer the Expert Studio Dev Guide available in Unmail > Canvas Technology > Documents > Release 18.1.0.0.
...
Code Block | ||
---|---|---|
| ||
CWEH.registerHandler('EMP_GRID', CWEC.ROW_CLICK, function(rowInd, record)
{
var obj = { "formId" : "EMP_DETAILS_FORM",
"LIVE_MODE" : "EDIT", "containerId" :
"EMP_DETAILS_FORM_CONT",
"widgetId" : "EMP_GRID"
};
canvas.modeler.liveEdit(obj, record);
});
/* Here, CWEH is Canvas Widget Event Handler,
* CWEC is Canvas Widget Event Constant,
* ROW_CLICK is the event for grid row click,
* rowInd is the index of the grid row that is clicked
* and record indicates the data of the grid row that is clicked.
* When a row in the grid is clicked, the EMP_DETAILS_FORM is
* launched in a custom container (EMP_DETAILS_FORM_CONT) through
* the liveEdit API (Mode being EDIT). The form displays the
* details of the row that is clicked.*/ |
...