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.
*This post is locked for comments
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.
*This post is locked for comments
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
Hi Lionel07, do you still have some open questions? If not, could you please mark the helpful answer(s) as verified. Thanks!
Don't use TransDate EDT and just use FromDate and ToDate for these fields or specify labels where you are adding these fields.
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.
You can use the SysOperationLabelAttribute: community.dynamics.com/.../ax2012-sysoperation-part-1-data-contracts-and-service-operations
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.
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?
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156