Data context formats – HP Intelligent Management Center Standard Software Platform User Manual
Page 539
data context is /Country[Australia]/ChildIndex[5], the Context
Report Part data context is "/"+{Customer.Country}.
Cross-tabs
If the object you copy in your source report is part of a cross-tab, the Context
Report Part data context is based on the selected object embedded in the
cross-tab. Crystal Reports creates the data context by tracking if the selected
object in the cross-tab is a row, column, or cell. Next, the program retrieves
row and column names. Then it parses the Design view data context. Finally,
it generates the Context Report Part data context by adding the GridRow
ColumnValue
function if the group in the data context formula appears in
the row or column names retrieved earlier. You might see, for example, a
data context such as:
"/"+GridRowColumnValue("Customer.Country")+"/"+GridRow
ColumnValue("Customer.Region")
Data context formats
•
Normally, a data context formula appears as follows:
"/" + {Table.Field} + "/" + {Table.Field}
•
You can also use these formats:
•
XPath-like format:
/USA/Bicycle
•
Strongly-Typed format:
/Country[USA]/Product Class[Bicycle]
Note:
You can add detail-level information in 0-based format:
/USA/Bicycle/ChildIndex[4]
Note:
You can also use a wildcard to identify all instances:
/USA/*
Crystal Reports 2008 SP3 User's Guide
539
20
Printing, Exporting, and Viewing Reports
Viewing reports