Inserts logical node with tag <or> under the parent node, which can be Item or Logical,
and returns an Item Object that represents a newly inserted logical node.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
SyntaxPublic Function newOR As Item
public function newOR() : Item
Return Value
Type:
ItemLogical "OR" item. Returned item shares
dom with
this item.
ExceptionsException | Condition |
---|
Exception |
If the instance is neither a single regular item (i.e. item referencing <Item> node) nor a logical item.
|
ArgumentException | this.node is read-only. |
Remarks
Logical item is an item which node references to the "logical" tag, i.e. 'or', 'and' or 'not'. Logical
items are used to build request conditions where item's properties serve as condition expressions.
User has to use setProperty(...), setPropertyCondition(...) to set condition expressions on logical
item (see example below). It's possible to build nested logical request conditions by calling newOR(),
newAND() or newNOT() on a logical item.
Examples...
var myItem = myInnovator.newItem('Foo','get');
var logicalOR = myItem.newOR();
logicalOR.setProperty('foo1','bar1, bar2');
logicalOR.setPropertyCondition('foo1', 'in');
logicalOR.setProperty('foo2','junk');
logicalOR.setPropertyCondition('foo2', 'eq');
...
See Also