Difference between revisions of "StringList Editor"

From Lianjapedia
Jump to: navigation, search
(Syntax)
(Syntax)
Line 35: Line 35:
 
|valign="top"|cCaption||The text displayed above the selected items (right hand list)
 
|valign="top"|cCaption||The text displayed above the selected items (right hand list)
 
|-
 
|-
|valign="top"|cItems||The list of selectable items.
+
|valign="top"|cItems||The list of selectable items.  This can be a comma-separated string, a string containing a [[SQL SELECT|SQL Select]] statement or a {} macro specifying a function call to return a comma-separated string.  See [[examples above]].
 
|-
 
|-
|valign="top"|cSelecteditems||The list of items already selected.
+
|valign="top"|cSelecteditems||The list of items already selected.  This can be a comma-separated string, a string containing a [[SQL SELECT|SQL Select]] statement or a {} macro specifying a function call to return a comma-separated string.  See [[examples above]].
 
|-
 
|-
|valign="top"|cTargetid||The id of the target UI element, e.g. "page1.section1.field1".<br> In the web client, this must be specified.
+
|valign="top"|cTargetid||The id of the target UI element, e.g. "page1.section1.field1".<br> In the Web Client, this must be specified.
 
|-
 
|-
 
|}
 
|}

Revision as of 11:15, 5 March 2020

Under Construction

Overview

The StringList Editor is displayed in a dialog and allows list items to be selected and deselected. From v5.3.

StringList Editor


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")

StringList Editor

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.