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)

How do I change the labels on my parameters and have the report reflect my changes

(0) ShareShare
ReportReport
Posted on by

I have created a report using RDP classes. It has 2 parameters, From Date and To Date. Previously, I had both  parameters declared as TransDate EDT in  the  class. The label for both parameters show as "Date".

date_5F00_date.JPG

I am  trying to make the parameters say From Date and To Date so I tried the SysOperationLabelAttribute class (see code below), selected Build in Visual Studio, and  Deploy in AOT, and launch from my Menu Item  The report parameters' labels remain the same. 

Now I changed the definition of the class variables as FromDate and ToDate EDT respectively. I also changed  the Prompt String property of the parameters in Visual Studio to the label (@SYS328562 - From Date). Build (in VS), and deployed (AOT). Still, the parameters are "Date, Date".

date_5F00_date3.JPG

How can  I  change  the label of the parameters to show From Date  and To Date? Why won't the report refresh to show the changes I  have made? Do I need to delete the report and start again?

Here is my code, it is very standard.

[DataContractAttribute]
public class PositivePayContract
{
FromDate fromDate;
ToDate toDate;

}

[DataMemberAttribute('FromDate'),
SysOperationLabelAttribute(literalStr("@SYS328562")),
SysOperationDisplayOrderAttribute('0')
]
public FromDate parmFromDate(FromDate _fromDate = fromDate)
{
fromDate = _fromDate;
return fromDate;

}

[DataMemberAttribute('ToDate'),
SysOperationLabelAttribute(literalStr("@SYS328564")),
SysOperationDisplayOrderAttribute('1')
]
public ToDate parmToDate(ToDate _toDate = toDate)
{
toDate = _toDate;
return toDate;
}

Here is my project. I am using Ax 2012 and VS 2013

date_5F00_date2.JPG

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    can you try on thing

    1) have backup of your objects

    2) proceed to your reporting server URL and delete RDL file of report

    3) now deploy the report with changed labels

  • Community Member Profile Picture
    on at

    Hi Sohaib,

    Thank you for your response.

    I don't think I have access to the report server. I will check, but can I instead just delete the SSRS Report object from the AOT?

  • Karunakaran nainar Profile Picture
    452 on at

    Delete the parameters from the visual studio  refresh the the datasource and redeploy

  • Suggested answer
    nimi Profile Picture
    611 on at

    you can redeploy the report or do incremental CIL then check it.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    deleting report from AOT means losing your current layer customization/changes. Be careful while doing so.

  • Community Member Profile Picture
    on at

    Deleted the two parameters,  but there was an error "Domain role with multiplicity 0..1 or 1 can hold at most 1 link". So I undid the change.

  • Community Member Profile Picture
    on at

    Thank you for the reply. I did both.  Still the labels remain the same.

  • Community Member Profile Picture
    on at

    So Now I deleted the parameters in the contract class and refreshed the dataset in VS. The report Preview mode does not show the parameters. Ok. Then I rebuild (VS) and deployed (AOT). When I open the menu item, the parameter dialog box appears with the two parameters still!!!!

    How do I refresh the report?

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    have you tried deleting RDL?

  • Community Member Profile Picture
    on at

    In VS, Clean the report and Build, then redeploy it from AOT.

    Sometimes just rebuilding doesnt help.

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