admin 发表于 2018-8-1 13:33:03

【Aras 二次开发代码】创建item对象

Technique
There are basically two ways to create a new Item Object; by calling the Class
constructor or the factory methods on the Item Object and Aras Innovator Object.


JavaScript
var myItem = new Item();
var myItem = this.newItem(myType,myAction);
var myInnovator = this.newInnovator();
var myItem   = myInnovator.newItem(myType,myAction);
var myResult = myInnovator.newResult(resultText);
var myError= myInnovator.newError(errorMessage);
C#
Item myItem = this.newItem(myType,myAction);

Innovator myInnovator = this.newInnovator();
Item myItem   = myInnovator.newItem(myType,myAction);
Item myResult = myInnovator.newResult(resultText);
Item myError= myInnovator.newError(errorMessage);
VB.Net
Dim myItem As Item = Me.NewItem(myType,myAction)

Dim myInnovator As Innovator = Me.NewInnovator()
Dim myItem As Item = myInnovator.NewItem(myType,myAction)
Dim myResult As Item = myInnovator.NewResult(resultText)
Dim myError As Item = myInnovator.NewError(errorMessage)

页: [1]
查看完整版本: 【Aras 二次开发代码】创建item对象