Support Article
AutoComplete JSP tag does not work
Summary
User has configured AutoComplete control using JSP tags. When using the activity Data-Admin-Operator-ID.getOperatorsID the drop-down list is not displayed.
Error Messages
Not Applicable.
Steps to Reproduce
Create an AutoComplete Control as below in an html rule and refer it in a section.
<pega:autoComplete
name="wg"
highlight="true" size="50"
listingWidth="100" minChars="2">
<pega:acDataSource name="wg" type="Activity"
activityClassName="Data-Admin-Operator-ID"
sourceName="getOperatorIDs"
clientCache="true"
partialSearch="true" ignoreCase="true"
displayField="pyUserIdentifier"
maxResults="true" allFields="false"
sendSearchTerm="true"/>
</pega:autoComplete>
Root Cause
To make the autocomplete code work with JSP tags work one must include the autocomplete variable html fragment rule in the html rule
Resolution
Include the below in the HTML Rule where Autocomplete rule is configured.
<pega:include name="AutoComplete_Variables" type="Rule-HTML-Fragment" />
Additionally, any activity, which takes a param value in the filter criteria, did not work. So it was suggested to use another Activity Data-Admin-Operator-ID .GetOperators.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.