Version
Version | Functional Change |
---|---|
11.0 | Difference from 10.0: No changes and all the following APIs are supported in V10.0. |
During report design, you can obtain the FS object (namely, the decision-making system) using global APIs for FS. The FS object encapsulates the attributes and APIs specific to the decision-making system. Since the report is embedded in an iframe, you need to first access window.parent to use the FS object, for example, window.parent.FS.signOut().

signOut
API | signOut() | To log out of the decision-making system, that is, to return to the system login page. ![]() |
---|---|---|
Parameter | / | / |
Returned Value | void | |
Example | You can add the following code to a template and mount the template to the directory of the decision-making system. When you preview the template, the system will automatically log you out. window.parent.FS.signOut(); | |
Application Example | You can mount the built-in template GettingStartedEN.cpt to the directory of the decision-making system. When you preview the template, you will be redirected to the system login page. | |
Mobile Terminal | This API is not supported on mobile terminals. ![]() |
tabPane.closeActiveTab
API | tabPane.closeActiveTab() | To close the tab page of the decision-making system, that is, to automatically close the template being previewed in the system. |
---|---|---|
Parameter | / | / |
Returned Value | void | |
Example | You can add the following code to a template and mount the template to the directory of the decision-making system. When you preview the template, the template will be closed. window.parent.FS.tabPane.closeActiveTab(); | |
Application Example | You can mount the built-in template GettingStartedEN.cpt to the directory of the decision-making system. When you preview the template, the corresponding tab page will be automatically closed after two seconds. | |
Mobile Terminal | For general reports and FRM reports, this API is supported on mobile terminals. For FVS dashboards, this API is supported on mobile terminals only when the FineVis Data Visualization plugin is V2.6.0 or later. |
tabPane.addItem
API | tabPane.addItem(entry) | To open a new tab page in the decision-making system. ![]() |
---|---|---|
Parameter | entry {title: String, src: String} | entry: an entry object corresponding to the tab item, which is required and in JSON format
|
Returned Value | void | |
Example | Example One: You can open a tab page on the platform with the title baidu and the URL https://www.baidu.com.
Example Two: You can open a CPT file on the platform with the title Order Details and the file path demo/Basic/Sub_Drill Down Report_Order Details.cpt.
![]() | |
Application Example | For a report in the platform directory, you can click the hyperlink in the main report to open the sub-report in a new tab. For details, see Opening a Hyperlink on a New Tab Page. | |
Mobile Terminal | For general reports and FRM reports, this API is supported on mobile terminals. For FVS dashboards, this API is supported on mobile terminals only when the FineVis Data Visualization plugin is V2.6.0 or later. |