Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Business process flowchart

Forum

Search UsersRules
Business process flowchart
#1
Active user
Points:: 0
Joined:: Sep 18, 2012

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

Profile
#2
Just came
Points:: 0
Joined:: Jan 22, 2015

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

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.