Dynamically load form components on form load?
I have a use case where a user can select a number of reports to run and then I would like to be able to show some of the summary information back in a form. I would like to keep each of the report/workflows separate to allow for different combinations of data display. Is this possible, or do I need to create a custom workflow activity?
-
Hi Marc,
I think you need to put a subworkflow on the load event of the form title. You can put a For each activity in the subworkflow to loop through the list or collection of reports. In the for each activity you can put a Add Form Element activity to create a new element in you form for each report.
In the add form element activity you need to input a unique Element ID. Because you are in a loop you need to somehow generate these by for example doing something like ="reportSummary"+$forEach1.count . Next you need to specify your Type of form element, in your case it might just be "Text" but you can use the dropdown menu in this field for suggestions. Leave the Element input empty.
Next add a Set Form Element Property activity. In this activity you use the definition of the Element ID from the previous activity as the Element. The Property input probably has to be "value"(there is a dropdown menu you can use here for some suggestions). In the Property Value input you add the report summary you want to use. Just know that you need to know how to access the information you need to generate the report summary but I think that depends on your data structure.
Good luck!
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar