Re: Refreshing a view after Update by Stephen
Stephen
Thu Jul 22 10:00:46 CDT 2004
Hi Veejay,
I'm pretty sure that this will be what you want:
function window.onunload()
{
window.opener.crmForm.SubmitCrmForm( 1, true, true, false );
}
This causes the underlying form to save and the refresh. If you just want
it to refresh (discarding any changes that you may have made) then use:
function window.onunload()
{
window.opener.crmForm.SubmitCrmForm( 4, true, true, false );
}
I used the code below from ASP.NET to only create the JavaScript snippet if
the user had clicked "Save" on my ASP page:
string ClientSaveScript = "<script language='javascript'>" +
"function window.onunload() {window.opener.crmForm.SubmitCrmForm(
1, true, true, false ); }" +
"</script>";
Page.RegisterClientScriptBlock("ClientSaveScript", ClientSaveScript);
I hope that helps.
Stephen
"Veejay" <vidyajay@gmail.com> wrote in message
news:a183175a.0407130525.2e3c012f@posting.google.com...
> Hi
>
> I have a button that invokes an aspx page which updates some object
> (say some attribute of a quote or account).I've used the Update
> function in the SDK and display a message that the update has been
> successful.There is no problem until this part.
>
>
> Now, Is there a way for this change to be automatically cascaded in
> the view page? or Is there some other way to refresh the pages or
> close the current window etc and reload it again?
>
>
>
> Thanks.
>
> Vidya