Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
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
Solved! Go to Solution.
@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.
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.
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
okay - in this case I do not know of any option to do this
@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.
... post can be closed, thank you.