Skip to content

Trc_Ws_ItemByNumber ​

Gets an item of a workspace items object by number.

Function Parameters ​

Parameter 1 ​

Workspace. E.g. Sales.

Parameter 2 ​

Items objects of the selected workspace. E.g. ItemsProduct.

Parameter 3 ​

Name of the item. E.g. P004.

Parameter 4 ​

Output format of the item.

FormatDecription
NameName of the item. E.g. P004.
Caption1 till 10Caption of the item. E.g. Desktop PC.
AttributeGets an attribute of the item. After the key word Attribute= the name of the attribute be set. E.g. Attribute=ProductColor

The different formats can be mixed.

Format SampleOutput
Name (Caption1)P004 (Desktop PC)
Name - Caption1P004 - Desktop PC
Caption1 (Name)Desktop PC (P004)
Attribute=ProductColorBlue

Samples ​

Shows the name and caption 1 of the first product in the items object.

=TRC_WS_ITEMBYNUMBER("Sales";"ItemsProduct";1;"Name (Caption1)")

In this sample function the cell C2 references to the product number of cell B2.

sample

Assistant Window ​

The assistant window can be used to generate a funtion.

1. Workspace Items ​

In the left area, the user must select a workspace. In the right area the items objects of the selected workspace are displayed.

workspace-items

2. Item ​

Selects an item of the items object.

item

3. Format ​

Defines the output format of the selected item.

format

4. Finish ​

After finish the function is placed in the selected cell of the worksheet.

=TRC_WS_ITEMBYNUMBER("Sales";"ItemsProduct";1;"Name (Caption1)")