You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in Spotfire Analyst, i'm able to create a new Replace Values transformation, leave the "Previous value" field blank, and enter any data type into the "Replace value with" field:
this allows me to replace (Empty) (or as it's shown here, (Empty value)) with a new value.
reproducing this with the Action Mods API is not possible. the following code fails with the error below:
Error: The argument newValue must have the same data type as the column, in this case String
Parameter name: newValue
at createReplaceValuesTransform (C:\Users\...\.js:72:15) -> const t = new ReplaceValuesTransformation(columnSignature, null, newValue);
this is repeatable with the following values: null, undefined, (Empty)
as a workaround, i was able to use the SN() function in a ReplaceColumnTransformation:
if this workaround is the desired path, it should be mentioned in the documentation for ReplaceValuesTransformation. otherwise, there should be a way to indicate (Empty) in either the originalValue or newValue parameter.
in Spotfire Analyst, i'm able to create a new Replace Values transformation, leave the "Previous value" field blank, and enter any data type into the "Replace value with" field:
this allows me to replace
(Empty)
(or as it's shown here,(Empty value)
) with a new value.reproducing this with the Action Mods API is not possible. the following code fails with the error below:
this is repeatable with the following values:
null
,undefined
,(Empty)
as a workaround, i was able to use the
SN()
function in aReplaceColumnTransformation
:if this workaround is the desired path, it should be mentioned in the documentation for
ReplaceValuesTransformation
. otherwise, there should be a way to indicate(Empty)
in either theoriginalValue
ornewValue
parameter.https://spotfiresoftware.github.io/spotfire-mods/api-docs/action-mods/classes/Spotfire.Dxp.Data.Transformations.ReplaceColumnTransformation.html
The text was updated successfully, but these errors were encountered: