How to retrieve and populate data from external services-AEM 6.4 | Community
Skip to main content
Sep 12, 2018 2:26 AM UTC
Solved

How to retrieve and populate data from external services-AEM 6.4

Hi Experts,

we have one drop-down metadata field "Dealer ID". When user will select any value from this drop down then we want to call some external REST service and want to retrieve the some data and populate in to another metadata fields like (dealer name, dealer location etc. ) in same metadata schema.

For example in below screen Dealer Name and location will be populate based on dealer ID via external REST API

Can you please help us and suggest the approach like how it is possible in AEM 6.4.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 13, 2018 12:27 PM UTC

Hi Sameer,

You can do it that as well for schema but I have never seen this kind of use case before so it is hard to find example but you can write javascript to make ajax call on selection of one dropdown and update another.

Arun Patidar

5 replies

smacdonald2008
Level 10
Sep 13, 2018 12:59 PM UTC

Arun is correct - this can be done - but this is a very uncommon use case - so you will not find examples in the Adobe docs and articles.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 13, 2018 12:27 PM UTC

Hi Sameer,

You can do it that as well for schema but I have never seen this kind of use case before so it is hard to find example but you can write javascript to make ajax call on selection of one dropdown and update another.

Translate
Arun Patidar
smacdonald2008
Level 10
Sep 12, 2018 6:35 PM UTC

Most third party integration done at component level (displayed in a component that is then visible in a web site) or dialog level. I have never seen an example for metadata schema.

Translate
Sep 12, 2018 5:22 PM UTC

Hi Arun

Actually we want to do it on metadata schema editor not on dialog and forms.

Any example or sample for metadata schema?

Thanks

Translate
arunpatidar
New Participant
Sep 12, 2018 8:57 AM UTC

you need to write JS event on select and populate fields into another dropdown, you can do it with DOM manupulation or they with datasource if works but not sure.

Example

Adobe Experience Manager Help | Dynamically updating Adobe Experience Manager TouchUI Dialog Select Fields

AEM 6.0 Forms Help | Dynamically populating drop-down lists

Translate
Arun Patidar