Drop-down Checkbox Selects All By Default

I. Overview

1. Description

Actually, the drop-down checkbox will select all data by default during preview, as shown below:

1.png


2. Solution

Widget value can be set using field or formula to fulfill requirement.

II. Example

1. Data preparation

Create a new dataset ds1,  and enter the SQL statement: SELECT * FROM Employe, as shown below:

2.png


2. Report design

1) Click Template > Template Parameters to add the template parameter, set the Name to Name, as shown below:

3.png

2) Edit the parameter pane, click Add All, select the Drop-down Checkbox widget, bind the data dictionary to ds1, and both the Actual Value and the Displaye Value are Full_name, as shown below:

4.png


3. Solution 1: Field

Check the Drop-down Checkbox widget, choose Widget Setting > Attributes > Advanced > Widget Value > Field, and bind the Full_name field of ds1.

5.png


4. Solution 2: Formula

Check the Drop-down Checkbox widget, choose Widget Setting > Attributes > Advanced > Widget Value > Formula, and enter the formula: value("ds1","Full_name").

6.png


5. Preview effect

1) PC

Click "Pagination Preview" to see the effect shown in Section I.1 of this article.

2) Mobile

The effect of App and HTML5 is the same, as shown below:

7.png

III. Download template

Please refer to the completed template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\Parameter\Drop-down_Checkbox_Select_All.cpt

Click to download the template: Drop-down_Checkbox_Select_All.cpt

Attachment List


Theme: Parameter
  • Helpful
  • Not helpful
  • Only read

滑鼠選中內容,快速回饋問題

滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

不再提示

10s後關閉

Get
Help
Online Support
Professional technical support is provided to quickly help you solve problems.
Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
Page Feedback
You can provide suggestions and feedback for the current web page.
Pre-Sales Consultation
Business Consultation
Business: international@fanruan.com
Support: support@fanruan.com
Page Feedback
*Problem Type
Cannot be empty
Problem Description
0/1000
Cannot be empty

Submitted successfully

Network busy