Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Select a record in Sub-Grid and autopopulate it

Posted on by 240

Hi,

I have a Sub-Grid on the account related to adresses and a lookup where i choose which adress related to the Account. Is it possible just by selecting a record in the sub-grid to autopopulate the Lookup field?

Thanks!

  • Suggested answer
    RE: Select a record in Sub-Grid and autopopulate it

    I am not sure if you can apply editable grid in quick view form sub grid as its a read only form and just show the related information..

    what you can do its ,create relation ship with current entity and create subgrid and apply editable subgrid.

  • RE: Select a record in Sub-Grid and autopopulate it

    Hello Denzo,

    Have you tried to enable Editable Grids on the entire Lead entity ?

    pastedimage1572360208658v1.png

  • Denzo19913 Profile Picture
    Denzo19913 240 on at
    RE: Select a record in Sub-Grid and autopopulate it

    Hi, Great input.

    Lets say i have the Sub-grid on a Quick View Form on the Lead, can i use editable grid? Becuase now i changed the control on the Subgrid on Account that is related to Addresses and it worked. But i also created a Quick View form where a used the Sub-grid from Account Addresses and inserted it in the Lead Form and it isn't editable grids. Couldn't either find the control option for editable grids on the Lead quick view form.

    Any idea how to achieve this? Would be nice to make this function avaliable on the Lead where i have inserted a Quick view form, which shows the Subgrid that is on the Account related to the Addresses.

    Thanks

  • Suggested answer
    RE: Select a record in Sub-Grid and autopopulate it

    Hi,

    You can do it by editable Subgrid. follow below steps.

    1- Enable editable subgrid on that view .

    2- write logic on recordselect event to populate lookup ..

    Let me know if any issue ..

  • Suggested answer
    RE: Select a record in Sub-Grid and autopopulate it

    Hello,

    If you change your subgrid to an editable grid, you will then be able to add JavaScript to it, on the line selection event. From there you can fill in your field accordingly using JavaScript functions.

    docs.microsoft.com/.../make-grids-lists-editable-custom-control

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans