没有合适的资源?快使用搜索试试~ 我知道了~
首页Aras Innovator 11 开发指南 PLM PDM 程序员开发指南
资源详情
资源评论
资源推荐

Aras Innovator 11
Programmer’s Guide
Document #: 11.0.02015121801
Last Modified: 01/04/2018

2018 Aras Corporation All Copyrights Reserved. 2
Aras Innovator 11
Programmer’s Guide
Copyright Information
Copyright © 2018 Aras Corporation. All Rights Reserved.
Aras Corporation
300 Brickstone Square
Suite 700
Andover, MA 01810
Phone: 978-691-8900
Fax: 978-794-9826
E-mail: Support@aras.com
Website: http://www.aras.com
Notice of Rights
Copyright © 2018 by Aras Corporation. This material may be distributed only subject to the terms and conditions set forth in the
Open Publication License, V1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/).
Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder.
Distribution of the work or derivative of the work in any standard (paper) book form for commercial purposes is prohibited unless
prior permission is obtained from the copyright holder.
Aras Innovator, Aras, and the Aras Corp "A" logo are registered trademarks of Aras Corporation in the United States and other
countries.
All other trademarks referenced herein are the property of their respective owners.
Notice of Liability
The information contained in this document is distributed on an "As Is" basis, without warranty of any kind, express or implied,
including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose or a warranty of non-
infringement. Aras shall have no liability to any person or entity with respect to any loss or damage caused or alleged to be caused
directly or indirectly by the information contained in this document or by the software or hardware products described herein.

2018 Aras Corporation All Copyrights Reserved. 3
Aras Innovator 11
Programmer’s Guide
Table of Contents
Send Us Your Comments ............................................................................................. 6
Document Conventions ................................................................................................ 7
1 Introduction .............................................................................................................. 8
1.1 The Item ....................................................................................................................................... 8
1.2 The Aras Markup Language (AML) .............................................................................................. 9
1.3 Methods and the IOM ................................................................................................................. 10
2 AML ......................................................................................................................... 11
2.1 <Item> Tag ................................................................................................................................. 11
2.2 <Relationships> Tag .................................................................................................................. 11
2.3 <property> Tags ......................................................................................................................... 11
2.4 Attributes .................................................................................................................................... 12
2.4.1 Item Attributes ............................................................................................................. 12
2.4.2 Property Attributes ....................................................................................................... 14
3 IOM Reference ........................................................................................................ 16
3.1 IOMCredentials Class ................................................................................................................ 17
3.2 Innovator Class .......................................................................................................................... 17
3.3 Item Class .................................................................................................................................. 17
3.3.1 Base Methods .............................................................................................................. 17
3.3.2 Boolean Methods ......................................................................................................... 18
3.3.3 Attribute Methods ........................................................................................................ 18
3.3.4 Property Methods ........................................................................................................ 18
3.3.5 Relationship Methods .................................................................................................. 19
3.3.6 Item Collection Methods .............................................................................................. 19
3.3.7 Logical Methods .......................................................................................................... 20
3.3.8 Creating New Item Method .......................................................................................... 20
3.3.9 Error Methods .............................................................................................................. 21
3.3.10 Extended Item Class methods..................................................................................... 21
4 Methods .................................................................................................................. 23
4.1 Item Actions Extend the Item Class ........................................................................................... 23
4.1.1 Context Item ................................................................................................................ 24
4.1.2 Methods are Item Factories ......................................................................................... 24
4.1.3 Handling the Wrong ItemType ..................................................................................... 24
4.1.4 Methodology ................................................................................................................ 25
4.2 Built in Action Methods ............................................................................................................... 25
4.3 Generic Methods ........................................................................................................................ 27
4.3.1 Context Item ................................................................................................................ 27
4.3.2 Methods are Item Factories ......................................................................................... 27
4.3.3 Methodology ................................................................................................................ 28

