<private> new SuggestionResultSet()
A suggestion result set for a SAP HANA system.
- Since:
- SAP HANA SPS 06
- Source:
Methods
-
getElements() → {Array}
-
Returns the elements of the result set, ordered by relevancy score.
- Since:
- SAP HANA SPS 06
- Source:
Returns:
A list of result set elements.- Type
- Array
Example
var queryProperties = { dataSource : { schemaName : "SYSTEM", objectName : "J_EPM_PRODUCT" }, searchTerms : "s*", attributes : ['CATEGORY','PRODUCT_ID','TEXT','PRICE','CURRENCY_CODE'] }; var query = sap.bc.ina.api.sina.createSuggestionQuery(queryProperties); var resultSet = query.getResultSetSync(); var elements = resultSet.getElements(); // contents of elements (shortened): [{"label":"USD","attribute":"CURRENCY_CODE"}, {"label":"Software","attribute":"CATEGORY"}, {"label":"Scanner","attribute":"CATEGORY"}, {"label":"Speakers","attribute":"CATEGORY"}, {"label":"1200 dpi x 1200 dpi - up to 25 ppm (mono) / up to 24 ppm (colour) - capacity: 100 sheets - Hi-Speed USB2.0, Ethernet","attribute":"TEXT"}, {"label":"1000 dpi x 1000 dpi - up to 16 ppm (mono) / up to 15 ppm (colour)- capacity 80 sheets - scanner (216 x 297 mm, 1200dpi x 2400dpi)","attribute":"TEXT"}, {"label":"Print 2400 dpi image quality color documents at speeds of up to 32 ppmĀ¹ (color) or 36 ppmĀ¹ (monochrome), letter/A4. Powerful 500 MHz processor, 512MB of memory","attribute":"TEXT"}, {"label":"Scanner and Printer","attribute":"CATEGORY"}, {"label":"1000 dpi x 1000 dpi - up to 15 ppm (mono) / up to 13 ppm (colour) - capacity: 40 sheets - Hi-Speed USB - excellent dimesions for the small office","attribute":"TEXT"}, {"label":"Print up to 25 ppm letter and 24 ppm A4 color or monochrome, with a first-page-out-time of less than 13 seconds for monochrome and less than 15 seconds for color","attribute":"TEXT"} ]