web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Fields resetting on form open

(0) ShareShare
ReportReport
Posted on by 1,673

Hi everyone

I've got a very strange and frustrating issue that I can't resolve.

In a certain environment, a user will create an RFQ and send it off to the vendor.

Regarding the RFQ vendor reply, values are updated via code. In other words, the user now has an RFQ Reply record that has had values updated in it via code. However, when the user opens the PurchRFQReplyTable, the datasource values are all reset and they get default values. 

Initially I thought there might be some kind of event in the run method or init method or on one of the datasource events, or some code somewhere that pulls values in from cache or something like that, but I can't find it anywhere. There is also no custom code on this form (except for just a little bit that only enables/disables controls; nothing data related)

I put a DB log tracer on the table, and indeed the record (several fields) is changed by the user that opened the form, but that's all the user does: open the form. This happens with most users, but not all. I'm gonig to try to clear usage data. 

Is anyway acquainted with behavior from forms like this, or does anyone know where I should be looking or have any suggestions? 

Thank you very much

*This post is locked for comments

I have the same question (0)
  • MC08 Profile Picture
    170 on at
    RE: Fields resetting on form open

    Should be some conflict between your customization and standard Ax logic.

    Put showing stack code in update method of the table, see any hint for further tracing.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Fields resetting on form open

    If your datasource has Insert if empty = Yes set on the form, and you are not linking the datasource against another table, or a caller record, AX will insert a new row for you.

    Or there could be some logic somewhere which does change the values. I would suggest to build cross-references in your developer environment, and check all xRefs on a field that you know is changing, with access type "Write". It would be one of those methods which are altering your values. Then you could further narrow it down by using some breakpoints.

    Alternatively you could capture an AX client / server trace, and check the call stack there in the Trace Parser Tool.

  • Verified answer
    BrandonSA Profile Picture
    1,673 on at
    RE: Fields resetting on form open

    Hi everyone.

    This question is obsolete now. I discovered after a team viewer session that this was a user input error.

    Thank you

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans