PavanKumarG3281 Member since 2020 3 posts
Posted: October 27, 2020
Last activity: 4 weeks 1 day ago

How to avoid API calls for each key stroke - AutoComplete control

I have an auto complete configured with Data Page as source. I am calling Address API with in the data page and displaying the addresses in auto complete. 

Problem here is, API is being called for each key stroke. For example: If address entered is 123 ABC Drive, autocomplete feature is causing the API to trigger for 1, 12, 123, 123 A, 123 AB and 123 ABC. I do not want to call API so many times like this. I want to call API only when user pauses. 

I tried minimum character limit feature, but it's calling API for each character after minimum character limit. 

Please help me find a way to achieve this. 

Pega Platform 8.3.4 User Interface Communications and Media Senior System Architect
Share this page LinkedIn