class CustOpenTrans_form_Exthandler
{
[PreHandlerFor(formStr(CustOpenTrans), formMethodStr(CustOpenTrans, close))]
public static void CustOpenTrans_Post_close(XppPrePostArgs args)
{
FormRun sender = args.getThis();
CustTransOpen custTransOpen = sender.dataSource(formdatasourcestr(CustOpenTrans, CustTransOpen)).cursor();
LedgerJournalTrans ljt = sender.args().record();
info('Event: CustOpenTrans_Post_close');
info(strFmt('Ledgertrans voucher %1',ljt.Voucher));
}
[FormControlEventHandler(formControlStr(CustOpenTrans, Save), FormControlEventType::Clicked)]
public static void Save_OnClicked(FormControl sender, FormControlEventArgs e)
{
LedgerJournalTrans ljt = sender.formRun().args().record();
info('Event: Save_OnClicked');
info(strFmt('Ledgertrans voucher %1',ljt.Voucher));
}
[FormEventHandler(formStr(CustOpenTrans), FormEventType::Closing)]
public static void CustOpenTrans_OnClosing(xFormRun sender, FormEventArgs e)
{
LedgerJournalTrans ljt = sender.args().record();
info('Event: CustOpenTrans_OnClosing');
info(strFmt('Ledgertrans voucher %1',ljt.Voucher));
}
}