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 AX (Archived)

Forms loading twice (auto-refresh)

(0) ShareShare
ReportReport
Posted on by

The screenshot below describes the issue that I am facing. In detail, in the form with Header View mode, when I click on the Edit button just one time, the system did automatically twice.

Also, with original PurchTable form, I also observed the same issue happened on that form.  Is there a way to prevent this from happening?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Is there any customizations behind any of these forms ?

  • Community Member Profile Picture
    on at

    What do you mean? when you say "... the system did automatically twice"

    Do you mean two form are getting displayed

    Please provide more clarify about your issue.

  • Ali Zaidi Profile Picture
    4,657 on at

    If it is customization, Please check the menu item. inside tab strip, I was facing some issue, on one customization when developer used menu item for run the child form, and also called the same form  on its click event.

  • Community Member Profile Picture
    on at

    Yes, there are customizations. But nothing having to do with the refresh behavior. Am I missing something? Thank you for your response.

  • Community Member Profile Picture
    on at

    Thank you, Nitesh.

    No, only one form is displayed, but it is displayed and you can clearly see it refresh.

    To test, I console message, and it comes twice.

    Not sure why.  I checked the tab strip. Nothing.

  • Community Member Profile Picture
    on at

    Hello Ali,

    Thank you for your response.

    I have checked the tab strip, but can't find anything. I will continue to investigate.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Matt,

    Thanks for the information.

    Now next question is,

    could you please explain some specifics about the issues you are facing when form refreshes twice.

    If you don't have any customization then I don't think double refresh could be any issue.

    because some time it is required to call executeQuery() to refresh Datasource multiple time may be due to setting ranges to the to datasource

    Please verify and update us with more details

  • Community Member Profile Picture
    on at

    Can you share the customization code here ?

  • Suggested answer
    Jonathan  Halland Profile Picture
    11,310 on at

    Hi.

    We had this as a result of customisations in methods such as a datasource's "active" or "modifiedField", "write" or "insert". We had for example code like myTable_ds.refresh or myTable_ds.reread. Clicking on the button may cause some of these to be called due to auto-save etc.

  • Community Member Profile Picture
    on at

    Hello Nitesh,

    Found the issue, it was indeed a call to executeQuery causing a datasource refresh more than the once needed.

    Thank you very much for your time and attention.

    Sincerely,

    Matt

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 AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans