Skip to main content
Archived

Add <thisAttributeName> as operator to Attribute transformers

Related products:Transformers
  • March 8, 2021
  • 2 replies
  • 39 views

maryse_bucking
Forum|alt.badge.img

Often I need to recalculate attributes based on its own values. Sometimes the fields are basically the same, and therefore the formula is the same. But because the AttributeFieldName is different, every time I copy the formula, I also need to adjust for the changing fieldname. Which can easily introduce errors, especially when you have a lot of fields.

Why not have an operator which specifies the value of the current field. That way in the AttributeManager would look something like:

FieldA conditional value

if <thisAttributeName> has a value then @Value(<thisAttributeName>)

else if 10<@Value(CheckField) then 'G'

else null


FieldB conditional value

if <thisAttributeName> has a value then @Value(<thisAttributeName>)

else if 11<@Value(CheckField) then 'G'

else null


instead of:

FieldA conditional value

if FieldA has a value then @Value(FieldA )

else if 10<@Value(CheckField) then 'G'

else null


FieldB conditional value

if FieldB has a value then @Value(FieldB )

else if 11<@Value(CheckField) then 'G'

else null

2 replies

ebygomm
Evangelist
Forum|alt.badge.img+51
  • Evangelist
  • March 10, 2021

This is already possible by using @CurrentAttribute()


LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • April 5, 2025
OpenArchived