Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Monday, December 25, 2017

Code to print form letter notes like Purchase Order notes, Sales Quotation etc in AX 2012

Hi,

 print FormLetterRemarks::find('en-us',FormTextType::ProjectQuotation).Txt;

viz, PurchaseOrderConformation

Regards,

Code to print attachment Notes in AX 2012

Hi,

static void Job75(Args _args)
{
    DocuRefSearch        docuRefSearch;
    SalesQuotationTable     quotationTable;
    quotationTable = SalesQuotationTable::find('CBI-000039');
    docuRefSearch = DocuRefSearch::newTypeIdAndRestriction(quotationTable, 'note', DocuRestriction::External);
           
    //    projActivityCostSummaryTmp.Notes                = Docu::concatDocuRefNotes(docuRefSearch);
    print Docu::concatDocuRefNotes(docuRefSearch);
    print DocuRef::find(quotationTable.dataAreaId,quotationTable.RecId).Notes;
    pause;
}

Regards

Saturday, December 16, 2017

Unretrieved Values in Grid AX 2012

Hi,

You may face this kind of error / bugs during newly added fields to the table.

Case 1:
If the record is Unretrieved in table level-  Sync issue
Solution:
Right click and select synchronize that concern table.

Case 2:
If it not let you to open that table
Solution:
Synchronize entire AOT.

Case 3.
If it says Unretrieved Values in Grid
Solution:
Restart the AOS.

Thanks & Regards,



FileNameSplit() to slip the Directory, file name and extension in D365 FnO

 Hi,     /// <summary>     /// Validate the Fileformat     /// </summary>     /// <param name = "filepath">FileP...