You can generate aggregated records with URL query parameters or with Presentation API methods.
Note that regardless of how many properties or dimensions you have enabled as rollup keys, you can specify a maximum of one rollup key per navigation query.
To generate aggregated Oracle Commerce records, the query must be
appended with an
Nu
parameter.
The value of the
Nu
parameter specifies a rollup key for the returned
aggregated records, using the following syntax:
Nu=rollupkey
For example:
N=0&Nu=Winery
The records associated with the navigation query are grouped with
respect to the rollup key prior to computing the subset specified by the
Nao
parameter (that is, if
Nu
is specified,
Nao
applies to the aggregated records rather than
individual records). Aggregated records only apply to a navigation query.
Therefore, the
Nu
query parameter is only valid with an
N
parameter.
The equivalent API method to the
Nu
parameter is:
Examples of these calls are:
// Java version usq.setNavRollupKey("Winery"); // .NET version usq.NavRollupKey("Winery");
When the aggregated record navigation query is made, the returned
Navigation
object which will contain an
AggrERecList
object.