i am currently Working on the Purchase order SSRS Report.
i need to display the Amount in words of the Total PO amount,
Please Help me.
*This post is locked for comments
public str AmountToWords(real _amount) {
}
for more information you can visit: https://360dynamics.blogspot.com/2017/09/dynamics-ax-x-code-amount-to-word.html
Hi,
Add a str2016 type field in the temporary table. You need to refresh the dataset to get the new field in visual studio level. In DP class pass the total amount to Global::numeralsToTxt(TotalAmount) and assign it in the new field.
your code above, is correct
Simply
PurchPurchaseOrderHeader .NewStringTypeField = Global::numeralsToTxt(PurchPurchaseOrderHeader .Amount);
Note:
If Field is not coming in DataSet, its a spate subject, which can be because of any reason. I would not be interested to comment on that
i am understand, but which Code is writing on that Place.
i am adding a New String Field in the PurchPurchaseOrderHeader but it is not Coming in the Data Set.
Please Provide me the Code if Possible.
yeah that should most likely a workable code by putting it on this table.
another approach can be adding code in at following location
\Classes\PurchPurchaseOrderDP\setPurchPurchaseOrderHeader
just before/above this line of code
purchPurchaseOrderHeader.insert();
you have to add a string type field, in your PurchPurchaseorderHeader , in this case and that would reflect the String/Amount in words on SSRS
Hi Sohaib,
I am Writing the below Code in PurchPurchaseorderHeader Table.
display str numToText()
{
Str text;
text = Global::numeralsToTxt(this.Amount);
return text;
My Question Is How to Get this in the Visual studio dataset
Please Give The Detailed Explanation.
i am customizing the Purchase order Report.
Where to write this Code.
and Where To add this Field.
you cannot do this on SSRS level, easily.
The most optimal way is to do it inside AX and send results to SSRS just to display those
you may use Global::numeralsToTxt
Use
Global method likewise
Global::num2Text("");
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Syed Haris Shah 9
Mea_ 4
Martin Dráb 2 Most Valuable Professional