Hi All,
I am exposing java objects in javascript, but the methods and attributes does not show up in context help menu (<ctrl> + space) when I use those javascript objects.
How should I write my vso.xml so that the javascript objects are aware of the methods in the javascript context help menu.
eg:-
vso.xml entry:
<enumerations>
<enumeration type="TestEnum">
<description>Defines values for boolean xml Managed Object attributes</description>
<entries>
<entry id="test1" name="TEST1">value for Test1.</entry>
<entry id="test2" name="TEST2">value for Test2.</entry>
</entries>
</enumeration>
</enumerations>
<scripting-objects>
<object script-name="MyObject" java-class="com.test.MyObject">
<description>This is a test Object</description>
<attributes>
<attribute java-name="attr1" return-type="String" script-name="Attr1" show-in-api="true"/>
<attribute java-name="attr1" return-type="String" script-name="Attr1" show-in-api="true"/>
</attributes>
</attributes>
<methods>
<method java-name="testMtd" return-type="String" script-name="testMtd" show-in-api="true"> | |
<parameters> | |
<parameter name="param1" type="Any"/> | |
<parameter name="param2" type="String"/> | |
<parameter name="param3" type="boolean"/> | |
</parameters> | |
</method> |
</methods>
</object>
</scripting-objects>
JavaScript:-
var myObj = new MyObject();
myObj.<ctrl>+space does not popup any context menu, as it does for string objects or System object.
myObj.testMtd("abc", TestEnum.<ctrl>+space - Enums also do not pop up values.
Any help will be greatly appreciated.
Best Regards,
Sumit Tyagi