I. Overview
1. Expected effect
The mobile terminal implements the star rating function, as shown in the following figure:
2. Realization idea
Use frm dashboard to realize rating function.
II. Example
1. Template design
1) Create a new dashboard,Template -> Mobile Attribute, checkSet as mobile template
2) Drag the body into a report block
2. Page design
1) Click the report block, add the formula in the B2 cell:range(1,5,1), the cell is set to expand horizontally.
2) Set horizontal expansion in cell B3, and setUp Parent CelltoB2.
3) Add twoConditional Formattingto cell B3, and set them as follows:
4) Add a link to cell B3, select the current report object, and pass parameters to the current report blockReport0, and the passed parameter value is B2 corresponding to the parent cell
5) Add a score formula in cell D3:if(len($num) = 0, 0, $num)
Save preview.
3. Effect preview
The effect preview is shown in theOverview .
III.Template downloadPlease refer to the completed template:
%FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\Dashboard\[General]_Dynamic_star_rating_on_mobile_terminal.frm
Click to download:
[General]_Dynamic_star_rating_on_mobile_terminal.frm