Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1869 closed enhancement (fixed)

Return number of selected items in a list

Reported by: Nicklas Nordborg Owned by: everyone
Priority: minor Milestone: BASE 3.3.2
Component: web Version:
Keywords: Cc:

Description

When selecting items from a list in the GUI, the selected items are returned one by one to the caller by sending one 'base-selected' event for each selected item.

While this is ok in most cases, there are cases that require some special action to be taken after all items has been sent. Typically this situation is "solved" by performing the special action after every item.

It would be nice if the selected items could either be sent as a list or include a counter + total selected items in each event.

Change History (2)

comment:1 by Nicklas Nordborg, 10 years ago

Resolution: fixed
Status: newclosed

(In [6564]) Fixes #1869: Return selected items as a list

Implemented this in a different way. Instead of returning a list an extra field 'remaining' was added to the event.detail object which is a counter counting down to 0. When event.detail.remaining==0 the last selected item has been returned.

comment:2 by Nicklas Nordborg, 10 years ago

Summary: Return selected items as a listReturn number of selected items in a list
Note: See TracTickets for help on using tickets.