4D v14.3

SET LIST ITEM PARAMETER

Home

 
4D v14.3
SET LIST ITEM PARAMETER

SET LIST ITEM PARAMETER 


 

SET LIST ITEM PARAMETER ( {* ;} list ; itemRef | * ; selector ; value ) 
Parameter Type   Description
Operator in If specified, list is an object name (string) If omitted, list is a list reference number
list  ListRef, String in List reference number (if * omitted) or Name of list type object (if * passed)
itemRef | *  Operator, Longint in Item reference number or 0 for the last item appended to the list or * for the current list item
selector  String in Parameter constant
value  String, Boolean, Longint, Real in Value of the parameter

The SET LIST ITEM PARAMETER command modifies the selector parameter for the itemRef item of the hierarchical list whose reference or object name is passed in the list parameter.

If you pass the first optional * parameter, you indicate that the list parameter is an object name (string) corresponding to a representation of the list in the form. If you do not pass this parameter, you indicate that the list parameter is a hierarchical list reference (ListRef). If you only use a single representation of the list or work with structural items (the second * is omitted), you can use either syntax. Conversely, if you use several representations of the same list and the second * is passed, the syntax based on the object name is required since each representation can have its own current item.

You can pass a reference number in itemRef. If this number does not correspond to an item in the list, the command does nothing. You can also pass 0 in itemRef to indicate the last item added to the list (using Hierarchical Lists).

Lastly, you can pass * in itemRef: in this case, the command is applied to the current item of the list. If several items are selected manually, the current item is the last one that was selected. If no item is selected, the command does nothing.

In selector, you can pass the Additional text constant (found in the “Hierarchical Lists” theme) or any custom value:

  • Additional Text: This constant is used to add text to the right of the itemRef item. This additional title will always be displayed in the right part of the list, even when the user moves the horizontal scrolling cursor. When you use this constant, pass the text to be displayed in value.
  • Custom selector: You can also pass custom text and associate it with a value of the Text, Number or Boolean type in selector. This value will be stored with the list item and may be retrieved using the GET LIST ITEM PARAMETER command. This lets you set up any type of interface associated with hierarchical lists. For example, in a list of customer names, you can store the age of each person and only display it when the corresponding item is selected.

 
PROPERTIES 

Product: 4D
Theme: Hierarchical Lists
Number: 986

 
HISTORY 

Created: 4D v11 SQL

 
SEE ALSO 

GET LIST ITEM PARAMETER
GET LIST ITEM PARAMETER ARRAYS

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)