class xxx_EntAssetWorkOrderTableFrm_EventHandler
{
public void workOrderId_OnJumpRef(FormDataObject _target)
{
Args args = new Args();
args.record(_target.datasource().cursor());
args.caller(_target.datasource().formRun());
args.menuItemName(menuitemDisplayStr(EntAssetWorkOrderTable));
new MenuFunction(menuitemDisplayStr(EntAssetWorkOrderTable),MenuItemType::Display).run(args);
}
}
[ExtensionOf(formstr(EntAssetWorkOrderTable))]
final class xxx_EntAssetWorkOrderTableFrm_Extension
{
///
///
///
///
///
[FormDataSourceEventHandler(formDataSourceStr(EntAssetWorkOrderTable, WorkOrderTable), FormDataSourceEventType::Initialized)]
public static void WorkOrderTable_OnInitialized(FormDataSource sender, FormDataSourceEventArgs e)
{
var workOrderHandler = new xxx_EntAssetWorkOrderTableFrm_EventHandler();
sender.object(fieldNum(EntAssetWorkOrderTable, WorkOrderId)).registerOverrideMethod((methodStr(FormDataObject,jumpRef)),
methodStr(xxx_EntAssetWorkOrderTableFrm_EventHandler,workOrderId_OnJumpRef),workOrderHandler);
}
}
Thank you for sharing the screenshots.
I did the same thing as you mentioned above but my scenario is this customer name field from another data source needs to add in list grid as well. Work Order is a "Detailed Transaction" form pattern, so adding this Data Source and making join type as "Outer join" the linking of these two data source is working fine but the reference of "Work order Id" is gone.
Means- When I'm clicking on any record in All work order form, only the last record is opening.
I have tried to write jump ref as well, but this method is not triggering.