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

Script to Move the temp database from C Drive to D drive

SysDictField object not initialized. - Views

PROCEDURE TO CHECK IF A BACKUP IS BEING TAKEN ON A SERVER WHICH IS LINKED TO THE CENTRAL SERVER AND IS ACTIVE