While there can be multiple ways a shortcut way comes to my mind.
What you can do is use a for each sheet activity and append the currentSheet to a list variable or string array and use it later on.
For Each Sheet and add the sheet name to a datatable. Then add a boolean column to the datatable. Pass this datatable to the form. Then when you display it as an edit grid on the form it’ll have the checkboxes for the boolean column.
Can you tell if there is a limit on generating number of check boxes in form ? or may be number of rows for your solution?
In my input excel there can be 50+ sheets. So are 50+ checkboxes possible?
I was able to get 2 columns with Sheet names and Check boxes respectively using Data grid not Edit grid. Don’t need those edit & save options but only checkboxes.
But check boxes are being displayed as non editable. They cannot be checked or unchecked. What am I missing here?
Nope, with Edit grid also it is getting displayed as non editable only. I tried.
Can you point if I am missing something? or if you can send a Xaml please?
Select FormFieldsCollection from properties panel.
Create
argument 1 with any name(selectBoxes) with suffix as “_dropdown”, Direction = In, Type = List(String)
argument 2 with above name (selectBoxes)( remove the suffix here), Dir = Out, Type = Dict(String,Boolean)
“selectBoxes” or yourArgumentName should be the fieldKey of Select box component in form designer to map it with the arguments.
This will dynamically create checkboxes based on number of items present in the input list. In my case its number of sheet names in input list.