オブジェクトの最後にプッシュされた日付を表示するには?
どのダイナミックグリッドでも、日付を表示するカスタムインデックスと列を作成することができます。
説明
列を作成することができます。 あるブランチから別のブランチにオブジェクトをプッシュすることは、IXIA Dynamic Release Management (DRM)のドキュメント作成サイクルの重要な部分です。しかし、オブジェクトが最後にプッシュされたのはいつなのか、あるいはオブジェクトがプッシュされたことがあるのかどうかを知るのは難しい場合があります。
解決法
オブジェクトが最後にプッシュされた日付を表示するカスタムインデックスと列を作成できます。この列はどのダイナミックグリッドにも表示できるので、ユーザーはオブジェクトがプッシュされたかどうかをすぐに確認できます。
重要: インデックスに変更を加える場合は、IXIA CCMSの活動が非常に少ない時間帯に行うようにしてください。
-
Index Definition(インデックス定義)で、以下のインデックスを追加します:
<index NAME="last_pushed_date" CUSTOMPROPERTY="True" SYNC="False"> <dateindex KEEPEXTRACTEDVALUES="True"> <dateindexproperties> <datevalidation VALUE="YearMonthDay"/> <formats> <format NAME="ISO 8601"/> </formats> </dateindexproperties> <elements> <!--These display the last pushed date for the object in the development branch--> <element DEPTH="0" XPATH="//systemComment[@actionName='pushToManual' and @current='true']/@date"/> <element DEPTH="0" XPATH="//systemComment[@actionName='pushToAutomatic' and @current='true']/@date"/> <!--These display the last pushed date for the object in the delivery branch--> <element DEPTH="0" XPATH="//systemComment[@actionName='pushFromAutomatic' and @current='true']/@date"/> <element DEPTH="0" XPATH="//systemComment[@actionName='pushFromManual' and @current='true']/@date"/> <!--This displays the date of the initial push of the object from development to delivery. In the future this property might be used for any kind of "Add to branch" action, so it might over-include.--> <element DEPTH="0" XPATH="//systemComment[@actionName='sharedWith' and @current='true']/@date"/> </elements> </dateindex> </index>
注: 日付を表示したい場所に応じて、このインデックスの特定の<element>
行を含めることも除外することもできます。上のコードのコメントで、どの行が配信ブランチ用で、どの行が開発ブランチ用かを説明しています。たとえば、配信ブランチのオブジェクトにのみ日付を表示させたい場合は、最初の 2 行を除外します。
-
ixiasoftccmssummary
のリストにインデックスを追加します:<field NAME="last_pushed_date" TYPE="Index" VALUE="All"/>
-
IXIA CCMS Webの列を表示するには、additionalcolumnDefinitions.xmlの新しい列にインデックスを追加します。例:
<columnDefinition indexName="last_pushed_date" columnType="date"> <captions> <caption lang="en" displayText="Last Pushed Date"></caption> <caption lang="fr" displayText="Date Dernier Envoi"></caption> </captions> </columnDefinition>
-
IXIA CCMS Desktopの列を表示するには、display.xmlに以下のように追加します:
<key halign="LEFT" label="Last Pushed Date" name="last_pushed_date" sortOrder="ASC" sortType="DATE" type="Property" visibility="255" width="125"/>
- ファイルを保存してチェックインします。
- ウェブサーバーをリフレッシュします。
- ウェブブラウザを更新すると、新しいカラムが表示されます。注: まれにTomcatを再起動する必要がある場合があります。
- CCMS Desktopに列を追加した場合は、Eclipseを再起動してください。