Hello,
I am trying to use form datasource(SalesParmTable) "OnInitialised" event in "SalesEditLines" form. I have created a new class and pasted the event handler code in it.
The issue here is that I am not able to get the selected record in "SalesParmTable" buffer. Below is the code:
[FormDatasourceEventHandler(formDataSourceStr(SalesEditLines, SalesParmTable), FormDataSourceEventType::Initialized)]
public static void SalesParmTable_OnItialized(FormDataSource sender, FormDataSourceEventArgs e)
{
FormDataSource SalesParmTable_ds = sender.formRun().datasource("SalesParmTable");
SalesParmTable salesParmTable = SalesParmTable_ds.cursor();
if(salesParmTable)
info("Found");
else
info("Not Found");
Any input is highly appreciated!
*This post is locked for comments
I have the same question (0)