I need to open the form on button click
and inside clicked method i kept this code
Args args;
FormRun formRun;
Args = new Args(formStr(HcmGoalAddFromTemplate));
formRun = New FormRun(Args);
formRun.init();
formRun.run();
formRun.wait();
formname --------> HcmGoalAddFromTemplate
and I also tried using menuitem button with the same formname
always getting the same error as Object reference not set to an instance of an object.