Unable to pass Argument from List Page to Controller class in AX 2012

Hi AXperts,

My requirement is to Pass the Parameter named - “ABCD” from List Page form to a Controller class which is MenuItem.

For that in List Page interaction class, in SELECTIONCHANGED method, I added the following code -

this.listpage().actionpanecontrolparameters(formcontrolstr(, ), “ABCD”);

IN MAIN method of the controller class, I wrote the following -

info(element.args().parm());

But the Value is not coming. Please help.

Main is a static method. How can you reference element in that method? Not sure how your code even compiled.
Main method will have the args as parameters, you need to use that (Example: _args.parm())