cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to use List Widget with multi-select options

bdeshmukh
9-Granite

How to use List Widget with multi-select options

Hi,

I am using a List Widget for showing the list of Production lines, Shifts and Teams each.
When the View type is selected as "List" or  "Radio Button List", we can select multiple options.

But when passing the selected rows of list, multilple selected options are not passed to properties or Labels, only the first value is passed.

How can I pass multiple values to a property or a label.
How to get "All", as an option in the list, instead of multi selection all the options from the list.

Any suggestions would be very helpful.

Thanks,

Bhushan

ACCEPTED SOLUTION

Accepted Solutions
vxavier
14-Alexandrite
(To:bdeshmukh)

Hello Bushan,

 

If I understand you right, you want to put multiple values in one label when selected multiple rows. 

 

Well, the selected rows works in the way that, when you selected multiple rows, you will have an infotable in the selected rows with all the rows selected. 

 

Untitled.png

 

For example, if you want to populate a grid, you have to pass the Selected Row(s), like you do with All Data.

 

But if you want to populate a label with for example, all the ID being displayed separated by commas, you have to create a service which the input is an infotable with the datashape of your Selected Row(s). Then iterate in this infotable creating a string with all the ID values separated by commas. And you can pass the output as the string to populate a label.

 

To get All as an option in the list you can put a checkbox. Then you write an expression that fires an event, if the checkbox is selected you pass All Data for Selected Items.

Untitled2.png

 

Thanks,

Vinicius.

 

 

View solution in original post

3 REPLIES 3
vxavier
14-Alexandrite
(To:bdeshmukh)

Hello Bushan,

 

If I understand you right, you want to put multiple values in one label when selected multiple rows. 

 

Well, the selected rows works in the way that, when you selected multiple rows, you will have an infotable in the selected rows with all the rows selected. 

 

Untitled.png

 

For example, if you want to populate a grid, you have to pass the Selected Row(s), like you do with All Data.

 

But if you want to populate a label with for example, all the ID being displayed separated by commas, you have to create a service which the input is an infotable with the datashape of your Selected Row(s). Then iterate in this infotable creating a string with all the ID values separated by commas. And you can pass the output as the string to populate a label.

 

To get All as an option in the list you can put a checkbox. Then you write an expression that fires an event, if the checkbox is selected you pass All Data for Selected Items.

Untitled2.png

 

Thanks,

Vinicius.

 

 

Hi Vinicius,

 

Thanks for the input.

 

I had considered the options suggested. I wanted to know if there are any built-in widget functionality to do this.
Also for the "All" option I am assuming, it can be done only via services.

Thank you again. :)

 

Thanks and Regards,
Bhushan

vxavier
14-Alexandrite
(To:bdeshmukh)

Yes, it can. =)

Announcements


Top Tags