Version
| Report Server Version | App Version | Functional Change |
|---|---|---|
11.0 | 11.0 | / |
11.0.26 | 11.0.91 | Supported the APIs for the FineVis Data Visualization plugin of V2.6.0 and later versions. |
The following APIs are exclusive to mobile terminals and are available for both general report objects and FRM report objects (new version).
Note:In FVS templates, the way APIs are used remains consistent. However, API calls must be made using duchamp instead of FR.
location
| API | location(function) | It is used to implement the geolocation function and obtain longitude and latitude. This API can be used in HTTPS, WeCom, WeChat, and DingTalk environments. |
|---|---|---|
| Parameter | function(status, message, coordinate){...} | / |
| Returned Value | / | Android status: location result, which is a string
message: response message
coordinate: the coordinate system
|
| Example | Example 1: You can obtain the geographic location. If the location is successful, longitude and latitude are returned. If the location fails, an error message is returned. Example 2: In an FVS template, you can obtain the geographic location. If the location is successful, longitude and latitude are returned. If the location fails, an error message is returned. | |
| Application Scenario | You can click a button to obtain the latitude and longitude, which will be automatically filled into the corresponding cell. For details, see [App] Getting Current Geographic Location.
| |
| Mobile Terminal | This API is supported on mobile terminals. | |
Mobile.getDeviceInfo
| API | Mobile.getDeviceInfo | To obtain device information. |
|---|---|---|
| Parameter | / | / |
| Returned Value | DeviceInfo: { Model: String, DeviceID: String } | DeviceInfo: JSON object, which contains two properties Model: device model DeviceID: unique device ID |
| Example | Example 1: You can obtain information about the current device. Example 2: You can obtain information about the current device in an FVS template. | |
| Application Example | You can view device information on the mobile terminal. For details, see [App] Getting Mobile Device Information by JS.
| |
| Mobile Terminal | This API is only supported in the DataAnalyst app. | |