Please enable JavaScript to view this site.

Returns a fixed or calculated property of current parent item, current item structure or current child item when looping through a bill of materials using a repeater.

 

string ActiveItem(string target; string propertyName; [string propertyName2]; ...)

 

target

The object to read a property from. The supported values are "Parent", "Structure" and "Child" (case insensitive).

propertyName

Name of a property or a type of calculated data to read. See list of arguments for calculated data below.

propertyName2

Optional name of a property to read from an object that is referenced by the first property or an extra argument that is required by the type of calculated data.

Arguments for calculated data

The following arguments for calculated data are supported (case insensitive):

"Attribute"

Returns the name of a structure attribute that has been set for current structure node. A third argument with a zero based index is required.

"AttributeCount"

Returns the number of structure attributes that have been set for current structure node.

"AttributeUnit"

Returns the unit of a structure attribute that has been set for current structure node. A third argument with either the name of a structure attribute or a zero based index is required.

"AttributeValue"

Returns the calculated value of a structure attribute that has been set for this structure node. A third argument with either the name of a structure attribute or a zero based index is required.

"Cost"

Returns the calculated cost of current child item.

"Price"

Returns the calculated price of current child item.

Examples

ActiveItem("Child"; "ItemNo")

Returns the item number of the child item.

 

ActiveItem("Structure"; "Quantity")

Returns the (calculated) quantity of the child item in the structure of the parent item.

 

ActiveItem("Parent"; "ItemNo")

Returns the item number of the parent item.

 

ActiveItem("Structure"; "AttributeValue"; "Length")

Returns the calculated value of the structure attribute "Length".

 

ActiveItem("Child"; "Cost")

Returns the calculated cost of the child item.

Remarks

Some structure properties like quantity and context are also calculated.

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC