Default value dataset

How does a default dataset expression look like? I use a dataset as a parameter for a report and want to set this to a default value.

Unfortunately, there’s not really any way to construct a dataset in an expression. The simplest solution is to lodge your default value in a memory tag somewhere, and just reference that in the default parameter expression.

1 Like

Not really, but what do you mean by default? How complicated is it? If you just want something like a blank dataset with column names, you can do something like this:

runScript("system.dataset.toDataSet(['header1', 'header2', 'header3', 'header4'], [])"

If you need a line or two you could do that too in the same runScript function, but it may get a bit unweildy if you need to do too many there.

1 Like