Support Article
Autocomplete with Data Page source fails to load values
SA-36783
Summary
The user designed a field to use the Autocomplete control with a Data Page as its source, but the values from the Data Page do not display for the field. As a work around to this problem, the user provided a Data Page already loaded on the clipboard, but still the Data Page values do not display for the field. In addition to the unexpected results for the Autocomplete field, users see the error message.
Error Messages
Unable to get property 'parentNode' of undefined or null reference
in line -- if(Ai.parentNode.tagName=="SPAN"){Ai=Ai.parentNode}
File: pzpega_ui_template_autocompleteresults_1403335054.js!pzpega_control_autocompleteag_1236163599.js!!.js, Line: 2, Column: 9650
Steps to Reproduce
- Add a a section using the HTML-fragment.
- Design the section to use different layers, for example, data and work class.
Root Cause
An issue in the custom application code or rules whereby the custom code fails to get the correct context for the Section Include properties..
Resolution
Perform the following local-change:
Include the section directly through the Section Include properties.
For more information oin Section Include, see https://pdn.pega.com/sites/default/files/help_v722/procomhelpmain.htm#rule-/rule-html-/rule-html-section/parameters.htm
Published May 11, 2017 - 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.