setMultipleSelection()
Enables/disables multiple picture selection in an fglgallery.
Syntax
setMultipleSelection(
id SMALLINT,
on BOOLEAN )
- id is the fglgallery identifier, as returned by the
create()
function. - on can be
TRUE
(to enable multi-selection) orFALSE
(to disable multi-selection).
Usage
This function controls multiple picture selection in the specified image gallery.
The id parameter is the fglgallery handler returned by the create()
function.
When multiple selection is enabled, the end user can mark pictures as selected.
Indexes of selected images are provided in the web component field value, using the following
JSON notation: {"current":5,"selected":[4,5]}
. Convert this JSON string to a fglgallery.t_struct_value
record to get the list of picture indexes in the "selected"
member.
Example
CALL fglgallery.setMultipleSelection( id, TRUE )