|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Technique 7 _9 N4 g- B' O0 U& N- I
There are basically two ways to create a new Item Object; by calling the Class
: r4 N4 j: v6 c/ ^ z$ s rconstructor or the factory methods on the Item Object and Aras Innovator Object.
! Y7 k! p3 P, ?* Q* K
1 z# I6 b! O/ H E! f5 W1 k8 `
* \5 ]& h4 q0 [9 \5 U- VJavaScript * W1 _6 p) m# x8 _; K5 |
var myItem = new Item(); ; w3 ~6 t. v$ L, O. A- z! q
var myItem = this.newItem(myType,myAction);
0 c9 ^! S n1 `2 [var myInnovator = this.newInnovator();
* ~+ J0 e2 T7 K: cvar myItem = myInnovator.newItem(myType,myAction); 6 W3 k$ h8 Z7 n, {
var myResult = myInnovator.newResult(resultText); 9 _5 j' m" @6 a; W
var myError = myInnovator.newError(errorMessage); ( y/ L' t# g% w) ~3 I. ^
C# ' ~4 A2 @7 i& L* \" L/ L
Item myItem = this.newItem(myType,myAction);
: k2 o B* e0 @) Q# t) f
, o: Q+ R& o5 e8 GInnovator myInnovator = this.newInnovator(); 0 t0 p- H3 `: Y% H7 i, Q, C* Z' Y6 c
Item myItem = myInnovator.newItem(myType,myAction); 1 ?% m9 u# P) ]8 C3 y
Item myResult = myInnovator.newResult(resultText);
# i5 G1 ~9 ~4 w% ?* YItem myError = myInnovator.newError(errorMessage); " C4 `3 O$ e4 J
VB.Net ) e+ I$ u& {; A; ~* e" d) \
Dim myItem As Item = Me.NewItem(myType,myAction)
, {: R. e q1 W$ x , @, p# l5 e+ m& n
Dim myInnovator As Innovator = Me.NewInnovator() / H( L# X) k6 R2 a! c
Dim myItem As Item = myInnovator.NewItem(myType,myAction)
! e- D7 G$ }. o0 U& y) rDim myResult As Item = myInnovator.NewResult(resultText)
0 t0 J! e8 J3 ^: X) o: j }Dim myError As Item = myInnovator.NewError(errorMessage)
1 d$ t! B& P3 C0 K$ ?- ]' u9 s! W0 ^, \; H& n: p. Z
|
|