変更適用アイテム
「変更適用アイテム」は、アイテムリストコンポーネントの定義済みコンフィギュレーションです。「変更適用アイテム」には、変更リクエストによって影響を受けるアイテムが表示されます。「変更適用アイテム」には、変更適用アイテムごとに、コンフィギュレーションを介して選択可能な属性が表示されます。デフォルトの属性は、アイテムの「名前」、「番号」、「オブジェクトタイプインジケータ」、「バージョン」、「状態」、「説明」です。
各アイテム名は、そのアイテムの ThingWorx Navigate ページへのリンクです。そのアイテムタイプの ThingWorx Navigate ページがない場合は、そのアイテムの Windchill 詳細ページへのリンクになります。リンクされた ThingWorx Navigate または Windchill ページへのアクセス許可がある場合のみ、リンクは正しく機能します。
詳細については、ThingWorx アクセス許可の修正: ユーザーとグループを参照してください。
「変更適用アイテム」には、アイテムリストと同様に、サーチ、並べ替え、フィルタ、エクスポート、およびデフォルトに戻す機能があります。
「変更適用アイテム」定義済みコンフィギュレーションのサンプルイメージを以下に示します。
バインドプロパティ 
「変更適用アイテム」のバインドについては、アイテムリストコンポーネントを参照してください。
* 
「変更適用アイテム」の場合、入力バインドプロパティで PTC.Workflow.WorkItem および PTC.ChangeMgmt.ChangeRequest オブジェクトタイプがサポートされています。
selectedItems バインドプロパティの出力には、PTC.ChangeMgmt.AffectsLinkItem オブジェクトタイプのアイテムが含まれています。
コンフィギュレーションプロパティ 
「変更適用アイテム」の設定については、アイテムリストコンポーネントを参照してください。さらに、「変更適用アイテム」専用の次のような JSON プロパティがあります。
コンフィギュレーションの構造の詳細については、コンポーネントのコンフィギュレーション構造を参照してください。
サブプロパティの詳細については、サブプロパティとコンテナキーを参照してください。
プロパティ名
説明
プロパティタイプ
デフォルト値
必須またはオプション
isLink
指定した属性をハイパーリンクに変換します。
これは attributes コンフィギュレーションプロパティのサブプロパティです。いずれかの属性 ID に挿入した場合、その属性がユーザーインタフェースにハイパーリンクとして表示されます。このリンクは、そのタイプのアイテムの詳細マッシュアップを指します。そのタイプのアイテムの詳細マッシュアップが見つからない場合、このリンクはそのアイテムが対応する Windchill ページにリダイレクトします。
このプロパティのコンテナキーは implementationAttributesDefinition です。
例:
{
"additionalData":{
"implementationAttributesDefinition":{
"isLink":{
"value":true
}
}
},
"id":"AffectedObjects|Name",
"ordinal":0
}
なし
必須
attributes
詳細については、アイテムリストを参照してください。
PTC.ChangeMgmt.AffectsLinkItem オブジェクトタイプの属性を受け入れます。
なし
必須
defaultSortField
詳細については、アイテムリストを参照してください。
PTC.ChangeMgmt.AffectsLinkItem オブジェクトタイプの属性を受け入れます。
なし
オプション
filterFields
詳細については、アイテムリストを参照してください。
PTC.ChangeMgmt.AffectsLinkItem オブジェクトタイプの属性を受け入れます。
なし
オプション
サンプルコンフィギュレーション 
{
"selectionType": {
"selectedKey": "none"
},
"waitForInput": {
"value": true
},
"actionBarConfiguration": {
"value": {
"actionBarConfigurationJSON": {
"value": ""
}
}
},
"defaultSortFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListDefaultSortFieldDefinition": {
"defaultSortDirection": {
"selectedKey": "asc"
}
}
},
"id": "AffectedObjects|Name"
}
],
"objectType": "PTC.ChangeMgmt.AffectsLinkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"attributes": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"implementationAttributesDefinition": {
"isLink": {
"value": true
}
}
},
"id": "AffectedObjects|Name",
"ordinal": 0
},
{
"id": "AffectedObjects|Number",
"ordinal": 1
},
{
"id": "AffectedObjects|TypeIcon#Tooltip",
"ordinal": 2
},
{
"id": "AffectedObjects|Version",
"ordinal": 3
},
{
"id": "AffectedObjects|State#Display",
"ordinal": 4
},
{
"id": "Description",
"ordinal": 5
}
],
"objectType": "PTC.ChangeMgmt.AffectsLinkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
},
"inTailoring": true
},
"label": {
"value": "[[PTC.Nav.AffectedItems.UILabel]]"
},
"showExportAction": {
"inTailoring": true,
"value": true
},
"enableSearch": {
"additionalData": {
"itemListSearchDefinition": {
"searchHintText": {
"value": "[[PTC.Nav.AffectedItems.FindHintText]]"
}
}
},
"value": true
},
"maxNumberOfRowsInGrid": {
"inTailoring": true,
"value": 50
}
}
カスタマイズサービス 
コンフィギュレーションに加え、コンポーネントごとにビジネスロジックを拡張してコンポーネントをカスタマイズできます。各コンポーネントのビジネスロジックには、拡張およびオーバーライド可能な Thing Template 内のサービスが含まれています。次のテーブルは、このコンポーネントのオーバーライド可能なサービスの詳細を示しています。
各サービスの戻り値とパラメータの例については、カスタマイズサービスの入力/出力の例を参照してください。
名前
説明
GetConfigurations
「変更適用アイテム」で使用可能なコンフィギュレーションを返します。
パラメータ: なし
戻り値: JSON
GetImplementationLabel
コンポーネントのローカライズ名、またはローカライズ名を取得するために使用できるトークンを返します。このローカライズ名は Mashup Builder のユーザーインタフェースに表示されます。
パラメータ: なし
戻り値: String
GetItems
入力で指定された変更リクエストアイテムに対する変更適用アイテムを返します。
パラメータ:
input (オプション) - バックエンドシステムからフェッチするデータの入力 ID およびバックエンドシステムのアダプタ情報を含む、CCOフォーマットの JSON。
configuration (必須) - 調整マネージャリソースから取得した最終マージコンフィギュレーションを含む JSON。
戻り値: CCOフォーマットの JSON
InitializeFilters
コンフィギュレーション内の各フィルタフィールドのフィルタタイプ定義を返します。
パラメータ:
input (オプション) - バックエンドシステムからフェッチするデータの入力 ID およびバックエンドシステムのアダプタ情報を含む、CCOフォーマットの JSON。
configuration (必須) - 調整マネージャリソースから取得した最終マージコンフィギュレーションを含む JSON。
戻り値: CCOフォーマットの JSON
DefHookAttributesTypesInfo
アダプタ情報を含む JSON 配列と、コンポーネントによってサポートされている属性のオブジェクトタイプを返します。
パラメータ: なし
戻り値: JSON 配列
DefHookMaxRowsProperties
グリッド領域に表示される行の最大数のプロパティを返します。
パラメータ: なし
戻り値: JSON
実装定義 
{
"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"
}
],
"componentDefinition":{
"thingName":null,
"allowSelection":false
}
}
},
"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":{
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Textbox"
},
"mandatory":false,
"key":"fieldTitleOverride"
}
],
"key":"itemListAttributesDefinition"
},
{
"directDefinition":[
],
"key":"implementationAttributesDefinition"
}
],
"updateServiceName":"",
"minimumSelectedAttributes":null,
"supportedTypes":{
"data":[
{
"itemListsData":[
{
"selectionGroupIds":[
"AL"
],
"objectType":"PTC.ChangeMgmt.AffectsLinkItem"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
],
"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":{
"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":[
{
"itemListsData":[
{
"selectionGroupIds":[
"AL"
],
"objectType":"PTC.ChangeMgmt.AffectsLinkItem"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
],
"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.AccessApp.Yes]]"
},
"false":{
"additionalDefinition":[
],
"label":"[[PTC.AccessApp.No]]"
}
}
},
"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":[
{
"itemListsData":[
{
"selectionGroupIds":[
"AL"
],
"objectType":"PTC.ChangeMgmt.AffectsLinkItem"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
],
"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":[
],
"componentDefinition":{
"thingName":null,
"allowSelection":false
}
}
},
"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":50,
"maxValue":10000,
"step":50
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Number"
},
"mandatory":true,
"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":[
],
"label":"[[PTC.AccessApp.Yes]]"
},
"false":{
"additionalDefinition":[
],
"label":"[[PTC.AccessApp.No]]"
}
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Toggle"
},
"mandatory":false,
"key":"showExportAction"
},
{
"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":"waitForInput"
}
]
}
これは役に立ちましたか?