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)

Document Title in Sales Invoice report

(0) ShareShare
ReportReport
Posted on by 790

Hi,

My requirement is to change the title of the sales invoice report and show the title as (say) XYZ and also allow the user to be able to print standard title as well.

So what I have done is added another menu item ( basically replicated existing one ) and now want that whenever user clicks this new_item option he should be able to see XYZ.

I have checked into the controller class and found the documentTitle method controlling this but I am unable  to find the caller menu item in the documentTitle method hence unable to change the title in report.

Thanks,

Anoop

*This post is locked for comments

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

    Hi Anoop,

    Potentially you can add a parameter as property value on the new menu item. When starting the main method, it would be possible to read this value from the args() parameters.

  • Anoop Tripathi Profile Picture
    790 on at

    Ok I will try that as well.

    At present I manged to do this by adding a new param method in contract class and in prerunmodifycontract i made it true then checked this while inside documenttitle method.

    Do let me know what you would consider as better solution.

    Also can you point nay example doing such a scenario as suggested by you.

    I will trying your solution my morning tomorrow.

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