Business process flowchart

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Sep 18, 2012
Company:

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

 
#2
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 22, 2015
Company:

Maybe better create command so you can use it from both BP ant task?

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.