Application Examples for Filling in Parameters

<< Click to Display Table of Contents >>

Current:  Create Dashboard > Form Table 

Application Examples for Filling in Parameters

Previous pageReturn to chapter overviewNext page

Take the example of submitting data to the STUDENT table in the MYSQL database as an example:

1.First create a new form parameter component and bind the column in the query, as shown in the figure:

ParameterReporting7

2.Select the form parameter component, click Settings - Report parameters in the right panel, set as follows: Data source: MYSQL database, the target table is: STUDENT, the condition is listed as stuNAME, the submission is listed as all matching columns, as shown in the following figure:

commitScript4

3.Create a new submit component, select the component in the right panel, click Settings - Script - On Change, in the script edit box, enter: fill in parameters 1.commit(); as shown:

commitScript

4.In the preview, insert the data “5, 12, Li Leilei, m” and click submit. After the submission is successful, the feedback prompt will pop up as shown in the figure:

ParameterReporting8

The effect before and after clicking Commit is as follows, before clicking Commit:

ParameterReporting9

After clicking Commit:

ParameterReporting10