‎29-06-2020 04:09 PM
Hi ,
I am able to create java class under com.mega.test.
I want to create mega macro which calls a method in test class passing mega root and object as parameter. I created mega macro defining package name and class name. My method in class is testjavacall . I was not able to call java method from mega macro. I tried GetRoot.CurrentEnvironment.getMacro("test").testjavacall GetRoot, <object> .
I am not able to find the right syntax i tried from metacommond it works but i need to call it from a mega macro.
Could you please help if any one has solution.
Thanks for your support.
‎07-07-2020 05:38 PM
‎29-06-2020 04:46 PM
Dim macro : Set macro = oRoot.getcurrentEnvironment.getMacro("myjavamacro")
macro.testJavacall oRoot Megaobject
keep in mind that java constructor must be defined without parameter