"How to loop through all values in a nominal set"
Hi everyone.
The Loop Values operator's wiki states throughout that it iterates over "all the possible values of the selected attribute".
In view of this, I expected the process
Regards,
Kurk
The Loop Values operator's wiki states throughout that it iterates over "all the possible values of the selected attribute".
In view of this, I expected the process
打印到控制台:
<宏/ >
< portSpacing端口= " sink_out 2”间隔= " 0 " / >
But it only prints
hello
world
Is there a way in which I can iterate over the entire nominal set of the attribute, even those values that do not appear in the particular data currently provided?
hello
Regards,
Kurk
Tagged:
0
Answers
unfortunately that is not possible. I think we even changed the behaviour such that unused values are ignored, because that is what the average user will expect.
The only workaround is probably to use some kind of groovy scripting with the Execute Script operator to first create a data set that contains all values in the mapping, and then loop that data set.
Best regards,
Marius
Some nominal sets are inherently defined. E.g. weekdays, months, and in some cases one needs the processing structure not to be altered by the data that happens to go through it.
It could be an "advanced parameter" so as not to bother the average user. Do you think this would be a reasonable request or is it too custom?
Regards,
Kurk
We also have such problems, but in that case again we would create a data set that contains nothing but the loop values (e.g. days of week), loop over that data set and perform the necessary steps on the other data set.
Best regards,
Marius
Just wondering: Why is there an Add operator then? For what could it be used if the set of possible nominal values is supposed to be hidden from the user?
Thanks,
Kurk
Best regards,
Marius