Hi guys,
I am trying to open the product dimensions from from a custom form using the following code
void clicked() { EcoResProduct ecoResProduct; Args args = new Args(); //super(); ecoResProduct = EcoResProduct::find(InventTable::find(BOM.ItemId).Product); args.record(ecoResProduct); new MenuFunction(menuItemDisplayStr(EcoResProductMasterDimensionAction), MenuItemType::Display).run(args); }
This opens the expected form but the data isn't filtered to the particular product I provied. Instead it is showing all the dimensions.
I have debugged through the init method of the Form 'EcoResProductMasterDimension' and the only thing it used from the args passed to it is the record 'EcoResProduct' which I am providing but it isn't working as expected.
Any ideas?
Thank you.
*This post is locked for comments