|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Technique
% Y0 J4 R" M$ WThere are basically two ways to create a new Item Object; by calling the Class
! @7 M" m/ u. F/ w. ^$ u/ Hconstructor or the factory methods on the Item Object and Aras Innovator Object.
$ Q) J1 L0 z( k0 r, U* [& {; G) K9 X8 S. p# ^: S& f! M: d0 Y
( x& N; W6 G6 e# D" L, E, S
JavaScript " {, y- {2 z0 }- |1 A2 A8 f
var myItem = new Item(); % o) H6 l `3 m1 `$ ^
var myItem = this.newItem(myType,myAction); ( C; e" `: N" J: q# ], k
var myInnovator = this.newInnovator();
+ H6 i* b, ^+ C& _( _3 }1 ~+ |var myItem = myInnovator.newItem(myType,myAction);
: w5 O: O1 z3 S3 k% d+ t0 Uvar myResult = myInnovator.newResult(resultText); - r( N9 R; \" |0 v( A# O* d
var myError = myInnovator.newError(errorMessage);
% r$ B- X; x6 I: z3 B* o4 X# KC#
. z; z- A& A' o* _% O- qItem myItem = this.newItem(myType,myAction); 1 R& K; B8 @2 J) m& h+ Y0 {
- p) X% P' E& s }8 |& W1 sInnovator myInnovator = this.newInnovator(); ( n0 w0 b. M3 W) ]4 |4 D* N
Item myItem = myInnovator.newItem(myType,myAction); ! N# s( h* v( y7 q! S
Item myResult = myInnovator.newResult(resultText); / r4 m( V& V9 b' o' C7 L/ O
Item myError = myInnovator.newError(errorMessage);
$ _7 O0 ] D, q3 `8 U; HVB.Net
2 x# M9 |1 s$ S UDim myItem As Item = Me.NewItem(myType,myAction) 5 a) q: x& r4 F; U0 [/ x
( a: a- s6 Y- @7 m/ r0 ADim myInnovator As Innovator = Me.NewInnovator()
' U5 P0 Y' U, I! ]+ oDim myItem As Item = myInnovator.NewItem(myType,myAction)
2 K4 j( f6 o* h1 k/ f4 {1 X4 GDim myResult As Item = myInnovator.NewResult(resultText) % J5 R2 J3 {. s8 R. L
Dim myError As Item = myInnovator.NewError(errorMessage)1 U1 X' c4 W" A9 O
; O1 X- f }, ^5 B3 m7 a. i! ? |
|