Notifications
Announcements
No record found.
Hello everyone,
I try to insert a fetchxml query into subgrid by javascript.
the problem is that i cano't accsess to the sub grid, i get a null object.
How can i do it in supporting way?
*This post is locked for comments
dear Asher
see this link:
http://www.magnetismsolutions.com/blog/paulnieuwelaar/2013/01/24/filter-sub-grid-dynamics-crm-2011-rollup-12-%28polaris%29
hi also see this on Dynamically Filter form sub grid to show related records
mahadeomatre.blogspot.com/.../dynamically-filter-form-sub-grid-to.html
Hello,
Put your code under setinterval, so that it will execute after specified time, if subgrid object is not available, this is a loading issue.
if(Subgrid==null)
{
setTimeout(function () { Functionname(); }, 2000); //if grid not loaded call it again
return;
}
Thanks for your reply'
I wrote code like this and it didn't help. The problem is that it always returned null object.
"document.getElementById("sub_securityCertification");".
But if write in JQuery $('#sub_securityCertification');.
i get an object. still it didn't help me because how i get the .control.setParameter("fetchXml", qeryFetch); function?
thanks,
Hi Asher,
Try this
document.getElementById("sub_secutiryCertification_i");
instead of
document.getElementById("sub_securityCertification");
Hope this helps.
Regards,
R.Rajkumar
Hi Rajkumar,
It didn't help. i get that message: "document.getElementById("sub_secutiryCertification_i"); null Null
". on the quickView visual studio.
but if i wirt this: "document.getElementById("sub_secutiryCertification_d". i get an object' but still the property and the method: "control.setParameter("fetchXml", qeryFetch);" not appears. can any help? or idea?
There is away to do it in server side? c#?
hi,
You could also specify criteria and use a retrievemultiple call to pull a set of entities based on some criteria:
see this link, have a lot of examples :
social.microsoft.com/.../crm-2011-plugin-how-to-set-and-get-subgrid-in-plugin
Hi hamzech,
Thanks u
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2