GenerateAutoComplete
From Plex-XML
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.
- generateAutoComplete : the Element name to use to generate the AutoComplete
- element : ID of the entry field the AutoComplete is attached to
- requestname : the Web-Request to execute
- fill : Parameter(s) for the WebRequest
- from : name of the field the parameter value comes from, OR
- fromvalue : a fix value that should be used as parameter value
- to : name of the parameter
- fillField : special Parameter(s) for the WebRequest : generates 3 Parameters(webFindName,webFindValue,WebFindOper) used in our FindBrowses for FindFields
- value : name of the field the webFindValue parameter comes from, OR
- value2 : a fix value that should be used as webFindValue parameter
- operator : search operator to be used for webFindOper ( defaults to '%')
- (text node) : copied to webFindName
- return : the response field(s) that are used
- from : name of the response field
- to : name of the field in the webpage to receive the response value
Example
<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>
<fill from="AMTXT7" to="ContactName1" />
<fill from="Softwa" to="Softwa" />
<fill from="EnterP" to="EnterP" />
<fill fromvalue="1" to="C0STS1" />
<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>
