StringList Editor
From Lianjapedia
Revision as of 11:15, 5 March 2020 by Yvonne.milne (Talk | contribs)
Under Construction
Overview
The StringList Editor is displayed in a dialog and allows list items to be selected and deselected. From v5.3.
It can be specified as the Cell editor type for Form Section Fields, Grid Section Columns or Canvas Section Advanced Controls that are data-bound to varchar/memo variable length columns.
It can also be called directly using the Lianja.showMoverDialog() method.
Lianja.showMoverDialog()
The Lianja.showMoverDialog() method displays the StringList Editor in a centered popup dialog, e.g.
Lianja.showMoverDialog("Select Items","Items Selected","Coffee,Tea,Beer,Soda,Water","Coffee,Tea")
The Lianja.showMoverDialog() method is available on the descktop in Lianja/VFP or JavaScript and in JavaScript in the Web Client.
Syntax
Lianja.showMoverDialog(cTitle, cCaption, cItems, cSelecteditems [, cTargetid])
Arg | Description |
---|---|
cTitle | The title displayed in the dialog header. |
cCaption | The text displayed above the selected items (right hand list) |
cItems | The list of selectable items. This can be a comma-separated string, a string containing a SQL Select statement or a {} macro specifying a function call to return a comma-separated string. See examples above. |
cSelecteditems | The list of items already selected. This can be a comma-separated string, a string containing a SQL Select statement or a {} macro specifying a function call to return a comma-separated string. See examples above. |
cTargetid | The id of the target UI element, e.g. "page1.section1.field1". In the Web Client, this must be specified. |