In this blog, we have given details of all the formData expressions that can be used in the dynamic query view.
Dynamic query essentially implies that the query is generated at runtime depending on the user inputs.This can be achieved by adding a dynamic logic/groovy script using which end user can use the filters, formdata expressions and groovy user session variables on runtime.
Adhoc report can be created using metadata with dynamic view where in report inputs will be taken from either metadata or from report or from both.
A report with dynamic view gives the better query performance in report along with runtime sql query execution.
formData contains adhoc report formdata with all details of report, metadata, tables, colums, filters info etc. used in adhoc report.
Expression | formData |
Description |
formData returns adhoc report formdata with all details of report ,metadata,tables.colums,filters info etc. used in adhoc report.
With (.) dot notation end user can fetch required information from formData. For Ex. return formData In adhoc report ,based on the created report it will return the respective formdata. Output: { "location": "1592388157915", It returns formdata data in json format. Note : formdata specific information can be retrieved by (.) dot notation. Example : return formData.location 1463377807724/1463377836985/1591703058466 This way end user can utilize required formdata information. |
For further assistance, kindly contact us on support@helicalinsight.com or post your queries at Helical Forum