Configuring the Results Table for Analytics results

If your application is using Endeca Analytics, you can customize the Results Table to display table-based results for Analytics statements.

Before you can use Analytics statements in your application, the MDEX Engine must be enabled for the Analytics option. In addition, you should have a sample Analytics statement that can be used as a basis for setting up the columns for the Results Table. For example, the results of this query:
return test as select avg("P_Price") as avgprice, avg("P_Score") as avgscore group by "Vintage"
will create three columns: avgprice, avgscore, and Vintage.

To configure the Results Table for Analytics statements:

  1. Access the Analytics Configuration section.
  2. Check the Use analytics statement checkbox.
  3. Enter an Analytics statement in the query box:

  4. Click the Test analytics query button. If the Analytics statement is valid, the results are displayed under the Analytics query box:

  5. Click the Save Analytics Configuration button. As the Caution message reminds you, saving the Analytics statement overwrites the columns configured in the Grid Preferences Editor panel. That is, the current columns are replaced with a new set of Analytics columns.
  6. Use the Grid Preferences Editor to configure the new columns and/or add more columns.
  7. Click Apply to apply your changes to the component.

To revert to a non-Analytics Results Table, uncheck the Use analytics statement checkbox. Doing so will present you with a Disable Analytics Statement button, which you can click to revert to the standard Results Table grid.