Input Dialog Features: Multiple choice selection

uiautomation
studio

#1

Is there any way to achieve selecting multiple options in the input dialog?

Based on the requirement, there is a need to select single or multiple options from the list available in the input dialog. Also, while selecting multiple options, it is needed to select all such options altogether but not one-by-one (processing for the first option and then navigate back and processing for the second option and so on…)

For example, I should select say three out of five options altogether and as per the selected choices, next action item should get executed.

Any help would be appreciable.


#2

Don’t think so. Ugly workaround would be an input box to ask how many selections you want to make…then loop through to ask the same question X times…


#3

ok… thanks for the update…


#4

May not be helpful, but just sharing if it gives an idea how to proceed.
input.xaml (11.4 KB)

image


#5

Hi @vvaidya, I’ve been trying to use this on a project to select multiple items. However, i can’t quite understand a few things.

  1. Why did you use a delay to run the VB.net without uipath closing it. I would like to, instead of using a delay, to run it and wait for the user to click “SUBMIT” and then continue the workflow.

  2. If you try to run it without using the delay, it will show a message of unexpected job termination. What does that mean ?

Thanks in advance,


#6

Hey…

#1 For using the SUBMIT button click add an event handler to close the Form. I think I tried the button click, but still the form was not appearing without delay. Try adding something like this in the invoke code for the existing button.

AddHandler
btnID.Click, Sub(sender As Object,e As EventArgs) System.Windows.Forms.Application.Exit

#2 I’m pretty sure this has something to do with the argument direction that you are passing into the invoke code. Try changing everything to “In” and see.

Thanks,

Vinay


#7

Heey @vvaidya , I managed to get the window to close on click using the handler, thanks a lot for that.

But i am still having some trouble with the “Unexpected Job Termination” message and i cannot find a solution anywhere.

I will attach the workflow file here. I tried using on element vanish, using the invoke method, changing every argument to in (except the ones that had to come out, of course). Nothing helps.

ForumFile.xaml (10.8 KB)


#8

Try changing the arguments in your Xaml file to “IN” and keep the invoke code arguments as is.


#9

That worked @vvaidya. Thanks a lot!


#10

If you are still using delay after Invoke as work around, attached code will work without delay and the workflow will pause until you click the finalize button or close form (x button)

Checkbox_Selection.xaml (10.4 KB)
.