Skip to main content
Solved

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


aaron
Contributor
Forum|alt.badge.img+10
  • Contributor

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.

View original
Did this help you find an answer to your question?

10 replies

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

You can right click the conditional value and hit duplicate.


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • July 11, 2017

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


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • July 11, 2017
takashi wrote:

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+10
  • Author
  • Contributor
  • July 12, 2017
stalknecht wrote:

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+10
  • Author
  • Contributor
  • July 12, 2017
takashi wrote:
@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+19
  • Contributor
  • July 12, 2017
aaron wrote:
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+19
  • Contributor
  • July 12, 2017
aaron wrote:
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+10
  • Author
  • Contributor
  • July 12, 2017
stalknecht wrote:
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+10
  • Author
  • Contributor
  • July 12, 2017
stalknecht wrote:
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+19
  • Contributor
  • July 12, 2017
aaron wrote:
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!

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings