|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Technique ! M0 C, K8 k4 L/ t
There are basically two ways to create a new Item Object; by calling the Class , Q& p/ ~4 f' h- X ?5 ^
constructor or the factory methods on the Item Object and Aras Innovator Object. $ a' n3 s. H5 I9 o9 @. T/ f
) D+ x: l: G- C: y7 J2 G- n6 C! N
/ o& w8 q" E8 r; |/ ?$ c1 ~
JavaScript ) @3 N% B2 J. X* j1 \3 W) T% t
var myItem = new Item(); ' ~4 h5 u: U Q0 q& t
var myItem = this.newItem(myType,myAction); ' S, g% Z2 n4 w& @* `% Y ~
var myInnovator = this.newInnovator(); ; e g6 L% ^7 e8 O5 H
var myItem = myInnovator.newItem(myType,myAction);
' m+ J' l" I4 \) C$ U# r- H Bvar myResult = myInnovator.newResult(resultText); " ^5 d, q' M* Q/ ~4 n
var myError = myInnovator.newError(errorMessage); 2 f6 ~! Q2 `! N
C# ' k3 ?1 p. D& l* l! M2 G8 E4 f' P: [+ t
Item myItem = this.newItem(myType,myAction); ! G1 I6 E5 `2 V7 X# _1 l7 \! m$ N
1 y8 t# \+ u/ _7 g" w
Innovator myInnovator = this.newInnovator();
" I" s& i2 Y, }' J% O9 b4 lItem myItem = myInnovator.newItem(myType,myAction); 6 _! |" v, w' o! O
Item myResult = myInnovator.newResult(resultText);
& T$ E$ G5 H. n; iItem myError = myInnovator.newError(errorMessage); 5 E' l- m# {. O9 e4 F
VB.Net / W2 x. l8 p: e/ ?
Dim myItem As Item = Me.NewItem(myType,myAction) / y$ O0 g; a8 P2 i4 c
, w( u0 u5 I. H# ^ A; x5 [Dim myInnovator As Innovator = Me.NewInnovator() @( `, T' M: }
Dim myItem As Item = myInnovator.NewItem(myType,myAction) # Y! D1 J' {; j2 ]1 b) c% n& o1 Y
Dim myResult As Item = myInnovator.NewResult(resultText) , M8 W% l5 C- C& z* m) V8 ?/ Y
Dim myError As Item = myInnovator.NewError(errorMessage)
# m8 Y, w; n' a( R6 C, h( O" k" i# E* [
|
|