I have a typescript extention that correctly adds a new action to the item view in AR301000. The action should only be enabled depending on certain criteria for each ARTran line on the invoice.
I have read the examples for the @updateDecorator which I understand is the correct way to update an existing decorator in an extention.
I have added the following to my extention of the ARTran view:
import { PXActionState, updateDecorator } from "client-controls";
import { ARTran } from "src/screens/AR/AR301000/AR301000";
export interface AR301000_MyExt extends ARTran { }
@updateDecorator("gridConfig", "syncPosition", true)
export class AR301000_MyExt {
AssignOptions: PXActionState;
}The action is displaying but the RowSelected event in the GraphExtention is not being called.
I have also tried with a delegate as follows:
import { PXActionState, updateDecorator } from "client-controls";
import { ARTran } from "src/screens/AR/AR301000/AR301000";
export interface AR301000_MyExt extends ARTran { }
@updateDecorator("gridConfig", (config) =>{
config.syncPosition = true;
return config;
})
export class AR301000_MyExt {
AssignOptions: PXActionState;
}Same result, the RowSelected events ar enot fired.
I’ve obviously missed something any help would be greatly appreciated.