Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Created by Guest
Created on Apr 12, 2019

Default value for optional parameters in data functions

When an optional parameter is used, I have to test in the data function whether the parameter is set using is.null() and assign it a default value. e.g.

if(is.null(optPar)) {optPar = "something}

because otherwise the code usually fails because you cannot do lots of operations sensibly with null values, like comparisons.

This is not a big deal, but if would be nice to have the possibility to assign a default value for optional parameters in case they are set to None in the data function parameters dialog. That way, one could avoid the code as stated above.

  • Attach files