I tried to use an attribute setter set $(PublishedParameterName) = New Value however this did not work.
My workaround is to use variable setter / retriever however i would prefer not to do this.
Thanks in advance.
I tried to use an attribute setter set $(PublishedParameterName) = New Value however this did not work.
My workaround is to use variable setter / retriever however i would prefer not to do this.
Thanks in advance.
unfortunately parameters are read-only, their values cannot be changed anyhow at run-time. The VariableSetter/Retriever, as you mentioned, or a Python global variable could be a workaround.
Takashi
Example of scripted parameter
unfortunately parameters are read-only, their values cannot be changed anyhow at run-time. The VariableSetter/Retriever, as you mentioned, or a Python global variable could be a workaround.
Takashi
I tried using a VariableSetter/Retriever (to/from a Parameter) but the value is blank on retrieval. I can't use an attribute as they're lost after a FeatureWriter is executed.
And while FeatureWriters have "Additional Summary Attributes" - the value of _featuretype{0}.VariableName is empty.
I tried using a VariableSetter/Retriever (to/from a Parameter) but the value is blank on retrieval. I can't use an attribute as they're lost after a FeatureWriter is executed.
And while FeatureWriters have "Additional Summary Attributes" - the value of _featuretype{0}.VariableName is empty.
Hi @peterx The VariableRetriever has likely been triggered before the variable was set with a VariableSetter. See https://knowledge.safe.com/questions/52322/variable-setter-and-retriever-foundations.html and https://knowledge.safe.com/questions/72246/variablesetter-and-variableretriever-run-order.html for more ideas. You also might want to try the VariableGetter custom transformer which has a port for features where the variable exists and one for where the variable hasn't been set.