In spagoBI there are many ways to create a data set: script (using Groovy or Javascript), data base query but I want to create a script data set based on the data base query result
For example if my data base query result returns: "ON" My script returns a value incremented by one comparing to the last value returned if the DB query returns OFF, the script value will be decremented by 1
Any ideas how to get data base query results in a Groovy or Javascript script to create a SpagoBI data set?