Parameter to Action MenuItem

Hello All,

have to pass a parameter ( string or integer ) to menu Item which is of type action.

Class for action is a class inherited from RunBase.

Tried to assign parameter using Parameter property of MenuItemType but at class level value is coming always NULL or string empty.

Kindly Suggest

You definitely can use the Parameters property and read the value from args.parm() in the main() method of the class. Alternatively you can use an enum parameter.

I don’t believe that the parameter doesn’t get passed to the main() method. More likely you don’t process it correctly there (e.g. you set the value to an instance variable but you fail packing and unpacking it).

Can you verify whether the value exist in main()?