EDITLIST Property (DATATABLE)


10.5, PLBCMP GUI Only

 

The EDITLIST property allows a selection list of a column in a DATATABLE. The property uses the following format:

EDITLIST={string}

Note the following:

  1. EDITLIST may be used with SETPROP or GETPROP statements for elements of the Columns collection.

  2. This property only takes affect when a DATATABLE is bound to a HTMLCONTROL with the style set to LISTVIEW. Also, the CONTENTTYPE for the column may be set to $TC_EDITABLE that allows editing of the data.

  3. The {string} is a Character String Variable or literal that specifies specifies a list of fields that are delimited using a semi-colon character.

  4. When this property is used, the list string data is rendered as a HTML <datalist> to the client browser and referenced using the 'list' attribute. The control and presentation of the 'list' attribute is strictly controlled by a browser when the LISTVIEW cell has the focus in the edit mode. See the following link for more information on HTML 'list' attribute:

  5.  

    https://www.w3schools.com/tags/att_input_list.asp

Example:

 

 

SETPROP

DT.columns("Col7"),*Title="EDITLIST":

 

 

*WebWidth="120px", *ALIGNMENT=$CENTER:

 

 

*DataType=$CDT_NONE:

 

 

*ContentType=$TC_EDITABLE:

 

 

*EDITLIST="ABC;DEF;GHI;JKL".

 

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference EDITHIDESEL Property EDITTYPE Property