Action pane control in form extension class

Hello,

   I am trying disable a an action pane control(formmenufunctionbuttonControl) based on some condition. But i could not able to do this. Following is the code snippet i have written to disable the control. Can you guys please help me on this? Thanks for you help

[extensionof(formStr(ProjTable))]
final public static class ProjTableFormBAS_Extension
{
[PostHandlerFor(formStr(ProjTable), formMethodStr(ProjTable, init))]
public static void ProjTable_Post_init(XppPrePostArgs args)
{
    FormRun formRun = args.getThis();
   var forecastdelete = formRun.design().controlName("ProjForecastBudgetDelete");


   forecastdelete.enabled(false);
}

}

Parents
No Data
Reply Children
No Data
Related
Recommended