【Aras二次开发源码】编写可其他方法的子程序的通用方法
【Aras二次开发源码】编写可其他方法的子程序的通用方法Technique
Use theInnovator.applyMethod()method to apply Generic Methods.The following
examples assume a server-side method named "Reverse String" exists, and that it
returns a result item containing the reversed contents of the <string> tag.
JavaScript
var inn = this.newInnovator();
var results = inn.applyMethod("Reverse String", "<string>abc</string>");
// You can also apply a generic client method but only from another client-side method
// var results = inn.applyMethod("Reverse String JS","<string>abc</string>","client");
return results.getResult(); // returns "cba"C#
Innovator inn = this.newInnovator();
Item results = inn.applyMethod("Reverse String", "<string>abc</string>");
// Return a result item with "cba" as the contents of the Result tag
return inn.newResult(results.getResult());
VB.Net
Dim inn As Innovator = Me.newInnovator()
Dim results As Item = inn.applyMethod("Reverse String", "<string>abc</string>")
' Return a result item With "cba" As the contents of the Result tag
Return inn.newResult(results.getResult())
页:
[1]