零件標識
「零件標識」是「項目標識」元件的預先定義組態,它會顯示一個面板,其中包含有關零件或的 CAD 文件的基本資訊。此面板包括主要與次要標題、圖像、次要圖示以及標識屬性。次要圖示用於指示項目類型,將使用 Windchill 中適用於該項目類型的圖示。針對零件,面板中包括的預設屬性為「版本」、「檢視」、「狀態」、「上次修改時間」及「前後關聯」。針對 CAD 文件,面板中包括的預設屬性為「檔案名稱」、「版本」、「狀態」、「上次修改時間」及「前後關聯」。
以下是顯示零件標識預先定義組態的範例圖像:
繫結內容 
如需有關繫結零件標識的資訊,請參閱項目標識元件。
* 
針對零件標識,輸入繫結內容支援 PTC.ProdMgmt.PartPTC.CADDocumentMgmt.CADDocument 物件類型。
組態內容 
如需有關配置零件標識的資訊,請參閱項目標識元件。
屬性名稱
描述
內容類型
預設值
必要或選用
primaryTitle
如需詳細資訊,請參閱項目標識
接受 PTC.ProdMgmt.PartPTC.CADDocumentMgmt.CADDocument 物件類型的屬性。但是,只有與輸入具有相同物件類型的屬性會顯示在使用者介面中。
例如,如果包括具有 PTC.ProdMgmt.PartPTC.CADDocumentMgmt.CADDocument 物件類型的屬性,且輸入為 PTC.ProdMgmt.Part 物件類型,則只有物件類型為 PTC.ProdMgmt.Part 的屬性會顯示在使用者介面中。
N/A
必要
secondaryTitle
如需詳細資訊,請參閱項目標識
接受 PTC.ProdMgmt.PartPTC.CADDocumentMgmt.CADDocument 物件類型的屬性。但是,只有與輸入具有相同物件類型的屬性會顯示在使用者介面中。
例如,如果包括具有 PTC.ProdMgmt.PartPTC.CADDocumentMgmt.CADDocument 物件類型的屬性,且輸入為 PTC.ProdMgmt.Part 物件類型,則只有物件類型為 PTC.ProdMgmt.Part 的屬性會顯示在使用者介面中。
N/A
必要
attributes
如需詳細資訊,請參閱項目標識
接受 PTC.ProdMgmt.PartPTC.CADDocumentMgmt.CADDocument 物件類型的屬性。但是,只有與輸入具有相同物件類型的屬性會顯示在使用者介面中。
例如,如果包括具有 PTC.ProdMgmt.PartPTC.CADDocumentMgmt.CADDocument 物件類型的屬性,且輸入為 PTC.ProdMgmt.Part 物件類型,則只有物件類型為 PTC.ProdMgmt.Part 的屬性會顯示在使用者介面中。
N/A
必要
範例組態 
{
"primaryTitle":{
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"numericIdentifier":1,
"id":"Number"
},
{
"numericIdentifier":2,
"id":"Name"
}
],
"objectType":"PTC.ProdMgmt.Part"
},
{
"items":[
{
"numericIdentifier":1,
"id":"Number"
},
{
"numericIdentifier":2,
"id":"Name"
}
],
"objectType":"PTC.CADDocumentMgmt.CADDocument"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
},
"pattern":"%1, %2",
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"actionBarConfiguration":{
"value":{
}
},
"showSecondaryIcon":{
"version":"1.0.0",
"value":true
},
"secondaryTitle":{
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"numericIdentifier":1,
"id":"ObjectType"
}
],
"objectType":"PTC.ProdMgmt.Part"
},
{
"items":[
{
"numericIdentifier":1,
"id":"TypeDisplayName"
}
],
"objectType":"PTC.CADDocumentMgmt.CADDocument"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
},
"pattern":"%1",
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"attributes":{
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"id":"Version",
"ordinal":0
},
{
"id":"View",
"ordinal":1
},
{
"id":"State#Display",
"ordinal":2
},
{
"id":"LastModified",
"ordinal":3
},
{
"id":"Context|Name",
"ordinal":4
}
],
"objectType":"PTC.ProdMgmt.Part"
},
{
"items":[
{
"id":"FileName",
"ordinal":0
},
{
"id":"Version",
"ordinal":1
},
{
"id":"State#Display",
"ordinal":2
},
{
"id":"LastModified",
"ordinal":3
},
{
"id":"Context|Name",
"ordinal":4
}
],
"objectType":"PTC.CADDocumentMgmt.CADDocument"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
},
"inTailoring":true,
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"showImage":{
"additionalData":{
"itemIdentityShowImageDefinition":{
"defaultImagePath":{
"value":""
}
}
},
"version":"1.0.0",
"value":true
}
}
自訂服務 
除組態以外,每個元件還支援延伸其企業邏輯以自訂元件。每個元件的企業邏輯包括物範本中可以進行延伸與取代的置換服務。此元件的置換服務會在下表中詳細說明:
如需每個服務的傳回結果與參數範例,請參閱自訂服務的輸入/輸出範例
名稱
描述
GetConfigurations
傳回項目標識實行的可用組態。
參數:
傳回:JSON
GetImplementationLabel
傳回元件的當地語系化名稱或可用於取得當地語系化名稱的權杖。此當地語系化名稱會顯示在 Mashup Builder 使用者介面中。
參數:
傳回:字串
GetItemIdentityAttributes
檢查組態並新增所需的其他任何屬性,然後調用 GetAttributeValues 來從後端系統擷取所有屬性值。
如果將圖像或次要圖示配置為顯示,則會將其新增至傳回的 JSON,以便 GetAttributeValues 也會從後端系統擷取它們的值。
參數:
input (必要) - CCO 格式的 JSON,其中包括要從後端系統擷取之資料的輸入 ID,以及後端系統的轉接器資訊。
configuration (選用) - 包含從「調整管理員」資源取得之最終合併組態的 JSON。
attributes (必要) - 包含現成屬性清單的 JSON,如在組態中所定義或透過調整所設定。
傳回:JSON
GetAttributesValues
傳回 JSON,其中包含屬性及其值。
參數:
input (必要) - CCO 格式的 JSON,其中包括要從後端系統擷取之資料的輸入 ID,以及後端系統的轉接器資訊。
configuration (選用) - 包含從「調整管理員」資源取得之最終合併組態的 JSON。
attributes (必要) - 包含現成屬性與其他屬性清單的 JSON。
傳回:CCO 格式的 JSON
實行定義 
{
"array": [
{
"value": {
"initializationData": {
"constraints": {},
"properties": {
"supportedTypes": {
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.ProdMgmt.Part",
"selectionGroupIds": [
"PART"
]
},
{
"objectType": "PTC.CADDocumentMgmt.CADDocument",
"selectionGroupIds": [
"CAD"
]
}
]
}
],
"allowSubsetForTailoring": true
},
"updateServiceName": "",
"addServiceName": ""
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.PatternSelector"
},
"mandatory": true,
"key": "primaryTitle"
},
{
"value": {
"initializationData": {
"constraints": {},
"properties": {
"supportedTypes": {
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.ProdMgmt.Part",
"selectionGroupIds": [
"PART"
]
},
{
"objectType": "PTC.CADDocumentMgmt.CADDocument",
"selectionGroupIds": [
"CAD"
]
}
]
}
],
"allowSubsetForTailoring": true
},
"updateServiceName": "",
"addServiceName": ""
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.PatternSelector"
},
"mandatory": true,
"key": "secondaryTitle"
},
{
"value": {
"initializationData": {
"constraints": {},
"properties": {
"supportedTypes": {
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.ProdMgmt.Part",
"selectionGroupIds": [
"PART"
]
},
{
"objectType": "PTC.CADDocumentMgmt.CADDocument",
"selectionGroupIds": [
"CAD"
]
}
]
}
],
"allowSubsetForTailoring": true
},
"updateServiceName": "",
"addServiceName": "",
"maximumSelectedAttributes": 5,
"minimumSelectedAttributes": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory": true,
"key": "attributes"
},
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {
"directDefinition": []
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.DefinitionGroup"
},
"mandatory": false,
"key": "actionBarConfiguration"
},
{
"value": {
"initializationData": {
"properties": {},
"constraints": {},
"additionalDefinition": [
{
"true": {
"label": "[[PTC.Nav.Yes]]",
"additionalDefinition": [
{
"key": "itemIdentityShowImageDefinitions",
"directDefinition": [
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "defaultImagePath"
}
]
}
]
},
"false": {
"label": "[[PTC.Nav.No]]",
"additionalDefinition": []
},
"default": false
}
]
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Toggle"
},
"key": "showImage"
},
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"default": false,
"true": {
"additionalDefinition": [],
"label": "[[PTC.AccessApp.Yes]]"
},
"false": {
"additionalDefinition": [],
"label": "[[PTC.AccessApp.No]]"
}
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Toggle"
},
"mandatory": false,
"key": "showSecondaryIcon"
}
]
}
這是否有幫助?