Hi experts,
I want to add some fields of SalesTable on form SalesLineOpenOrder, since property LinkType of form datasource SalesTable is Delay, and the added fields are not fetched. I try to change the link type through overwriting the Initialized event handler like below, but it does not work. Any suggestion is appreciated.
[FormDataSourceEventHandler(formDataSourceStr(SalesLineOpenOrder, SalesTable), FormDataSourceEventType::Initialized),
SuppressBPWarning('BPParameterNotUsed', 'False positive')]
public static void InventJournalTable_OnActivated(
FormDataSource _sender,
FormDataSourceEventArgs _e)
{
_sender.queryBuildDataSource().joinMode(JoinMode::InnerJoin);
}