|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Technique
6 x# J0 z7 X P. \% s+ X4 \There are basically two ways to create a new Item Object; by calling the Class
; t& N; F- l7 aconstructor or the factory methods on the Item Object and Aras Innovator Object.
* f+ R4 J9 t% f+ I5 g* j% I
" @+ u6 G# X9 m& B
9 J1 g, n* ^/ C/ t9 z gJavaScript " }& E( _/ \) c" Z# T
var myItem = new Item();
8 u; @3 f# d( H+ `$ X' Tvar myItem = this.newItem(myType,myAction); 5 ?" d( U( P( `. |& `; P. w9 q! |
var myInnovator = this.newInnovator(); & g: {. t+ w9 P$ P6 C3 h9 T b
var myItem = myInnovator.newItem(myType,myAction);
. o! O) w ?" L+ ?, h+ H5 l, ovar myResult = myInnovator.newResult(resultText);
* I% Y, J2 @" {9 r! Xvar myError = myInnovator.newError(errorMessage);
$ h: f" \" I9 _5 [4 YC#
% J. x5 U" `# ^/ wItem myItem = this.newItem(myType,myAction);
8 C4 ^; t8 s5 o% T6 o" ~9 K/ _% Y' R; I
0 l4 K8 _) i: H& R+ ~Innovator myInnovator = this.newInnovator(); ! u% N3 H' `1 m- \) ?* e
Item myItem = myInnovator.newItem(myType,myAction);
6 ^0 @2 p( J( _& ]Item myResult = myInnovator.newResult(resultText); & h# E% \; L7 S7 M( A; g, g: ?
Item myError = myInnovator.newError(errorMessage);
% o3 g2 h" F+ u! L$ M+ \# d/ UVB.Net ( q7 x+ O' Y) t- \( S0 |
Dim myItem As Item = Me.NewItem(myType,myAction)
: P1 m0 y/ V7 f6 s4 J; V ; f1 ?7 k5 E) s e. w/ _
Dim myInnovator As Innovator = Me.NewInnovator()
/ d+ B3 A1 _$ }! v3 K* O/ @/ mDim myItem As Item = myInnovator.NewItem(myType,myAction)
* l7 u2 r; U h, U* M) XDim myResult As Item = myInnovator.NewResult(resultText)
3 W% L( n; E' n7 D: h( C' nDim myError As Item = myInnovator.NewError(errorMessage)( ~) x4 B- S# O+ M4 U6 I+ i
9 N( L9 w$ T' w, e' K3 ^
|
|