Home

Oct 4, 2010

Refresh CRM Grid on close of Custom Page open from ISV.Config

I was working on requirement where user want to add Opportunity records from custom UI opened from opportunity grid(ISV customization).  After creating opportunity records using custom UI, user wanted to see newly created records in CRM opportunity grid.

Here is the code you can use to refresh the CRM grid.

<Grid>
     <
MenuBar>
            <
Buttons>
              <
ButtonJavaScript=”window.showModalDialog('/OpportunityWizard/JLLOpportunityManagementWeb.aspx?userId='+userid,'', 'dialogWidth:1400px;dialogHeight:800px;resizable:yes;status:yes;scroll:no');crmGrid.Refresh();">
                <
Titles>
                    <
TitleLCID="1033" Text="Opp Wizard" />
                </
Titles>
              </
Button>
          </Buttons>
     </
MenuBar>
</
Grid>

Using above ISV config xml, “Opp Wizard” button will be displayed on Opportunity Grid. On Click of “Opp Wizard” button a model popup will open and it will display the custom form which will be used to create opportunity records. Onclose of the form crmGrid.Refresh() will refresh the grid.

Let me know if you any issues while refreshing the grid.

Regards,

Amol

Technorati Tags: ,


No comments: