Get the value of Month or YY in SysComputedCOlumns in AX views

Here is the Code:

public static server str WFinvoiceDateMM()
{
    str sDate =
        SysComputedColumn::returnfield(
            tableStr(WFSyscoInvoicesV),
            queryDataSourceStr(WFSyscoInvoicesQ, CustInvoiceJour),
            fieldStr(CustInvoiceJour, InvoiceDate)
            );

    return 'Month(' + SysComputedColumn::fromUtcDateToDate(sDate) + ')';

}

Comments

Popular posts from this blog

SysDictField object not initialized. - Views

How to filter data for the last few weeks?