Successfully!

Error!

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

API Interface Summary

This page summarizes all the interfaces of the JS API. You can simply view the functions and mobile terminal support of each interface. For details, please read the corresponding interface introduction.

I. Public module

The interface of the public module, general report and dashboard can be used, divided into global interface, parameter pane interface, widget interface, table interface, toolbar interface, report pagination interface and export interface.

1. global interface

The global interface is basically used for the report body. In addition to the methods on the report object obtained by _g(), it also includes methods on the FR object and the FS object.

The methods on the report object obtained by g() are shown in the following table, and the details can be seen: Global interface

InterfaceInstructionMobile
_g()Get the report object, and use it in combination with the method of the report object.Support
getParameterContainerGet the parameter pane object in the report, and use it in combination with the parameter pane interfaceSupport
parameterCommitAfter submitting the parameters, re-query and refresh the reportSupport
loadContentPaneReload, refresh reportSupport
getPreviewTypeGet the preview mode the report is currently inSupport

The methods on the FR object, as shown in the following table, can be seen in detail: 

InterfaceInstructionMobile
servletURLObtain servletURLSupport
serverURLObtain serverURLNot support
serverObtain serverNot support
fineServletURLObtain fineServletURLNot support
SessionMgr.getSessionIDObtain sessionIdSupport
showDialogOpen a dialogNot support
closeDialogClose dialogNot support
doHyperlinkByGetThe Get method opens a web page, you can pass parameters, and you can set page attributesSupport
doHyperlinkByPostThe Post method opens a web page, you can pass parameters, and you can set page attributesSupport
doURLPrintCall up the print tool to print the reportNot support
MsgFR's built-in unified style message box can replace the alert, confirm and prompt pop-ups in WindowSupport
remoteEvaluateExecute FR built-in formula and return the result of formula calculationSupport
jsonEncodejsonEncode encode the stringNot support
jsonDecodejsonEncode decode the stringNot support
ajaxWrapped jQuery.ajax() functionSupport
isEmptyDetermine if an object is emptyNot support
isArrayDetermine if an object is an arrayNot support

The methods on the FR object are only supported by the mobile terminal, as shown in the following table. For details, see: Mobile terminal exclusive

InterfaceInstructionMobile
locationIt is used to realize the positioning function and obtain the latitude and longitude, which can be used in https, enterprise WeChat, and DingTalk.Support
Mobile.getDeviceInfoGet device informationSupport

The methods on the FS object, as shown in the following table, can be seen in detail: Global Interface - FS

InterfaceInstructionMobile
signOutLog out of the decision-making platform, that is, return to the decision-making platform login interfaceNot support
tabPane.closeActiveTabClose the tab of the decision-making platform, that is, automatically close the preview template opened in the decision-making platformSupport
tabPane.addItemOpens a new tab in decision-making platformSupport


2. Parameter pane interface

The parameter pane interface can be used to adjust some attributes of the parameter pane, as shown in the following table. For details, see: Parameter pane interface

InterfaceInstructionMobile
getWidgetByNameGet the widget in the parameter pane and use it in combination with the widget methodSupport
collapseCollapse the parameter paneSupport
expandExpand the parameter paneSupport
submitQuery after submitting automaticallySupport


3. Widget interface

The widget interface is mainly used to modify the attributes of the widgets in the parameter pane, the widgets in the filling and reporting cells, and the widgets in the dashboard body. The widget interface is divided into general and exclusive. All widgets can be used except the special interface. The exclusive interface can only be used by the specified widgets.

The interface to get the widget can only be used in the "event" of the widget, as shown in the following table, the details can be seen: Get widget

InterfaceInstructionMobile
thisIt is used in the event of the widget to get the current widget object. After getting it, the methods and attributes of the widget can be used.Support
this.options.formCalled in the event of the widget, you can use all methods of the parameter pane interfaceSupport

General interface, as shown in the following table, detailed introduction can be seen: Widget general use

InterfaceInstructionMobile
getValueGet the actual value of the widgetSupport
getTextGet the display value of the widgetSupport
setValueSet the value of the widgetSupport
visibleSet widget visibleSupport
invisibleSet widget invisibleSupport
setVisibleSet widget visible/invisibleSupport
isVisibleWhether the widget is visibleSupport
setEnableSet widget enable/disableSupport
isEnabledWhether the widget is enabledSupport
resetReset the widget, clear the content of the widgetSupport
getTypeGet widget typeSupport
setWaterMarkAdd watermark text (only supports widgets with input boxes)Support
fireEventCall widget eventSupport
setPopupStyleSet the style of the widget drop-down option box, only supports widgets with option boxesNot support
return falseAdd return false to the specific event of the widget, without triggering linkage and queryNot support

The exclusive interface of "Date Widget" is shown in the following table. For details, please see: Date Widget Exclusive

InterfaceInstructionMobile
setMaxAndMinDateSet an optional date range for the date widgetSupport
setPopupStyleSet the popup style, only supports widgets with popupsNot support

