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)

How to use document.readyState in MS CRM 4.0

(0) ShareShare
ReportReport
Posted on by

 Hi all,

 I have a requirement to place a button in crmForm and onclick event of the Button crmForm data should be saved to DB and then need to redirect to custom page/other related entity.

I have done with placing Button in form and using crmForm.Save() method i am saving form details to DB. To the next line to crmForm.Save() i have used window.location.href and i am redirecting crmForm Url to open other entity details.

Here i am facing issue that form details are not getting saved but the next line code Url redirection is happening fine this is due to the url redirection which i am using next to crmForm.Save().

do anyone can suggest me how to can i check for document.readyState which helps to wait untill crmForm saves the data to DB and reloads the page.

anyone can suggest me how to overcome this issue.

 Regards,

Prashanth Y

*This post is locked for comments

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

     I have other solution:

    1. Update record using webservices - http://technet.microsoft.com/en-us/library/cc677074.aspx

    2. Detach close warning using crmForm.detachCloseAlert();

    3. Redirect to required page.

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