I want to convert Numbers to text format. I know method but how to call this method in Reports not in jobs.
in place of 1000 I want 'Total'
I dont Know How to assign Amount field in total variable in display method
How to write display method to convert the total value in text?
I solve this Issue.I wrote this code. It;s working
display str Total()
Have you declared the total variable in one of the methods or in Class declaration.
if you're using ax 2009, u need to create display method in the report and assign it.
but if you're using ax 2012, u need to add field ('Total') in the temporary table and insert the value into that ('Total') field from Report Data Provider class.
I declared Total variable in Classdeclaration.
but Assigning of total variable in display method is throwing an error i.e Syntax Error.
display AmountCur Total()
Total = VendPurchOrder.Amount;
Total = VendPurchOrder.Amount; ....................It throws Syntax error
I dont know how to assign this variable. Pls help me................
maybe u can try using this:
It is also not working
display str60 Total()
return strfmt("%1", Total);
Mr Balu, you May assigned Total Variable as Str so Change the DataType of Total Variable to Int in Class Decleration. Hope it wil work
Don't Forget to Verify Solution
in class declaration
and in display Method
display AmountCur getTotal()
Total = VendorPurchOrder.Amount;
© 1995-2013 Dynamics User Group, all rights reserved.