Skip to main content
Sep 7, 2022 6:35 AM UTC
Solved

Limitation - ListWidget Multiselect

Hi, is there an easier way to limit the maximum amount of selections in a list-widget, than to solve it using a service which counts the selections and resets them if they exceed a defined value

wcuiAnswer
Sep 13, 2022 7:03 AM UTC

@ebeman unfortunately ListWidget does not supply any property to limit selection number. Either you develope your own widget or utilize  'selected items changed' event to manually control it. Please let us know if you have any difficulities on the implementation or if we can close this post.

5 replies

Sep 7, 2022 8:55 AM UTC

Instead of resetting the selection you could disable the "button" which triggers an action with the selection. Also show a message that he selected to many entries. This would be more userfriendly than resetting the selection.

 

I will soon (1-2month) release a widget on github I developed and use quite a long time now which counts Infotable-rows in the mashup. The help of a twx-service to do simple tasks like checking if it is empty or how many rows it contains is not very efficient. I can ping you then.

ebemanAuthor
Sep 7, 2022 9:50 AM UTC

hey nmutter,

thank you but i don't use a button but call a service on 'selected items changed' instead ... was just wondering if there isn't a option for max-selected-items

 

Sep 7, 2022 11:36 AM UTC

okay - in this case I do not know of any option to do this