If a user viewing a structure tree does not have access rights for an item in the structure, that item is not displayed and the following message is shown: “Some items are hidden because you don’t have access rights to them.” |
Part Structure is only available for use with the Item List widget, and not with the Item List mashup, which is deprecated. |
For Part Structure, the input binding property supports the PTC.ProdMgmt.Part and PTC.CADDocumentMgmt.CADDocument object types. The output of the selectedItems binding property contains items with the object types PTC.ProdMgmt.PartStructureItem and PTC.CADDocumentMgmt.CADStructure. |
Property Name | Description | Property Type | Default Value | Required or Optional | |||
---|---|---|---|---|---|---|---|
defaultExpansionLevel | Defines the initial expansion level of structure tree. Accepts numbers 1–9 and -1 as input. When the property is set to -1, the structure tree is initially fully expanded, showing all levels. Example: { "defaultExpansionLevel":{ "selectedKey":[ "3" ] } }
| 3 | Optional | ||||
attributes | See Item List for more information. Accepts attributes of the PTC.ProdMgmt.PartStructureItem and PTC.CADDocumentMgmt.CADStructure object types.
| N/A | Required |
Name | Description |
---|---|
ComputeMessages | Computes the desired messages to show in Part Structure. It receives the current messages JSON and the suggested messages JSON, and it returns a notification messages JSON that contains the messages to display in the item list. Parameters: getItemsResponse (Required)– JSON object in CCO format that contains the items returned from getItems service. currentMessages (Required)– JSON object that contains current notification messages that are displayed in the user interface. suggestedMessages (Required)– JSON object that contains a set of suggested messages. It’s recommended to use the suggested messages. input (Optional)– JSON in CCO format that includes the input ID for the item at the root of the structure. configuration (Optional)– JSON with the configuration. scope (Optional)– JSON that indicates the scope of the data in getItemsResponse. The JSON object contains a scope key that accepts the values root and child. Relevant for hierarchical data. Example: { "scope": "root" } Returns: JSON object containing messages to display in item list grid. Example: "INFO":{ { "messages":[ "[[PTC.Nav.ItemList.HiddenItemsBecauseAccessRightMessage]]" ] } } |
DefHookAttributesTypesInfo | Returns a JSON array containing adapter information and the attributes’ object types supported by Part Structure. Parameters: None Returns: JSON array |
GetChildren | Receives a part or CAD document and returns a JSON in CCO format containing that item’s children, meaning all items that are one level below that part or CAD document in the hierarchical data structure. The returned JSON contains the children as a flat list, not hierarchical data. Parameters: input (Optional)– JSON in CCO format that includes the input ID for the part or CAD document at the root of the structure. configuration (Required)– JSON with the configuration. item (Required)– JSON that includes the item whose children to return. Returns: JSON in CCO format |
GetConfigurations | Returns the available configurations for Part Structure. Parameters: None Returns: JSON |
GetImplementationSettings | Returns the Part Structure implementation's settings data. Implementations can override this service in order to provide their own settings.For more information, see the topic Enable the selectedItems Input Binding Property for Item List. Parameters: None Returns: JSON object |
GetItems | Returns the structure for the part or CAD document specified in the input. Parameters: input (Required)– JSON in CCO format that includes the input ID for the data to be fetched from the backend system and the adapter information for the backend system. configuration (Required)– JSON with the final merged configuration obtained from the Tailoring Manager resource. Returns: JSON in CCO format |
GetItemsByExpansionPath | Returns a hierarchical structure CCO that contains all items on the path from the root to the requested item, including all the requested attributes, itemIdentifierKeys, anditemExpansionKeys. The hierarchical structure CCO includes all siblings on the path. The service is called when the selectedItems binding property receives input specifying an item that is not loaded. Parameters: input (Optional)– JSON in CCO format that includes the input ID for the part or CAD document at the root of the structure. configuration (Required)– JSON with the configuration. itemExpansionValues (Required)– A JSON array that holds itemExpansionKeys of the part or CAD document for which the expansion is requested. The array values are ordered according to the path in the tree, starting with the root part or CAD document. Returns: JSON in CCO format |
GetStructureSkeleton | Returns all levels of a hierarchical structure in CCO format, where each part or CAD document in the structure includes both itemIdentifierKeys and itemExpansionKeys, as defined in the GetImplementationSettings service. Parameters: input (Optional)– JSON in CCO format that includes the input ID for the part or CAD document at the root of the structure. configuration (Required)– JSON with theconfiguration. Returns: JSON in CCO format |
MapItemToInputObject | Maps a part or CAD document to an input, which can then be used by the GetItems service. Parameters: input (Optional)– JSON in CCO format that includes the input ID for the part or CAD document at the root of the structure. item (Required)– JSON that includes the part or CAD document to map. |