Hello,
I am trying to give users opportunity to open and see business process flowchart.
I made new "SchemaForm" with GraphicalSchemaField as one of the business process forms. In a main BusinessProcessForm I made a link that calls FlowchartLinkClick procedure (see below). When I try to click it I am getting error, something like: "Interactive operations are not enabled". Why? What can be wrong?
The code is placed in BusinessProcessForm module.
Thank you for your help in advance.
Kris
| Code |
|---|
&AtServer
Function FlowchartLinkClickAtServer()
FlowChart = BusinessProcesses.ProcesNaprawy.GetFlowchart();
Return FlowChart;
EndFunction
&AtServer
Function GetSchemaFormAtServer()
SchemaForm = BusinessProcesses.ProcesNaprawy.GetForm("SchemaForm");
Return SchemaForm;
EndFunction
&AtClient
Procedure FlowchartLinkClick(Item)
SchemaForm = GetSchemaFormAtServer();
Flowchart = FlowchartLinkClickAtServer();
SchemaForm.Controls.GraphicalSchemaField.SetSchema(Flowchart);
SchemaForm.Controls.GraphicalSchemaField.ReadOnly = True;
SchemaForm.WindowAppearanceMode = WindowAppearanceModeVariant.Maximized;
SchemaForm.Open();
EndProcedure
|