The RecordDetailsConfig type defines the configuration for a record details query.
A record details query is a query for a single, specific record. Configuration information for this type of query is provided in a RecordDetailsConfig component. This component lets you configure aspects of the returned record, such as its primary key (record specifier) and which standard attributes and/or managed attributes should be returned.
<RecordDetailsConfig Id="?"> <StateName>?</StateName> <RecordSelector Name="?" Spec="?"/> <Column>?</Column> </RecordDetailsConfig>
Element/Attribute | Meaning |
---|---|
Id | Required. An arbitrary identifier for this RecordDetailsConfig. |
RecordSelector Name Spec | Required. A RecordSelector selects a record based on a Key/Value pair that is unique to that record (typically, this is the record specifier). Name specifies the key (name) of the unique attribute while Spec is the value of the key. |
Column | Optional. Specifies a standard or managed attribute that should be returned with the record. You can specify multiple instances of the Column element. Note that you do not have to specify the primary key, because it is automatically returned. If no Column elements are specified, then all the record's assignments are returned. |
StateName | Specifies an existing named state in the
request, using these rules:
|
<Request xmlns="http://www.endeca.com/MDEX/conversation/3/0"> <State/> <RecordDetailsConfig Id="RecDetails"> <RecordSelector Name="WineID" Spec="34750"/> <Column>WineType</Column> <Column>Description</Column> </RecordDetailsConfig> </Request>
Two record assignment attributes (WineType and Description) will be returned in the results, as well as the primary key (WineID) of the record.
The record details returned from the record query are contained in the RecordDetails element. The RecordDetails element is wrapped in a Results component, together with the original State.
<cs:RecordDetails Id="RecDetails"> <cs:Record> <cs:attribute name="Description" type="mdex:string">ring">Dense and vegetal, with peach flavors.</cs:attribute> <cs:attribute name="WineID" type="mdex:int">34750</cs:attribute> <cs:attribute name="WineType" type="mdex:string" displayName="Red">Red</cs:attribute> </cs:Record> <cs:DimensionHierarchy> <cs:DimensionValueWithPath> <cs:DimensionValue DimensionName="WineType" Spec="Red">Red</cs:DimensionValue> <cs:DimensionValue DimensionName="WineType" Spec="/">WineType</cs:DimensionValue> </cs:DimensionValueWithPath> </cs:DimensionHierarchy> <cs:Column ColumnKey="Description" DisplayName="Description" SpecColumn="false"/> <cs:Column ColumnKey="WineID" DisplayName="WineID" SpecColumn="true"/> <cs:Column ColumnKey="WineType" DisplayName="WineType" SpecColumn="false"/> ... </cs:RecordDetails>
The assigned attributes of the requested record are in the Record element.
The application front end can iterate through this record details list, extract the identifying information for the record, and display a table containing the results.