Showing posts with label form save. Show all posts
Showing posts with label form save. Show all posts

Tuesday, September 3, 2013

Re-Load/Save Form on SubGrid refresh in CRM 2011

Here i will provide the solutions which can be used at some point in Customizations in Dynamics CRM 2011.

I will provide the solution at when
We want to Save or
We want to Reload form
On refresh of Subgrid.

So here we go... (Note :- This solutions is for after Rollup 13 of MSD CRM 2011)

Make a Functions as below , give whichever name you prefer..

______________________________________________________________________

function onLoadofForm()
{
     setTimeout("SubGridRefresh();", 2500);
}

function SubGridRefresh()
{
    var grid = document.getElementById("<< yourGiridName >>");
    if (grid)
    {
        grid.control.add_onRefresh(ReLoadForm);
    }
}

function ReLoadForm()
{
    Xrm.Page.data.entity.save();              //If you want to save form.
    window.parent.location.reload(true); //If you want to reload form.

}
______________________________________________________________________

Now, put the function "onLoadofForm"  on OnLoad event of Form.


That is what you needed.

 Enjoy :-)



Create SSRS Report on Selected Records in Microsoft Dynamics CRM 2011

Here i will demonstrate what i have not seen in many blogs and sites. I will show you here that How to develop an SSRS Report in CR...