Add a drill-down action to a cross-table

Technologies > User Interface Add-Ins > Grouping Views> Two-dimensional cross-table with drill-down and custom columns

Use an onClickItem event to add a drill-down action to a cross-table.

<panel type="crossTable" id="propViewAnalysis2dAllValues_table" dataSource="propViewAnalysis2dAllValues_ds" showOnLoad="false">
<title>Property Summary Table</title>

<event type="onClickItem">
<command type="openDialog" viewName="ab-prop-view-analysis-grid.axvw"/>
</event>
</panel>

To define an onclick event using JavaScript use command type callFunction :

<event type="onClickItem">
<command type="callFunction" functionName="projViewAnalysisGrid_onclick"/>
</event>

Obtain the primary key value for the row from the passed parameter obj :

function projViewAnalysisGrid_onclick(obj) {
if (obj.restriction.clauses.length == 0) return;
var project_id = obj.restriction.clauses[0].value;
...

See Also: Add custom columns to a cross-table

View: http://localhost:8080/archibus/schema/ab-products/solutions/parts/cross-table/ab-prop-view-analysis-2d-all-values.axvw