28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

11.3.9 Defining the Layout of Result Lists and Details<br />

You can select which attributes are displayed and how they are displayed in the result lists (small or centered) and<br />

on the details pop-up. In the search HTML file, the result templates are referenced in the inaresultlist<br />

widget using the data-resulttemplate parameters.<br />

The templates folder contains the HTML and CSS templates of the demo app for adapting. You can create your<br />

own result layouts from the templates and reference them in the parameters. Make sure that the path is correct.<br />

In the HTML templates, you define what is in a result entry in the different views. You can enter fixed text and<br />

reference the response properties and values in double braces.<br />

For a deeper understanding of these HTML templates, familiarize yourself with the Tempo JSON rendering<br />

engine.<br />

Note: If you want to integrate graphics in result list templates, define the exact width and height in pixels.<br />

Use the corresponding CSS files to define the result layouts and the behavior on hover events. To tweak the layout<br />

of the details screen further, you can also use the widgets provided by jQuery UI.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Enabling Search<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 319

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!