The exclusive interface of "Button Widget" is shown in the following table, and the detailed introduction can be seen: Button Widget Exclusive

InterfaceInstructionMobile
doClickThe click event that triggers the button is equivalent to a manual clickSupport

The exclusive interface of the "drop-down box" widget is shown in the following table, and the detailed introduction can be seen: Drop-down box widget exclusive

InterfaceInstructionMobile
setName4EmptyModify the default text "not selected" when the drop-down box widget is pulled downNot support


4. Table interface

The table interface is mainly used to modify the table content in the report. According to the application scenario, it can be divided into marquee interface, hidden scrollbar interface, modify cell background interface, modify cell font interface, modify row height and column width interface, get and set cell values, and set cell prompts, set cell styles.

The marquee interface is shown in the following table, and the detailed introduction can be seen: Marquee interface

InterfaceInstructionMobile
startMarqueeStart marquee effectNot support
stopMarqueeStop marquee effectNot support

The hidden scrollbar interface is shown in the following table, and the detailed introduction can be seen: Hide scrollbar interface

InterfaceInstructionMobile
setHScrollBarVisibleSet the horizontal scrollbar to visible/invisibleNot support
setVScrollBarVisibleSet the vertical scrollbar to visible/invisibleNot support

The interface for modifying the cell background is shown in the following table, and the details can be found in: Modify the cell background

InterfaceInstructionMobile
addEffecttype: 'highlightRow',When the mouse clicks or hovers a cell, the row where the cell is located changes color.Support
type: 'highlightCol',When the mouse clicks or hovers a cell, the column where the cell is located changes color.Support
type: 'highlightCross' ,When the mouse clicks or hovers a cell, the row and column where the cell is located changes color.Support
type: 'highlightCell' ,Cells change color when mouse clicks or hovers over cellsSupport

Modify the cell font interface, as shown in the following table, the details can be seen: Modify cell font

InterfaceInstructionMobile
addEffecttype: 'setCellFont', When the mouse clicks or hovers the cell, the cell font format changes.Support
type: 'setRowFont' ,When the mouse clicks or hovers a cell, the font format of the row where the cell is located changes.Support
The font of the row where the mouse clicks or hovers the cell changes, and the mouse clicks or hovers other rows to restore.Support

Set the cell prompt interface, as shown in the following table, the details can be found in: Setting Cell Prompt

InterfaceInstructionMobile
addEffecttype: 'setCellFont',A text/image prompt box appears when the mouse hoversNot support

The interface for modifying row height and column width is shown in the following table. For details, see: Modify row height and column width

InterfaceInstructionMobile
setRowHeightChange cell row heightNot support
setColWidthChange cell column heightNot support

Modify the cell font interface, as shown in the following table, the details can be seen: Get and Set Cell Values

InterfaceInstructionMobile
getCellValueGet the value of a specific cell, the parameter can be the cell address or the cell row and column number

Partial

support

setCellValueAssign a value to a specific cell, the parameter can be the cell address or the cell row and column number

Partial

support

Set the cell style interface, as shown in the following table, the details can be found in: Set cell style

InterfaceInstructionMobile
setCellRadiusSet rounded corners for all cells in the report. The cells must have a background color, otherwise the effect cannot be seen.Not support


5. Toolbar interface

The toolbar interface is mainly used to modify the attributes of the toolbar and buttons in the toolbar.

Toolbar interface, as shown in the following table, detailed introduction can be seen: Toolbar

InterfaceInstructionMobile
getWidgetByNameGet the button in the report toolbar, which can be used in combination with the button method.Not support
toolBarFloatSet the toolbar display positionNot support
setStyle

Modify toolbar size

Not support
setVisibleSet toolbar visible/invisibleSupport

Toolbar button general interface, all toolbar buttons can be used except special ones, as shown in the following table, the details can be seen: Toolbar button general use

InterfaceInstructionMobile
visibleSet a certain toolbar button visibleNot support
invisibleSet a certain toolbar button invisibleNot support
setVisibleSet a certain toolbar button visible/invisibleNot support
isVisibleWhether the certain toolbar button visible/invisibleNot support
setEnableSet a certain toolbar button enable/disableNot support
isEnabledWhether the certain toolbar button is enabledNot support

Mail button exclusive interface, only mail button is enabled, as shown in the following table, detailed introduction can be seen: Mail button exclusive

InterfaceInstructionMobile
changeFormatModify the format options supported by mailNot support


6. Report pagination interface

The report pagination interface is mainly used for paging reports, as shown in the following table. For details, see: Report Pagination

InterfaceInstructionMobile
gotoPreviousPageGo to the previous pageSupport
gotoNextPageGo to the next pageSupport
gotoLastPageGo to the last pageSupport
gotoFirstPageGo to the first pageSupport
gotoPageGo to the specified pageSupport
getCurrentPageIndexGet the current page indexSupport
getReportTotalPageGet the report total pageSupport
currentPageIndexThe index of the current page of the reportSupport
reportTotalPageThe total number of pages in the reportSupport


