Successfully!

Error!

You are viewing 10.0 help doc. More details are displayed in the latest help doc

JS Display Specific Sheet in Multi-sheet Report

I. Overview

If there are multiple sheets in a report, the first sheet is displayed by default after previewing, so how to display the specified sheet?

As shown in the example below, the second sheet will be displayed by default after previewing.

image.png

II. Example

2.1 Prepare template

Prepare a report with 2 sheets.


2.2 Add event

Click Template > Web Attributes, and select Data Entry Settings. Check Individually set for the template, and add a Start Loading event, as shown in the following figure:

Snag_57605cc.png

The JavaScript code is as follows:

if (typeof(tempfirstLoad) == "undefined")
{
contentPane.$contentPane.data('TabPane').selectTabAt(1);//The number of the sheet starts from 0 by default, so the number of the second sheet is 1
          tempfirstLoad ='false';
}


2.3 Effect preview

Save the report, click Data Entry Preview, and the effect is as shown at the beginning.

Note 1: Mobile terminal is not supported.

Note 2: New Data Entry Preview is not supported.

III. Completed Template

Attachment List


Theme: Secondary Development
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback