DataSource object from FormDataSourceEventHandler
FormDataSourceEventHandler(formDataSourceStr(LedgerJournalTable, LedgerJournalTable), FormDataSourceEventType::Activated)]
public static void LedgerJournalTable_OnActivated(FormDataSource sender, FormDataSourceEventArgs e)
{
LedgerJournalTable currentRecord = sender.cursor();
FormDataSource ledgerJournalTableDS = sender.formRun().dataSource(formDataSourceStr(LedgerJournalTransDaily, LedgerJournalTrans));
}
Now from the ledgerJournalTableDS you can get the datasource instance.
Thanks,
Vikas Mehta.
No comments:
Post a Comment