Answered by:
CRM 2013 - Bug with dialog box that open a new record without reasons.

Question
-
Good morning,
the CRM online organisation when i work have been migrated into 2013 version (Orion).
Since the migration, i have a problem with a dialog box.
MY PROBLEM :
1) I open a new record of a custom entity created (demande EIS), i save it.
2 When the record is saved, i click on a custom ribbon button that open a standard dialog box configured in the CRM. The dialog box contain only a option set that contain values to select. When a value is selected, the record is updated with the value.
3) I select the value, click next and finish. A refresh of the opened record is done and a window of a new record of the same entity appear !! I dont know why a new record is opened.
4) When i go to the list of records, i can see that my record is updated with the value selected via the dialog box.
Why a new record is opened automatically when i close or finish the dialog box process ?
Thank you very much for your help.
Regards,
Jean-Michel
Wednesday, February 12, 2014 5:18 PM
Answers
-
Hi Scott
The problem have been resolved by changing the line "window.location.reload(true);" by "Xrm.Page.data.refresh();"
Thanks !
- Marked as answer by DOS-SANTOS Wednesday, February 26, 2014 10:03 AM
Wednesday, February 26, 2014 10:03 AM
All replies
-
Hi Jean-Michel,
How are you refreshing the window after the dialog is run? Is this a custom piece of javascript that does this refresh? Or are you manually refreshing the record using F5?
Thanks,
Scott
Scott Durow
Blog www.develop1.netFollow Me
Rockstar365
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"Thursday, February 13, 2014 10:29 AMAnswerer -
Hi Scott,
Thanks for your reply and sorry for my late response ( hollidays :) ).
I'm currently using a JScript refresh ==> window.location.reload(true); but i don't think that it's the problem.
I'm tried to comment this refresh and test again but when you finish the dialog box process, the record is automatically refreshed by the standard process and the record turn again to a new record.
This problem only appear when i save a new record and use the dialog box after.
I don't have this problem if i open an existing record and use the dialog box.
I've tried to use the dialog box process by the standard button "run process" and i have the same problem.
It's really strange !
Thanks again
Regards,
Jean-Michel
- Edited by DOS-SANTOS Tuesday, February 25, 2014 6:20 PM
Tuesday, February 25, 2014 6:18 PM -
Hi Scott
The problem have been resolved by changing the line "window.location.reload(true);" by "Xrm.Page.data.refresh();"
Thanks !
- Marked as answer by DOS-SANTOS Wednesday, February 26, 2014 10:03 AM
Wednesday, February 26, 2014 10:03 AM