Click or drag to resize

ItemnewNOT Method

Inserts logical node with tag <not> 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.20.39432
Syntax
public Item newNOT()

Return Value

Type: Item
Logical "NOT" item. Returned item shares dom with this item.
Exceptions
ExceptionCondition
Exception If the instance is neither a single regular item (i.e. item referncing <Item> node) nor a logical item.
ArgumentExceptionthis.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 logicalNOT = myItem.newNOT();
logicalNOT.setProperty('foo','bar1');
//The following line of code is optional because 'eq' is the default property condition:
logicalNOT.setPropertyCondition('foo', 'eq');
...
...
var myItem = myInnovator.newItem('Foo','get');
var logicalNOT = myItem.newNOT();
logicalNOT.setProperty('foo','bar1, bar2);
logicalNOT.setPropertyCondition('foo','in')
...
See Also