Difference between revisions of "StringList Editor"

From Lianjapedia
Jump to: navigation, search
(Created page with "''Under Construction'' Category:Lianja v5.3")
 
Line 1: Line 1:
 
''Under Construction''
 
''Under Construction''
  
 +
==Overview==
 +
The StringList Editor is displayed in a dialog and allows list items to be selected and deselected.  From v5.3.
 +
[[{{ns:file}}:stringlisteditor1.png|800px|left|border|link={{filepath:stringlisteditor1.png}}|StringList Editor]]
 +
<br clear=all>
 +
 +
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.
 +
 +
<code lang="recital">
 +
Lianja.showMoverDialog("Select Items","Items Selected","Coffee,Tea,Beer,Soda,Water","Coffee,Tea")
 +
</code>
 +
 +
[[{{ns:file}}:stringlisteditor2.png|link={{filepath:stringlisteditor2.png}}|StringList Editor]]
 +
<br clear=all>
 +
 +
The Lianja.showMoverDialog() method is available on the descktop in Lianja/VFP or JavaScript and in JavaScript in the Web Client.
 +
 +
===Syntax===
 +
 +
<pre>Lianja.showMoverDialog(cTitle, cCaption, cItems, cSelecteditems [, cTargetid])</pre>
 +
 +
{| class="wikitable" width="100%"
 +
!width="30%"|Arg
 +
!width="70%"|Description
 +
|-
 +
|valign="top"|cTitle||The title displayed in the dialog header.
 +
|-
 +
|valign="top"|cCaption||The text displayed above the selected items (right hand list)
 +
|-
 +
|valign="top"|cItems||The list of selectable items.
 +
|-
 +
|valign="top"|cSelecteditems||The list of items already selected.
 +
|-
 +
|valign="top"|cTargetid||The id of the target UI element, e.g. "page1.section1.field1".
 +
|-
 +
|}
  
  
 
[[Category:Lianja v5.3]]
 
[[Category:Lianja v5.3]]

Revision as of 11:10, 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.
cSelecteditems The list of items already selected.
cTargetid The id of the target UI element, e.g. "page1.section1.field1".