Question

swap value with criteria

  • 7 April 2020
  • 1 reply
  • 0 views

Badge

Hello

 

 

I can't find a simple solution for the scenario below:

 

if you look on the diagramm, I want to put my uuid value with fk_type=1 in the fk_parent_uuid field when fk_type=2

 

but I make a big package of spaghetti instead

 

Would you have a brilliant idea ?

 

thanks


1 reply

Userlevel 4
Badge +13

Hi @jerome If you need the attribute from the previous record then Enable Adjacent Feature Attributes in the AttributeManager.

If you need to set fk_parent_uuid to the value of uuid where fk_type_ = 1 - for all following records where fk_type = 2, then use a VariableSetter and VariableRetriever. You'll need a Tester on fk_type_ - warning! be sure to set the Advanced parameter Preserve Feature Order to 'Across Output Ports'

Reply