7. Report export interface

The export interface is mainly used for report export, as shown in the following table. For details, see: Export interface

InterfaceInstructionMobile
exportReportToExcelExport report to Excel

Partial

support

exportReportToImageExport report to image

Partial

support

exportReportToPDFExport report to PDF

Partial

support

exportReportToWordExport report to Word

Partial

support

II. General report

The general report interface, that is, only the cpt general report is enabled, divided into public part and private part. The public part, that is, all preview modes, can be used, and the private part can only be used in the corresponding preview mode.

1. Public interface

The public part of the interface is shown in the following table, and the detailed introduction can be seen: Public section

InterfaceInstructionMobile
getToolbarGet the toolbar objectSupport


2. Pagination preview interface

The Pagination Preview exclusive interface is shown in the table below, and the detailed introduction can be found here: Pagination Preview Exclusive

InterfaceInstructionMobile
expandNodeLayerExpand the collapsed tree to N level nodesNot support
collapseNodeLayerCollapse the collapsed tree to N level nodesNot support
expandAllNodeLayerExpand all nodes of the collapsed treeNot support
collapseAllNodeLayerCollapse all nodes of the collapsed treeNot support


3. Data Entry preview interface

The exclusive interface for data entry preview is shown in the table below, and the detailed introduction can be found here: Data Entry Preview Exclusive

InterfaceInstructionMobile
getWidgetByNameGet the widget in the filling cell by the widget nameSupport
getWidgetByCellGet the widget in the filling cell through the cell addressSupport
getWidgetsByNameGet the widget with the same name in the filling cell by the widget nameSupport
appendReportRCInsert a row at a specific positionNot support
appendReportRowInsert a rowSupport
deleteReportRCDelete a rowNot support
deleteRowsDelete a rowNot support
refreshAllSheetsRe-query, refresh all sheets, after refresh, it will stay on the last viewed sheetSupport
loadSheetByIndexSwitch to the specified sheet, the parameter is the sheet numberNot support
loadSheetByNameSwitch to the specified sheet, the parameter is the sheet nameNot support
isDirtyPageDetermine if a page has been editedNot support
isAutoStashTo determine whether to enable automatic temporary storage, please refer to: Data Entry Temporary StorageNot support
writeReportForce commit, no verificationSupport
verifyAndWriteReportVerify and submit reportsSupport
verifyReportData verificationSupport
importExcelImpory ExcelNot support
importExcel_AppendImport Excel with "Empty Import"Not support
importExcel_CleanImport Excel by means of "incremental import"Not support
importExcel_CoverImport Excel by "overwriting import"Not support
stashTemporary storageNot support
clearEmpty stagingNot support


4. Data Analysis Interface

The data analysis exclusive interface is shown in the following table, and the detailed introduction can be found at: Data Analysis Exclusive

InterfaceInstructionMobile
centerReportWhen previewing "Data Analysis", set the report to be displayed in the centerNot support
expandNodeLayerWhen previewing "Data Analysis", expand the collapsed tree to N level nodesNot support
collapseNodeLayerWhen previewing "Data Analysis", collapse the collapsed tree to N level nodesNot support
expandAllNodeLayerWhen previewing "Data Analysis", expand all nodes of the collapsed treeNot support
collapseAllNodeLayerWhen previewing "Data Analysis", collapse all nodes of the collapsed treeNot support

III. Dashboard

The interface of the dashboard, that is, only the frm dashboard is enabled, divided into the acquisition component interface, the component general interface , and the Tab component interface.

1. Get component interface

The interface for getting components is shown in the following table, and the details can be found in: Get Components

InterfaceInstructionMobile
getAllWidgetsGet all the component information in the report objectSupport
getWidgetByNameGet a component in the report object, you can get the components in the body and the widgets in the parameter pane.Support


2. Component General Interface

The component general interface is that all components in the dashboard can be used, as shown in the following table, and the detailed introduction can be seen: General components

InterfaceInstructionMobile
visibleSet component visibleSupport
invisibleSet component invisibleSupport
setVisibleSet component visible/invisibleSupport
isVisibleReturns whether the component is visibleSupport


3. Report block interface

The report block interface is used to modify the attributes of the report block component, as shown in the following table. For details, see: Report Block Component Interface

InterfaceInstructionMobile
getToolbar(index)Get the toolbar of the report block, use when the toolbar is open.Support


4. Tab component interface

The Tab component interface is used to modify the attributes of the Tab component, as shown in the following table. For details, see: Tab Component

InterfaceInstructionMobile
showCardByIndexGet the positioning index of the tab page being displayedSupport
setTabVisibleSet a tab page to visible/invisibleSupport
getShowIndexSet Tab block title to visible/invisibleSupport
setTitleVisibleShow Nth Tab PageNot support


Attachment List


Theme: 11.0 New Features
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback