Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

options_ajax : Optional, a JSON URL which will return an array of JSON object with 'value' and 'label' attributes.

 

Code Block
languagejs
options_ajax : '[CONTEXT_PATH]/web/json/console/app[APP_PATH]/datalist/options'

 

options_ajax_on_change : Optional, name of a property field. Used together with 'options_ajax' attribute. The field name and its value will passed as HTTP request parameter to the URL.

 

Code Block
languagejs
options_ajax_on_change : 'type'
options_ajax : '[CONTEXT_PATH]/web/json/app[APP_PATH]/plugin/org.joget.plugin.enterprise.SamplePlugin/service?action=getJson'

 

options_callback : Optional, a javascript function name. All attributes in the field will passed as a single JSON object parameter to this function. The function should return an array of JSON object with 'value' and 'label' attributes.

 

Code Block
languagejs
options_callback: 'DatalistBuilder.getColumnOptions'

 

options_script : Optional, a string of javascript which will return an array of JSON object with 'value' and 'label' attributes.

 

Code Block
languagejs
options_script: 'var tempArray = [{\'label\':\'\',\'value\':\'\'}]; for(ee in DatalistBuilder.availableColumns){ var temp = {\'label\' : UI.escapeHTML(DatalistBuilder.availableColumns[ee].label),\'value\' : DatalistBuilder.availableColumns[ee].id}; tempArray.push(temp);}tempArray;'}

 

Validator Types

AJAX

Page Button

...