Posts

JumpRef on form extension/ Access child form record from parent form

Image
Apply JumpRef on form extension/ Access child form record from parent form    Use case : Jump to child form from standard form field and filter records on the child form. Parent form : Let's suppose "SalesTable" is the parent form, and "SalesTable_DS" is its primary data source. Child form : XXX_TestForm is the child form, XXXTestTable_DS is the primary data source. Parent form extension: [ExtensionOf(formStr(SalesTable))] public final class XXXSalesTable_Extension {    public void jumpRef(FormControl _formControl)       {         XXXTestTable     testTable; // Your target table         MenuFunction     menuFunction;         Args args    = new Args();         str refValue = _formControl.valueStr();         if (testTable.RecId)         {             select first...

Generate Text/CSV/DAT file using X++ and upload on Azure blob storage

 Generate Text/CSV/DAT file using X++ and upload on Azure blob storage There are many scenario's where we want to wrap data inside the file and upload on blob storage. Following code use to generate file and upload on azure blob storage. `   public void processOperation(Contract _contract)     {         #OccRetryCount         #File         InventTrans          inventTrans;         Query                query;         QueryRun             queryRun;         str                  stringToWrite;         int                  recordCount = 0;         stringToWrite = "Customer Account Number|Invoice Amou...