Skip to main content

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.

You can right click the conditional value and hit duplicate.


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


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.

 


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.
@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!

 

 


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

 

 


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

 


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!
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!

 


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!

 

 


Reply