Hello,
I have two grids (Header - Line : One to many) and i want to configure workflow for both of these grids. I did some research on this topic and made following:
I created a WF category > Created two WF types > Created two WF approvals
Then created two workflows on the system. I overrided method CanSubmitToWorkflow for each table and configured workflow as to submit each workflow.
On design properties of form, i selected WorkflowEnabled to yes, Datasource to Header Datasource, and Type to header WF type;
On the grid mouse down, i do the following:
On grid Lines Mouse down:
element.design().workflowDatasource(ActLines_ds.id());
element.design().workflowType(workFlowTypeStr(ActLines));
element.updateWorkflowControls();
On grid table Mouse Down:
element.design().workflowDatasource(ActTable_ds.id());
element.design().workflowType(workFlowTypeStr(ActTable));
element.updateWorkflowControls();
But when i submit the line item to workflow, i debug and see that the header is subbmitted. I can't solve this problem, urgent help needed.
*This post is locked for comments