输入显示
“输入显示”是“项列表”组件的实施。此实施旨在显示给定输入中的项列表,而无需调用后端系统。当提供的输入为分层数据时,“输入显示”实施支持分层数据。
下面是一个显示“输入显示”实施的示例图像:
绑定特性 
有关绑定“输入显示”的信息,请参阅项列表组件。
配置特性 
有关“输入显示”的所有可用配置特性的列表,请参阅项列表组件的配置特性表。下表提供“输入显示”的相关配置特性的附加信息。
有关详情,请参阅组件配置结构
有关子特性的详情,请参阅子特性和容器键
特性名称
说明
特性类型
默认值
必需或可选
itemIdentifierKeys
当在“项列表”之外设置 selectedItems 时,用于标识选定项。当由另一个组件在项列表中设置时,它应出现在 selectedItems 的值中,并且作为每个项属性的一部分出现在项的输入中。
此配置特性位于组件配置中 implementationConfiguration 特性的下方。
{
"value": {
"itemIdentifierKeys": {
"sets": [{
"data": {
"selectedValues": {
"data": [{
"itemListsData": [{
"items": [{
"id": ""
}
],
"objectType": ""
}
],
"adapter": {
"instanceName": "",
"thingName": ""
}
}
]
}
},
"name": ""
}
]
}
}
}
可选
示例配置 
{
"actionBarConfiguration": {
"value": {
"actionBarConfigurationJSON": {
"value": ""
}
}
},
"attributes": {
"selectedValues": {
"data": [
{
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCOperationAdapter"
},
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": "Tool"
}
}
},
"id": "Tooling|Name",
"ordinal": 0
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": "Quantity"
}
}
},
"id": "OperationToConsumableLink|Quantity",
"ordinal": 1
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": "Unit"
}
}
},
"id": "Tooling|DefaultUnit|Value",
"ordinal": 2
}
],
"objectType": "PTC.MfgProcMgmt.ConsumedTooling"
}
]
}
]
}
},
"defaultSortFields": {
"selectedValues": {
"data": [
{
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCOperationAdapter"
},
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListDefaultSortFieldDefinition": {
"defaultSortDirection": {
"selectedKey": "asc"
}
}
},
"id": "OperationToConsumableLink|Quantity"
}
],
"objectType": "PTC.MfgProcMgmt.ConsumedTooling"
}
]
}
]
}
},
"enableSearch": {
"additionalData": {
"itemListSearchDefinition": {
"searchHintText": {
"value": "Find"
}
}
},
"value": false
},
"implementationConfiguration": {
"value": {
// Specifies that "Tooling|Name" acts as two-way binding identifier.
// This property is needed for the cross-selection between item list and a UI widget.
// Value for "Tooling|Name" is present in the output of the selectedItems property.
"itemIdentifierKeys": {
"sets": [
{
"data": {
"selectedValues": {
"data": [
{
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCOperationAdapter"
},
"itemListsData": [
{
"items": [
{
"id": "Tooling|Name"
}
],
"objectType": "PTC.MfgProcMgmt.ConsumedTooling"
}
]
}
]
}
},
"name": "Part"
}
]
}
}
},
"label": {
"value": "ToolsList"
},
"maxNumberOfRowsInGrid": {
"value": 500
},
"selectionType": {
"selectedKey": "multi"
},
"showExportAction": {
"value": false
},
"waitForInput": {
"value": false
}
}
自定义服务 
“输入显示”实施当前没有任何自定义服务。
实施定义 
{
"array": [
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"directDefinition": [
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {

}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "actionBarConfigurationJSON"
}
]
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.DefinitionGroup"
},
"mandatory": false,
"key": "actionBarConfiguration"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"additionalDefinition": [
{
"directDefinition": [
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"options": [
{
"additionalDefinition": [
{
"directDefinition": [
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {

}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": true,
"key": "value"
}
],
"key": "width"
}
],
"description": "Set custom width for item list column",
"label": "[[PTC.Nav.ItemList.DefaultWidth.Custom]]",
"key": "custom"
},
{
"description": "Set auto width for item list column",
"label": "[[PTC.Nav.ItemList.DefaultWidth.Auto]]",
"key": "auto"
}
],
"updateServiceName": null,
"addServiceName": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.RadioButton"
},
"mandatory": false,
"key": "defaultWidth"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {

}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "fieldTitleOverride"
}
],
"key": "itemListAttributesDefinition"
},
{
"directDefinition": [

],
"key": "implementationAttributesDefinition"
}
],
"updateServiceName": "",
"minimumSelectedAttributes": null,
"supportedTypes": {
"data": [

],
"allowSubsetForTailoring": false
},
"addServiceName": "",
"maximumSelectedAttributes": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory": true,
"key": "attributes"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"options": [
{
"label": "1",
"key": "1"
},
{
"label": "2",
"key": "2"
},
{
"label": "3",
"key": "3"
},
{
"label": "4",
"key": "4"
},
{
"label": "5",
"key": "5"
},
{
"label": "6",
"key": "6"
},
{
"label": "7",
"key": "7"
},
{
"label": "8",
"key": "8"
},
{
"label": "9",
"key": "9"
},
{
"label": "-1",
"key": "-1"
}
],
"updateServiceName": null,
"addServiceName": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Dropdown"
},
"mandatory": false,
"key": "defaultExpansionLevel"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"additionalDefinition": [
{
"directDefinition": [
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"options": [
{
"description": "Sort column in ascending order",
"label": "[[PTC.Nav.ItemList.SortOrder.Asc]]",
"key": "asc"
},
{
"description": "Sort column in descending order",
"label": "[[PTC.Nav.ItemList.SortOrder.Dsc]]",
"key": "dsc"
}
],
"updateServiceName": null,
"addServiceName": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.RadioButton"
},
"mandatory": false,
"key": "defaultSortDirection"
}
],
"key": "itemListDefaultSortFieldDefinition"
}
],
"updateServiceName": "",
"minimumSelectedAttributes": null,
"supportedTypes": {
"data": [

],
"allowSubsetForTailoring": false
},
"addServiceName": "",
"maximumSelectedAttributes": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory": false,
"key": "defaultSortFields"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"default": true,
"true": {
"additionalDefinition": [
{
"directDefinition": [
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {

}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "searchHintText"
}
],
"key": "itemListSearchDefinition"
}
],
"label": "[[PTC.Nav.Yes]]"
},
"false": {
"additionalDefinition": [

],
"label": "[[PTC.Nav.No]]"
},
"label": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Toggle"
},
"mandatory": false,
"key": "enableSearch"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"additionalDefinition": [
{
"directDefinition": [
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"dynamicallySetTypeServiceName": "GetFilterTypeDefinitionForFilterField",
"type": {
"enum": {
"options": [

],
"updateServiceName": null,
"dynamicallySetOptionsServiceName": null,
"addServiceName": null,
"multiSelect": null
}
}
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.FieldFilter"
},
"mandatory": false,
"key": "defaultSelectedFilterValues"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {

}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "filterLabelOverride"
}
],
"key": "itemListFilterFieldDefinition"
}
],
"updateServiceName": "",
"minimumSelectedAttributes": 0,
"supportedTypes": {
"data": [

],
"allowSubsetForTailoring": false
},
"addServiceName": "",
"maximumSelectedAttributes": 1
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory": false,
"key": "filterFields"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"directDefinition": [
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"additionalDefinition": [

],
"updateServiceName": null,
"minimumSelectedAttributes": null,
"supportedTypes": {
"data": [

],
"allowSubsetForTailoring": false
},
"addServiceName": null,
"maximumSelectedAttributes": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSetsSelector"
},
"mandatory": false,
"key": "itemIdentifierKeys"
}
]
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.DefinitionGroup"
},
"mandatory": false,
"key": "implementationConfiguration"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {

}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "label"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"minValue": 50,
"default": 500,
"maxValue": 10000,
"step": 50
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Number"
},
"mandatory": false,
"key": "maxNumberOfRowsInGrid"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"options": [
{
"description": "Disallow items selection",
"label": "[[PTC.Nav.ItemList.SelectionType.None]]",
"key": "none"
},
{
"description": "Allow single item selection",
"label": "[[PTC.Nav.ItemList.SelectionType.Single]]",
"key": "single"
},
{
"description": "Allow multiple items selection",
"label": "[[PTC.Nav.ItemList.SelectionType.Multiple]]",
"key": "multi"
}
],
"updateServiceName": null,
"addServiceName": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.RadioButton"
},
"mandatory": false,
"key": "selectionType"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"default": true,
"true": {
"additionalDefinition": [
{
"directDefinition": [
{
"property": {
"options": [
[
{
"label": "[[PTC.Nav.ItemList.ExportCSVActionLabel]]",
"key": "exportToCsv"
},
{
"label": "[[PTC.Nav.ItemList.ExportCSVAsExcelActionLabel]]",
"key": "exportToExcel"
}
]
]
},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"default": "",
"overflow": null,
"minimumSelectedItems": null,
"options": [

],
"updateServiceName": null,
"addServiceName": null,
"constraints": {

}
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.CheckboxArray"
},
"mandatory": false,
"key": "exportTypes"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"default": false,
"true": {
"additionalDefinition": [

],
"label": null
},
"false": {
"additionalDefinition": [

],
"label": null
},
"label": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Toggle"
},
"mandatory": false,
"key": "exportUnFilteredData"
}
],
"key": "itemListExportDefinition"
}
],
"label": "[[PTC.Nav.Yes]]"
},
"false": {
"additionalDefinition": [

],
"label": "[[PTC.Nav.No]]"
},
"label": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Toggle"
},
"mandatory": false,
"key": "showExportAction"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"default": "alphanumeric",
"options": [
{
"description": "Alphanumeric sort order",
"label": "[[PTC.Nav.ItemList.SortOrder.Alphanumeric]]",
"key": "alphanumeric"
},
{
"description": "Natural sort order",
"label": "[[PTC.Nav.ItemList.SortOrder.Natural]]",
"key": "natural"
}
],
"updateServiceName": null,
"addServiceName": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.RadioButton"
},
"mandatory": false,
"key": "sortOrder"
},
{
"property": {

},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {

},
"properties": {
"default": false,
"true": {
"additionalDefinition": [

],
"label": "[[PTC.Nav.Yes]]"
},
"false": {
"additionalDefinition": [

],
"label": "[[PTC.Nav.No]]"
},
"label": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Toggle"
},
"mandatory": false,
"key": "waitForInput"
}
]
}
这对您有帮助吗?