SyForms - UiPath Form Designer by Florent Salendres (Symphony Ventures)
Did you try specifying a FormFilePath (json file on creation).
You can refer to my post bellow and the videos to help you starting up
If the problem is not resolved, let me know
I needed to design a form for verification purposes and i came across your custom activity of SyForms.
I had one query related to its usage.
I was working across one requirement which involves displaying a form for verification purposes and it would contain values from data table. Is it possible to set values to the controls created by SyForms. I have tried my way around but the values do not get set. I have tried converting the Controls data type to string etc. but none of these work. Is there a way to show all values from data table on this created form?
To do that I would be using a DataGridView control.
The way you will display your table there is that you need to pass your datatable within “Data” (button on the activity) and later on set this argument as a Datasource of the Datagridview on an OnLoad Workflow.
- You can create OnLoad workflow using Features > Create Workflow (Top left)
- Once the workflow is created, you will need to link the xaml with the OnLoad of the form via the properties of the Form
- you can now set the DataSource with an Assign activity as follow. gridview being the name of my datagridview control, DT being the name of my Datatable Data argument.
CType(FormControls("gridview"),DataGridView).DataSource = FormData("DT")
- Last thing (but not the least), you will need to edit your datagridview properties so it has a proper size to display the table, set it read only or not,anchor etc…
Here are for example my properties.
I am attaching you an example project (built in 2018.4).
Let me know if you need any clarification or have other questions.
SyFormsTable.zip (14.2 KB)
at the end your form should look like something like this:
Thanks Florent for such a quick response. This works for me and now i can extend these learnings as per my requirement.
I have a few questions about this. I setup a form with 2 buttons to kick off different workflow processes. We’ll say process_one and process_two. It doesn’t really matter.
When I kickoff process_one, I display a message box, followed by an input dialog. I’m able to input the data, however when I click okay I get the following error text:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions) at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs) at Symphony.Extensions.SyForms.CustomButton.InvokeWorkflow(CustomForm form) in C:\Users\thecroche\OneDrive - Symphony Ventures Ltd\DEV\CustomDialogActivity3\SyForms\CustomControls\CustomButton.vb:line 52 at Symphony.Extensions.SyForms.CustomButton.CustomButton_Click(Object sender, EventArgs e) in C:\Users\thecroche\OneDrive - Symphony Ventures Ltd\DEV\CustomDialogActivity3\SyForms\CustomControls\CustomButton.vb:line 60 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
It seems like it’s still trying to interact with the form, but after I call the additional workflow I would prefer the form to just exit, however this is not the case as it remains on the screen. Is there a way to work around this?
I am working with syforms, Is this work with Uipath enterprise edition?..