Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

AutoComplete JSP tag does not work

SA-16341

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 <pega:include name="AutoComplete_Variables" type="Rule-HTML-Fragment" />


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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice