Access form items created inside RuntimeModifications
Many of my forms are set up to display data from database queries, and as such I add group boxes and items like markdowns and checkboxes inside each groupbox as it is created during RuntimeModifications. I have one particular form which has three group boxes, and each groupbox has two markdowns and one checkbox.
How do I loop through all the controls I put on this form and access the Checked property for each individual checkbox control I created? I gave each one a unique ID, but I am not sure how I can access them once the form is closed.
0
-
Hi Tami,
Dynamically-added form elements will be available in the Form Results Out Argument - available on the property panel on the right side of Workflow Designer. You'll need to set a unique Argument Name property on the form elements you added at runtime, so they get included in the results. Then, you can fetch them from the Dictionary by using the Argument Name as the key (string) value.
Regards,
-Malcolm0 -
I got exactly there about an hour ago, but I got stuck. I was trying to set the Form Results using an assign and had overlooked the right-hand panel of the DisplayForm, as I often do. Thank you, I will go and play with this. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare