PLEXML A/XML ComboBoxIntern

From Plex-XML
Jump to: navigation, search

Contents

General

Should be used for a entity with ComboBox.

If you inherit from MyEntity is a PLEXML_A/XML_ComboBoxIntern you will get two new functions:

  1. MyEntity.XML_Intern.ComboBox.GetAjaxCombo: for AJAX-Combos (set to implement *no by default).
  2. MyEntity.XML_Intern.ComboBox.WriteComboElements: for combos that filled inside a Plex-XML function.

Combo1.png

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.

Usage

1. Open the function in Plex and fill the output values of your combo. It is a value/name pair. Value for your technical identifier and name for the description that is shown to the user.

Combo2.png

2. Drag any FetchKey (to restrice the resultset) or Selected (to mark a selected value) fields in the input variables.

Combo3.png

3. Open the Plex-XML function that should call your combo and add the function call.

Combo4.png

4. Map the parameters of the function call

Combo5.png

5. You don't need to define anything out of Plex (request.config, XSLT, ...) for this kind of combo.


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>
Personal tools