Package io.jmix.reports.yarg.loaders.impl
package io.jmix.reports.yarg.loaders.impl
-
ClassDescriptionLoads data using groovy script Script should return list of maps Example: return [['a':123, 'b':321], ['a':456, 'b':params['param1']]]Loads data from json string Uses JsonPath to access necessary parts of json object Example: JSON: { "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99, "isbn": "0-553-21311-3" } ], "bicycle": { "color": "red", "price": 19.95 } } } Query string: parameter=param1 $.store.book[*] We get json string from parameter param1 and select all "book" objects from the "store" objectLoads data from database using sql You can use aliases for output values Example: select login as "Login", password as "Password" from user where create_ts > ${startDate} ${startDate} is alias of the input parameter, which will be passed to the query