Posts

Showing posts from November, 2023

Post Load Method in Data Entity in D365

  // post load method in data entity public class BA_UnifonicOrderSendDataEntity extends common {     /// <summary>     ///     /// </summary>     public void postLoad()     {         SalesTable salesTable;         ARF_CapacityMasterTable masterTable;         SalesLine salesLine;         SalesQty totalOrderedQty;         super();                  select SalesId, ARF_DestinationCode, ShippingDateConfirmed from salesTable where salesTable.SalesId == this.SalesId;         select sum(SalesQty) from salesLine where salesLine.SalesId == salesTable.SalesId;         totalOrderedQty = salesLine.SalesQty;         select firstonly RecId, ARF_Date from masterTable             where      ...

chain of commands with different controls

Image
 [ExtensionOf(formControlStr(SalesTable,WhatsAppNotification))] final class BA_UnifonicOrderSendService_Extension {     public void clicked()     {         FormControl formButtonControl = any2Object(this) as FormControl;         FormDataSource formDatasource = formButtonControl.formRun().dataSource(tableStr(SalesTable));         SalesTable salesTable = formDatasource.cursor();         next clicked();         info(strFmt("%1",salesTable.SalesId));        // BA_SendNotificationToWhatsApp sendService = new BA_SendNotificationToWhatsApp();        // sendService.sendNotificationsToWhatsApp();     } } // second chain of command /// <summary> ///This class is used to update the delivery status in salestable /// </summary> [ExtensionOf(formControlStr(InventOnhandReserve,ReserveNow))] final class BA_onModifiedRe...