PLEXML A/XML ComboBoxIntern

From Plex-XML

Jump to: navigation, search

Contents

General

Should be used for a entity with ComboBox

MyEntity is a PLEXML_A/XML_ComboBoxIntern

Function: MyEntity.XML_Intern.ComboBox.GetAjaxCombo

Generates a ComboBox for Ajax Requests. See generateCombo for the XSLT part.

Usage

  • Keys in the Input/Position parameter that are not "owned by" should be set to *BLANK otherwise your combo may use these parameters with an "greater equal" in SQL.
  • The "Post Point: SetComboOptions" in "Sub WriteFetchedData" should be used to fill the ComboOptions variable.
    • DOMAttributeName should contain the value of the box that is shown to the user
    • DOMAttributeValue should contain the hidden value of the box

request-config

<webrequest name="MyEntityGetAJAXCombo">
 <request name="MyEntityGetAJAXCombo" extends="ajaxCombo">
  <plex-parameter type="web" name="Position_MyKey">KeyValue</plex-parameter>			
 </request>
 <response>
  <error type="default" name="DEFAULT"/>
  <reaction type="DEFAULT" target="DISPLAY" localized="true" mime="text/xml" usedefaultstyle="false"
   name="/WEB-INF/resources/@common_html@/aaGetAJAXCombo.xsl"/>
 </response>		
</webrequest>

Function: MyEntity.XML_Intern.ComboBox.WriteComboElements

Generates a Combo-Box that could be called from an function to return the Combo-Box values inside the main request xml.

Personal tools