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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Unable to Save the changes new DirtPatyTable field displayed on Employee Form?

(0) ShareShare
ReportReport
Posted on by 3,177

Hi,  I have added a new field called "Nick Name" on DirParty Table and displaying it on the Employee form.

This field on Employee form looks editable, but when i edit it is not saving the changes.  I am able to edit it on DirPartyTable Form.

any guidance would be great .

Thanks.

*This post is locked for comments

  • Denis Patrakov Profile Picture
    on at

    If you're talking about EmplTable form then it's not intended to be used to edit anything directly in the DirPartyTable. If you look at \Forms\EmplTable\Data Sources\DirPartyTable\Methods\write then you'll see that the call to super() (where the changes are actually written to the database) is commented out:
    public void write()
    {
        // super();
        Address_ds.allowCreate(true);
    }

    That's why when you save the changes none of them are written to the DirPartyTable.

  • San Artham Profile Picture
    3,177 on at

    Hi Denis,  then looks like i have to write code to allow my User to update this Nick Name field in the Employee form. can you tell me where would be the appropriate place to write this.

    Thanks.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Santosh,

    Why not just create the new field in the emplTable?  Unless you need a nick name for each contact person, I don't see why you need to add it to dirPartyTable

  • San Artham Profile Picture
    3,177 on at

    Thanks Ken

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans