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)

I cant populate an field I created

(0) ShareShare
ReportReport
Posted on by

I created a field on the Auto charges page by extending MarkupAutoLine table and the MarkupAutoSetup form. I followed the instructions on this link: https://ax.help.dynamics.com/en/wiki/customize-model-elements-using-extensions/

After I did a full DB sync I can see field on the page that I created, but I cant enter a value in that field and save an Auto Charge. Everytime I click save, it moves the cursor back into the field I created. Why cant I add to this field? Is there something else that I should do?

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,049 Super User 2025 Season 2 on at

    What exact properties did you provide for this field? Is some validation (coding) preventing you from saving the record?

  • Community Member Profile Picture
    on at

    Dear Andre,

    In the link posted above, I couldn't follow the steps in the section that is labeled "Extend the FMVehical form" exactly as shown in the link. The "Attributes2" was not in the MarkupAutoSetup form (the form for the MarkupAutoLine). The link states that the path is  Design > Tab > TabPageDetails > TabHeader > DetailsDetails > Attributes2. My form had  Design > Tab but afterwards the remaining path was not there. I found something under the Design>Tab that had other fields shown on the auto charges page, so I decided to add my field there instead. The location where I added my field is MarkupAutoLine(Grid).

    The only other difference is that I added a string field, as opposed to the integer field added in the example. I also commented out the validatedWrite code that I added (which is a little different than the example).

    As a side note, I also added this field in the markupTrans table because that is where the auto charge information is stored. The field doesnt show up in my debugger however.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,049 Super User 2025 Season 2 on at

    Hi,

    The link is an example of a certain form. The markup form is different and can have other controls or control names. Make sure you build the solution without errors to have the changes effective.

  • Community Member Profile Picture
    on at

    I believe that I did add the field to the correct place in the form because the field shows up on the page. I deleted my table extensions and started over. I have only added a field to the MarkupAutoLine its corresponding form markupAutoSetup. I did a DB sync by clicking Dynamics AX> Synchronize database... then running a full database sync. I'm still running into the same issue. This is my output to my build:

    Dynamics AX build started 03/27/2017 11:46.

    Dynamics AX build step: Metadata validation started.

    Dynamics AX build step: Metadata validation completed (3531 ms).

    Dynamics AX build step: X++ compilation, label generation and resource deployment started.

    C:\AOSService\PackagesLocalDirectory\ApplicationSuite\Foundation\AxReference\Microsoft.Dynamics.AX.ManagedInterop.xml(0,0):  AssemblyFileNotFound: Assembly 'Microsoft.Dynamics.AX.ManagedInterop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' failed to load because it was not found.

    C:\AOSService\PackagesLocalDirectory\ApplicationPlatform\ApplicationPlatform\AxReference\Microsoft.OData.Edm.xml(0,0):  AssemblyFileNotFound: Assembly 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' failed to load because it was not found.

    C:\AOSService\PackagesLocalDirectory\bin\XppSource\Application Suite - Sovos\AxClass_SovosPlugin.xpp(85,32):  TypeConversionLosesRangeAndPrecision: The type conversion from 'real' to 'int' loses range and precision.

    Dynamics AX build step: X++ compilation, label generation and resource deployment completed (33496 ms).

    Dynamics AX build step: Best practice check started.

    C:\AOSService\PackagesLocalDirectory\bin\XppSource\Application Suite - Sovos\AxClass_SovosPlugin.xpp(208,38):  BPErrorLabelIsText: BP Rule: [BPErrorLabelIsText]:BPErrorLabelIsText: 'ANDREWTEST' is not a label ID.

    C:\AOSService\PackagesLocalDirectory\bin\XppSource\Application Suite - Sovos\AxClass_SovosPlugin.xpp(303,41):  BPErrorLabelIsText: BP Rule: [BPErrorLabelIsText]:BPErrorLabelIsText: 'SHIPPING' is not a label ID.

    C:\AOSService\PackagesLocalDirectory\bin\XppSource\Application Suite - Sovos\AxClass_SovosPlugin.xpp(319,41):  BPErrorLabelIsText: BP Rule: [BPErrorLabelIsText]:BPErrorLabelIsText: 'SHIPPING' is not a label ID.

    C:\AOSService\PackagesLocalDirectory\bin\XppSource\Application Suite - Sovos\AxClass_SovosPlugin.xpp(1,1):  BPXmlDocNoDocumentationComments: BP Rule: [BPXmlDocNoDocumentationComments]:BPXmlDocNoDocumentationComments: No XML documentation headers are provided for 'SovosPlugin'.

    Dynamics AX build step: Best practice check completed (2119 ms).

    Dynamics AX build completed (39193 ms).

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,049 Super User 2025 Season 2 on at

    Can you specify the exact details of the new field? Did you create a new extended data type or used an existing one? On the EDT, but also the table properties, check if the CountryRegionCodes property could have countries listed which is not the country of your legal entity. Also check the Visible property.

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