Skip to main content
Dynamics 365 general forum
Answered

AddOnKeyPress and ShowAutoComplet depreciation

editSubscribe (0) ShareShare
ReportReport
Posted on by

Hi,

We are using the AddOnKeyPress & ShowAutoComplet functionalities to retrieve addresses from an Open Data repository via API.

The user enter an address, or a part of it, and as he does so a suggestion is proposed that he can select. If no result is found, by selecting "No result", the user can enter the address manually. 

We use the following methods for the suggestion of addresses in our specific Javascript developments:
- AddOnKeyPress: The event is triggered when a key producing a character is pressed while entering the postal address.
- ShowAutoComplete: The list of returned addresses is displayed automatically after querying an API.

Unfortunately, these methods are no longer supported by the new UCI.

In principle they have been replaced by Custom Controls except that :
o The "AddOnKeyPress" method is not present in the list of controls.
o The "AutoComplete" method is present but it does not meet our needs for several reasons:

1. The auto complete returns only the records of an entity to be specified in the configuration while We retrieve the postal addresses from a custom API.
2. The search when entering is not relevant.

Thank you for your help ! :) 

Categories:
  • Verified answer
    Henry J. Profile Picture
    Henry J. 5,235 on at
    RE: AddOnKeyPress and ShowAutoComplet depreciation

    Hi Elliott,

    Have you checked those Power Apps Component Framework (PCF) examples that seem to achieve what you are describing?
    https://pcf.gallery/categories#address

    Implementing a PCF custom control might indeed be the way to go in Unified Interface.

    Henry

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans