Skip to main content
Solved

Published Parameter in StringReplacer

  • December 5, 2018
  • 4 replies
  • 22 views

nielsgerrits
VIP
Forum|alt.badge.img+60

I probably found a discrepancy in the StringReplacer but would like to check.

In the Attributes field not only Attributes but also User Parameters are selectable. Nothing seems to happen, and I think this is correct behaviour, or am I missing something?

Checked in Workbench 2018.1.1.0

Best answer by redgeographics

FME expects that parameter to be one or more attribute names that are to be processed by the StringReplacer. If you add a source dataset and use that parameter to pick an attribute from it, it works as intended.

So FME doesn't change the value of the user parameter and the way I see it, that's expected behaviour.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3702 replies
  • Best Answer
  • December 5, 2018

FME expects that parameter to be one or more attribute names that are to be processed by the StringReplacer. If you add a source dataset and use that parameter to pick an attribute from it, it works as intended.

So FME doesn't change the value of the user parameter and the way I see it, that's expected behaviour.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • Author
  • 2940 replies
  • December 5, 2018

FME expects that parameter to be one or more attribute names that are to be processed by the StringReplacer. If you add a source dataset and use that parameter to pick an attribute from it, it works as intended.

So FME doesn't change the value of the user parameter and the way I see it, that's expected behaviour.

I understand and agree. But if you can not change the Parameters, you should not be able to be select them?


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3702 replies
  • December 5, 2018

I understand and agree. But if you can not change the Parameters, you should not be able to be select them?

You use the parameter if you want to let the user select an attribute for the StringReplacer at runtime.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • Author
  • 2940 replies
  • December 5, 2018

You use the parameter if you want to let the user select an attribute for the StringReplacer at runtime.

Ah, thanks Hans! I'm slow.