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)

CRM 2016 On-Premise - Quick Create onLoad - Get Id of Caller (Sub-Grid)

(0) ShareShare
ReportReport
Posted on by 67

Hello,

I have a form which contains 4 sub-grids. Each of these sub-grids opens the same quick create form via the Add (+) button (I know... why have multiple sub-grids for the same child entity? The client wants it this way). OnLoad of the quick create form, I would like to determine which sub grid called it, but I seem to be unable to figure it out. I would then like to show / hide fields on the quick create form depending on the sub-grid Id (that part I know how to do ... I just can't seem to get the ID of the sub grid).

Looking at Ribbon Workbench I see that the (+) command adds the "SelectedControl" CRM Parameter to it's javascript function (action). I also know that using "SelectedControl.get_Id()" gives me the ID of the subgrid, but I can't seem to figure out how to access the SelectedControl parameter from onload of the quick create form. It seems as though that doesn't persist to the onload event of the quick create form.

Can somebody show me how I can achieve what I'm trying to do. Perhaps I'm going about this backwards? Perhaps there's a way of accessing the quick create form components from the (+) button of the sub-grid rather than trying to access the caller from onload of the quick create form?

Any help you can provide would be greatly appreciated.

Thank you in advance!

*This post is locked for comments

I have the same question (0)

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