Wednesday, 5 July 2017

Print Middle Data in a field Data in AX2012



static void Job40(Args _args)
{

 
    str firstvalue,finalvalue,a = "ABC";
    info(strRem("ABCD", "C"));
    info(subStr("ABCD", 1,1));
 
    firstvalue = subStr(a,2,2);
 
    finalvalue = strRem(a, firstvalue);
 
    info(finalvalue);
 
}


IN SSRS:

Declaration:
str                         firstvalue,finalvalue,a;

Inside the loop:

 a = SalesPurchInvoiceHeaderFooterTmp.GSTConsignee;
    firstvalue = subStr(a,3,10);
    
    SalesPurchInvoiceHeaderFooterTmp.GSTConsigneePan = firstvalue;
    
    //info(strFmt("%1", firstvalue));
    
    finalvalue = subStr(SalesPurchInvoiceHeaderFooterTmp.GSTBuyer,3,10);
    
    SalesPurchInvoiceHeaderFooterTmp.GSTBuyerPan = finalvalue;
    

No comments:

Post a Comment

Repeat the heading to the next page in SSRS Reports: To repeat the table header in the next page, follow these steps: ⦁    Open the repo...