Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

changing form label on form for reports

(0) ShareShare
ReportReport
Posted on by 493

Ho do I change the labels on this form to say "From Date", "To date", ">Trans Date" insteal od what is higlighted in red? 

Any help would be greatly appreciated... I need to close this project.

pastedimage1569517672525v1.png

*This post is locked for comments

  • Lionel07 Profile Picture
    Lionel07 493 on at
    RE: changing form label on form for reports

    Hello Nikilaos,

    I really appreciate your help... For someone who is learning how to programming in morphX this is reallly what he wanted.

    Your suggestion about SysOperationLabelAttribute works perfectly. Thanks again

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: changing form label on form for reports

    Hi Lionel07, do you still have some open questions? If not, could you please mark the helpful answer(s) as verified. Thanks!

  • Suggested answer
    Khushhal Garg Profile Picture
    Khushhal Garg 1,514 on at
    RE: changing form label on form for reports

    Don't use TransDate EDT and just use FromDate and ToDate for these fields or specify labels where you are adding these fields.

  • Suggested answer
    Pedro Tornich Profile Picture
    Pedro Tornich 955 on at
    RE: changing form label on form for reports

    Hi Lionel07,

    As mentioned before, just change the fromDate and toDate variable types to FromDate and ToDate EDTs respectively, instead of using DueDate on both.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: changing form label on form for reports

    You can use the SysOperationLabelAttribute: community.dynamics.com/.../ax2012-sysoperation-part-1-data-contracts-and-service-operations

  • Lionel07 Profile Picture
    Lionel07 493 on at
    RE: changing form label on form for reports

    This is my code

    Class declaration:

    [ DataContractAttribute ]
    Class AdtpContract
    {
        CustInvoiceAccountName    invoiceacccount;
        DueDate       fromdate;
        DueDate       todate;
        TransDate     tdate;
    }

    Class method

    [DataMemberAttribute('FromDate')]
    public duedate paramfromdate(DueDate _fromdate = fromdate)
    {
        fromdate = _fromdate;
        return fromdate;
    }

    Similar method are used for the other parameters to be passed. ie. "today", "transaction date" customer account

    Appreciate of you could help.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: changing form label on form for reports

    The label comes from the Extended data type that you use on the field.

    Just use types FromDate and TransDate and you should be good to go. You can also change the label itself but without knowing how you created this dialog, it's not possible to tell how you need to change your code. Is it possible to get some more information on how you implemented it, and see the code where you define the dialog fields?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans