Hi I am trying to use a class to create a report. I created the class and it opens fine. When I try to run the report from the menu I get a Error: Error executing code: MyReport object not initialized. StackTrace: \Classes\MyReport\paramCustDiv \Reports\MyReport\Methods\init
The first thing that i will check is the property settings of the Menu Item which runs the report. Class -->Class Object ->Name of the class that runs the report. The other place to check is Look at the Init method of the other reports for example report CustBalance list should make a call to the class as follows. custReport_BalanceList = element.args().caller(); I hope it helps. What do you mean by opening the class and it opens fine.?
When i click open in class . It opens the dialog that needs to open on runing the report. i did as mentioned i changed the menu item to class and i get main method missing error which is not the case , i have included the main method.
Hi Saru, Did you get the main method missing error when you change the property “Class” and "Object " on the menu item. To troubleshoot it further it will be helpful if you can post the code you have written in main method and also did you change the property “Object” as well on the menu item. What about your property settings under the Menu. The properties under menu should point to the menu item as below. MenuItemType–>Output MenuItemName-Name of the Menu item . If all these property settings are as expected then there is something wrong with report not being able to initilaise the class properly. As you mentioned the class opens with no problem. Hence if the above tips doesn’t solve the problem post your init method code as well . Hope it helps.