Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. /// <summary>
  2.     ///
  3.     /// </summary>
  4.     /// <param name="sender"></param>
  5.     /// <param name="e"></param>
  6.     [FormDataFieldEventHandler(formDataFieldStr(SalesTable, SalesTable, AXMInvoicePostalAddress), FormDataFieldEventType::Modified)]
  7.     public static void AXMInvoicePostalAddress_OnModified(FormDataObject sender, FormDataFieldEventArgs e)
  8.     {
  9.         FormDataSource salesTable_ds = sender.datasource();
  10.         AXMSalesTableInvoicAddress invoiceAddress = salesTable_ds.cursor();
  11.         SalesTable salesTable = SalesTable::find(invoiceAddress.SalesId);
  12.  
  13.         salesTable.selectForUpdate(true);
  14.         salesTable.AXMInvoiceName = invoiceAddress.Address;
  15.         ttsbegin;
  16.         salesTable.update();
  17.         ttscommit;
  18.  
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement