Saturday, 19 September 2020

How to get DataSource object from FormDataSourceEventHandler

 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

AZURE INTERVIEW QUESTIONS AND ANSWERS

AZURE INTERVIEW QUESTIONS AND ANSWERES 2021 2. What is cloud computing? Explanation:  It is the use of servers on the internet to “store...