Use the ENEQuery.Selection()
property for Java implementations.
In a .NET application, the ENEQuery.Selection
property is used to get and set the FieldList
object. You can add properties or dimensions to the FieldList
object with the FieldList.AddField
property.
Note
The Selection
property is also available in the UrlENEQuery
class.
Example 27. .NET selection example
The following is a C# example of setting an Oracle Commerce property and dimension for a navigation query.
// Create a query ENEQuery usq = new UrlENEQuery(queryString, "UTF-8"); // Create an empty selection list FieldList fList = new FieldList(); // Add an Oracle Commerce property to the list int i = fList.AddField("P_WineType"); // Add an Oracle Commerce dimension to the list i = fList.AddField("Designation"); // Add the selection list to the query usq.Selection = fList; // Make the MDEX Engine query ENEQueryResults qr = nec.query(usq);