InnovatornewItem Method (String, String) |
Returns a new Item with the specified type and action.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
Syntaxpublic Item newItem(
string itemTypeName,
string action
)
Public Function newItem (
itemTypeName As String,
action As String
) As Item
public Item newItem(
String itemTypeName,
String action
)
public function newItem(
itemTypeName : String,
action : String
) : Item
Parameters
- itemTypeName
- Type: SystemString
Name of the ItemType. - action
- Type: SystemString
Name of action (e.g. "get", "update", etc.)
Return Value
Type:
ItemNewly created instance of Item.
Remarks
The ItemType name is used to set the 'type' attribute
and the action name is used to set the 'action' attribute on the Item.
The new Item will have no properties. In order to populate it with default property values
of its ItemType call Item.fetchDefaultPropertyValues(true) on the item.
See Also