Skip to main content
Solved

Is it possible to copy/paste conditional statements in AttributeManager?

  • July 11, 2017
  • 10 replies
  • 88 views

aaron
Contributor
Forum|alt.badge.img+12

Is it possible to copy/paste conditional statements in AttributeManager? I have three attributes that I want to calculate values for in AttributeManager. All three are based on the same conditional statement. Is it possible to set up the conditional statement for one attribute and then copy/paste it into the other attributes (under Attribute Value)? The conditional statement has six conditions (A or B or C or D or E or F) and I might change it later so it would be easier and reduce mistakes to be able to copy/paste rather than recreate/change it three times.

Best answer by stalknecht

You can right click the conditional value and hit duplicate.

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.

10 replies

stalknecht
Contributor
Forum|alt.badge.img+22
  • Contributor
  • Best Answer
  • July 11, 2017

You can right click the conditional value and hit duplicate.


takashi
Celebrity
  • July 11, 2017

Unfortunately the current FME Workbench doesn't have your desired functionality. I also wish that. Up vote these Ideas!


takashi
Celebrity
  • July 11, 2017

Unfortunately the current FME Workbench doesn't have your desired functionality. I also wish that. Up vote these Ideas!

@stalknecht is right. Within the same transformer, you can duplicate any value setting including a conditional value. I meant a case to copy the value setting to other transformers.

 


aaron
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • July 12, 2017

You can right click the conditional value and hit duplicate.

This works if you want copy the conditional statement to a new field. It does not work for existing fields, which is what I need it for. For instance, say I have two attributes - Attribute1 and Attribute2. if I set up a conditional statement for Attribute1, I do not see a way to copy the conditional statement to Attribute2. However, if I use Duplicate then the conditional statement is copied and I can create and apply the conditional statement to a new attribute, Attribute3, that I can enter under Output Attribute.

aaron
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • July 12, 2017
@stalknecht is right. Within the same transformer, you can duplicate any value setting including a conditional value. I meant a case to copy the value setting to other transformers.

 

I don't see a way to copy a conditional statement to an existing attribute, only to a new one (see below). By all means correct me if I am missing something!

 

 


stalknecht
Contributor
Forum|alt.badge.img+22
  • Contributor
  • July 12, 2017
This works if you want copy the conditional statement to a new field. It does not work for existing fields, which is what I need it for. For instance, say I have two attributes - Attribute1 and Attribute2. if I set up a conditional statement for Attribute1, I do not see a way to copy the conditional statement to Attribute2. However, if I use Duplicate then the conditional statement is copied and I can create and apply the conditional statement to a new attribute, Attribute3, that I can enter under Output Attribute.
If you change the order then you can use the outcome to set the value on the existing attribute

 

 


stalknecht
Contributor
Forum|alt.badge.img+22
  • Contributor
  • July 12, 2017
I don't see a way to copy a conditional statement to an existing attribute, only to a new one (see below). By all means correct me if I am missing something!

 

 

If you change the order then you can use the outcome to set the value on the existing attribute

 


aaron
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • July 12, 2017
If you change the order then you can use the outcome to set the value on the existing attribute

 

That's a clever workaround, @stalknecht! I think I'll be able to use it. At the same time, it would be nice if Safe could add copy/paste of conditional statements to existing fields so a workaround was unnecessary. Hopefully soon!

aaron
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • July 12, 2017
If you change the order then you can use the outcome to set the value on the existing attribute

 

 

That's a clever workaround, @stalknecht! I think I'll be able to use it. At the same time, it would be nice if Safe could add copy/paste of conditional statements to existing fields so a workaround was unnecessary. Hopefully soon!

 


stalknecht
Contributor
Forum|alt.badge.img+22
  • Contributor
  • July 12, 2017
That's a clever workaround, @stalknecht! I think I'll be able to use it. At the same time, it would be nice if Safe could add copy/paste of conditional statements to existing fields so a workaround was unnecessary. Hopefully soon!
I agree you should post an idea on the idea forum!