GenerateAutoComplete

From Plex-XML

Jump to: navigation, search

Suggest-Box or AutoComplete: It works like a combo box but pulls the data via AJAX from the database while you are typing. It is a great solution for referenced entities that contain too many records (~>75) for a normal combo box.

Example

Image:Suggestbox.png

<xsl:template name="postFieldException">
 <xsl:choose>
  <xsl:when test="@name='TSName'">
   <generateAutoComplete>
    <element>v<xsl:value-of select="$rid"/><xsl:value-of select="generate-id(/responses/.../returnvalue[@name='TSName'])"/></element>
    <requestname>X4_FBMyAuto</requestname>
    <fillField value="TSName" operator="%">TSName</fillField>
    <return from="TSheetID" to="TSheetID" />
    <return from="TDescrip" to="TDescrip" />
    <return from="TStdRows" to="TStdRows" />
    <return from="TStdCols" to="TStdCols" />
   </generateAutoComplete>
  </xsl:when>      
 </xsl:choose>
</xsl:template>
Personal tools