Reputation: 67
We are using the API
elementid=Repository.InvokeConstructPicker("IncludedTypes=Class;StereoType=foo")
which opens select<<Item>>
dialog where user can select only one item at a time.
Is there any way to make allow user to select multiple items at a time in the select<<Item>>
dialog.
When the select<<item>>
dialog is opened by default some of the elements in the dialog should be selected.
How to check whether none is selected or cancel button is clicked in the dialog.
Upvotes: 1
Views: 167
Reputation: 36333
Just read the documentation. Ad 1:
val = Repository.InvokeConstructPicker("IncludedTypes=Class;MultiSelect=True;");
Ad 2:
- Selection (optional) - list of comma-separated element GUID's that will be selected by default
val = Repository.InvokeConstructPicker("IncludedTypes=Class;Selection={CD97B45C-1A97-4049-BB2E-97EE5951AB20};");
I haven't test this, though.
Upvotes: 1