web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

display parent field values in the child fields,display grandparent field values in the grandchild using plugin or javascript

(0) ShareShare
ReportReport
Posted on by 195

Hi friends,

I have 3 entities country,state and district.

State(child) entity has country(parent) lookup.country has 2 single line fields,i want to display 2 fields in child when country lookup is selected and saved.

next

In district entity I want to display country 2 fields when i select the state lookup.

district has state lookup.

How can we do it using plugin and Javascript??

Thank you!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Have you considered usage of Quick View Forms?

  • bharrath Profile Picture
    195 on at

    yes,but my requirement is using plugin or Javascript.

    Thank you!

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    To be honest there is no sense in this requirement but if you insist you can write JavaScript that will retrieve related fields from CRM. To make it easier you can use CRMRestBuilder - github.com/.../2.5.0.0

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    why use code when the default feature can achieve what you wanted. :(

    if you insist to use javascript,

    call the web api to get the related fields from parent and set it to form.

    WebAPi

    community.dynamics.com/.../use-fetchxml-to-retrieve-data-from-ms-crm-2016-using-web-api

    Set Value

    msdn.microsoft.com/.../gg334409.aspx

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello Barath,

    If my understanding is not wrong ,If you want to display two single line text value for country lookup you can simply modify your lookup view  from entity ->View , by adding another text field , so bot the text will display when you select the country.

    Just want to know your user will choose two different type  single line text value  for same  lookup? In that case I think it would be good if if you give flexibility to add as a sub grid data  or quick view form without writing any code.

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans