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)

Form field data disappear when modifying other field

(0) ShareShare
ReportReport
Posted on by

Hello all, I am a newbie to Microsoft AX development. My scenario is that I have a form with multiple fields. There is a specific field "Vehicle Data" , when I modified or enter some data here the data I entered on all the previous fields seems to be disappeared except for 2 or 3 fields. My field is bind to my datasource and there is nothing written in the modified method of the field. I am unable to find any property that could be set  to resolve the issue . Any help or guidance plz

*This post is locked for comments

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Please share more details such as screenshots of your form design, form data sources, the settings of this field, as well as table browser contents for this table.

    Also please describe which fields get cleared, and share the settings (especially data source, data field) of these fields as well.

  • Community Member Profile Picture
    on at

    Thanks for Reply. Its just a simple String Edit type field bind to a datasource. When I try to modify this field it disappears data on some of the fields like The other field is a integer field which reserves its values. Date and real data type fields do not reserves the values. The properties seems to be same for all.

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Please share the properties.

    Also please check following methods in the underlying table: modifiedField, insert and update. Is there any specific logic?

  • Community Member Profile Picture
    on at

    This thing is also happening when form is closed via "Close" button at bottom . Do I have to override the close button?

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Unfortunately it's not possible to help if you don't provide more information. Could you please answer the questions in my previous messages? Thanks!

  • Community Member Profile Picture
    on at

    there is a method in table, which sets the value. thanks for that. But close button on the bottom does not save anything. hence it refreshes some of the data

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    The standard behavior of the system is that closing a form also saves the data.

  • Community Member Profile Picture
    on at

    I think its saving on the close button but its doing on init() of form which is making the data disappear but im unable to find

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    The init method of the form is called only when the form is opened. If it's called at some other point, you have some kind of bad customization. And that can definetely cause some strange behavior.

  • Community Member Profile Picture
    on at

    May be the data is saved on close and doing something (although only at the form opening) which cause the data to be deleted

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans