RefreshOptionsProcess

Top  Previous  Next

RefreshOptionsProcess is used to refresh the options of an HTML SELECT element.

See Refreshing options of a select element

  <process name="RefreshCities" basedon="mor.Ajax.RefreshOptionsProcess">
    <param name="dataSource">cities_of_country</param>
    <param name="optionNode">NAME</param>
    <param name="valueNode">ID</param>
    <param name="encryptTheValue">true</param>
    <param name="targetElement">CITY_id</param>
    <param name="staticOptionsQty">1</param>
    <param name="responseHandler">AjaxMgr.refreshOptionsResponseHandler</param>
  </process>  

 

Parameters

dataSource (Accepts MScript)

The name of a dataSource configuration element that supposed to supply fresh data for the options of the SELECT element.

optionNode (Accepts MScript)

The name of the data node that will be used as the option text.

valueNode (Accepts MScript)

The name of the data node that will be used as the option value.

encryptTheValue (Accepts MScript)

Flag to indicate that the value of the data node specified with valueNode element to be encrypted.

targetElement (Accepts MScript)

The HTML Id of the target SELECT element.

staticOptionsQty (Accepts MScript)

The number of the options on the top of the list of target SELECT element that should be preserved while refreshing the others.

responseHandler (Accepts MScript)

The name of the response handler Javascript function that will receive the AjaxResponse and manage the refreshing of the options. Unless a very special treatment is required the value of this element can be left to its default which is AjaxMgr.refreshOptionsResponseHandler.