I’ve created a view that uses the InvoiceAmountMST column.
I’d like another column to be a string “Invoice” if this value is positive, if this value is negative “Credit”.
I’ve taken a look at Computed View Columns in AX, although I’m not 100% sure this is the right method?
A first attempt below, I’m stuck at how to get a numeric value from the dictView and then return a string after checking for negative figures (if this is indeed the right way to go)
public static server str getInvoiceType() { #define.CompView(GBCustInvoiceJourView) #define.CompDS(CustInvoiceJour_1) #define.InvoiceAmountMSTCol(InvoiceAmountMST) str invoiceAmount; DictView dictView; ;
dictView = new DictView(tableNum(GBCustInvoiceJourView));
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!