I. Description
When there are too many widgets to report on the page, it may be slower, and an "example of slow Internet script running" appears.
In this chapter, we use an example to introduce how to use hyperlinks to solve the card problem caused by too many page controls. The effect we want to achieve is to click on a value to transfer the corresponding value to the data entry template for data entry, as shown in the following figure:
II. Example
Since the hyperlink is to the data entry template, we need to define the sub-report as a data entry form, and then set the hyperlink of the main report to open the sub-report in the form of data entry.
1. Set sub template
Open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\Primary\DetailReport\Data_Display_Format.cpt。
1) Widget setting
Select A2-H2 in batches, set the widget type to Text Field, and the effect after setting is as shown in the figure below:
2) Increase parameters
Click Template>Template parameter, add a parameter named orderID, and set the default value to the integer 10001.
Add a filter condition with the ORDERID equal to the parameter $orderID to A2.
Finally, set the Data Entry Attributes for the report, I won't introduce it here.
3) Save the template
Save the template. The completed template, see: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\FeaturesApplication\Hyperlink_solve_slow_running_sub.cpt.
2. Set main template
Open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN \Advanced\Data_Drilling_main.cpt.
Modify the template of the hyperlink to the newly created Hyperlink_solve_slow_running_sub.cpt, and set it to be accessed by filling in, and modify the name of the parameter to the report parameter defined by the sub-template, that is, orderID. The specific settings are as follows:
Save the template.
The completed template can refer to: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\FeaturesApplication\Hyperlink_solve_slow_running_main.cpt.
3. Effect preview
Preview the main template by pagination preview. If you want to modify a value, just click the hyperlink to the sub-template to modify it. This reduces a lot of widgets and greatly improves the efficiency of the report.