2018 Aras Corporation All Copyrights Reserved. 4
Aras Innovator 11
Programmer’s Guide
4.4 Server Events ............................................................................................................................. 28
4.4.1 Context Item ................................................................................................................ 28
4.4.2 Methodology ................................................................................................................ 28
4.4.3 Available Server Events .............................................................................................. 29
4.4.4 Polymorphic ItemTypes Server Event Inheritance ...................................................... 32
4.4.5 Required Server Events .............................................................................................. 32
4.4.6 Server Event Version ................................................................................................... 32
4.5 Client Events .............................................................................................................................. 33
4.5.1 Context Item ................................................................................................................ 33
4.5.2 Form Events ................................................................................................................ 33
4.5.3 Field Events ................................................................................................................. 34
4.5.4 Grid Events .................................................................................................................. 35
4.5.5 Item Type Events ......................................................................................................... 38
4.5.6 Item Actions and Server Event .................................................................................... 39
5 Action Items ........................................................................................................... 40
5.1 Client Side Method Rules ........................................................................................................... 40
5.2 Server Side Method Rules ......................................................................................................... 40
5.3 Use Cases .................................................................................................................................. 42
5.3.1 Client side - has cache Item is dirty ............................................................................. 42
5.3.2 Client side - no cache Item - no item_query value ...................................................... 42
5.3.3 Client side - has cache Item not dirty - no item_query value ...................................... 43
5.3.4 Client side - has cache Item not dirty - has item_query value ..................................... 43
5.3.5 Client side - no cache Item - has item_query value .................................................... 44
5.3.6 Server side - has cache Item/is dirty ........................................................................... 44
5.3.7 Server side - no cache Item - no item_query value ..................................................... 45
5.3.8 Server side - has cache Item/not dirty - no item_query value ..................................... 45
5.3.9 Server side - has cache Item/not dirty - has item_query value ................................... 46
5.3.10 Server side - no cache Item - has item_query value ................................................... 46
6 Aras Innovator Methodology ................................................................................ 48
7 Cookbook ............................................................................................................... 49
7.1 Create an Aras Innovator Object................................................................................................ 49
7.2 Create an Item Object ................................................................................................................ 49
7.3 Query for an Item ....................................................................................................................... 50
7.4 Query and iterate over a set of Items ......................................................................................... 51
7.5 Query for an Item and return its configuration ........................................................................... 52
7.6 Query using AML to construct the query .................................................................................... 56
7.7 Query for the Item next promotion states ................................................................................... 56
7.8 Query using relationships as search criteria .............................................................................. 57
7.9 Add an Item configuration in one transaction ............................................................................. 59
7.10 Add a Named Permission .......................................................................................................... 60
7.11 Set a Private Permission for an Item ......................................................................................... 60
7.12 Apply a Generic Method ............................................................................................................. 62
7.13 Need to Save text to a File ......................................................................................................... 62
7.14 Need to Send Email from a Method ........................................................................................... 63
7.15 Need to Add a UI Control ........................................................................................................... 64
7.16 Need for Speed ApplySQL ......................................................................................................... 66
7.17 Need a callback for a Relationships Grid Row Event ................................................................ 67

2018 Aras Corporation All Copyrights Reserved. 5
Aras Innovator 11
Programmer’s Guide
7.18 Need a callback for a Relationships Grid Cell Event ................................................................. 68
7.19 Show relationships in a Grid control on the Form ...................................................................... 69
7.20 Want the Identities for the User.................................................................................................. 71
7.21 Want a field to be either a sequence or user entered value ...................................................... 71
7.22 Want to Vault a File .................................................................................................................... 72
7.23 Want to get an existing Vaulted File and save it with a new Document .................................... 73
7.24 Need to reject an Item Promote ................................................................................................. 74
7.25 How to build XML for grid ........................................................................................................... 75
7.26 How to build XML for a Menu ..................................................................................................... 77
7.27 How to handle multilingual properties ........................................................................................ 78
7.28 How to handle date properties ................................................................................................... 79
7.29 How to pass values from onBeforeX to onAfterX events ......................................................... 80
7.30 How to reference custom DLL from server method ................................................................... 81
7.31 How to add sub menus to context menu in search grid ............................................................. 82
8 Aras Innovator Solution Studio ............................................................................ 84
8.1 Features ..................................................................................................................................... 84
9 Debugging .............................................................................................................. 85
9.1 Enabling Debugging in Aras Innovator ...................................................................................... 85
9.2 Setting up VS.NET 2012 to debug Server side Methods ........................................................... 85
9.3 Setting up VS.NET 2012 to debug Client side Methods ............................................................ 87
9.4 Setting up the server side logging .............................................................................................. 88
10 External APIs ................................................................................................. 89
10.1 .NET IOM ................................................................................................................................... 89
10.2 COM-compatible IOM ................................................................................................................ 90
10.3 RT IOM ....................................................................................................................................... 90
10.4 iOS IOM ...................................................................................................................................... 91
10.5 Android IOM ............................................................................................................................... 91
10.6 SOAP Requests ......................................................................................................................... 92
剩余92页未读,继续阅读



cfy_cl7502
- 粉丝: 1
- 资源: 7
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

评论1