Question

Find pair of value on nested list

  • 20 September 2019
  • 1 reply
  • 2 views

Badge +1

Hi!

I would like to compare 2 datasets. I have 2 lists :

 

dataset1 = the reference

object 1 : this object have 2 attributes and 2 layers associated :

_listattrib{0}.ATTRIBUT (string) = ATT1

_listattrib{0}.LAY (string) = LAY1

_listattrib{1}.ATTRIBUT (string) = ATT2

_listattrib{1}.LAY (string) = LAY2

 

dataset2 = the data to check

object 1 :

fme_attrib_info{8}.field_name (encoded: UTF-16LE) = ATT1

fme_attrib_info{8}.layer (encoded: UTF-16LE) = LAY3

 

I would like to find if the object1 from the dataset 2, has the same attribute and layer values than in the dataset1.

Here, I would like to show that the association ATT1/LAY3 is wrong. The correct association is ATT1/LAY1.

 

I find a solution with concatation, featuremerger and listsearcher but I would like to have a more correct solution, like use a Listsearcher but with a pair of values.

 

I find something with PythonCaller but I don't use to write on Python.

https://knowledge.safe.com/questions/3825/search-nested-list-elements.html

 

Thanks!

 


1 reply

Userlevel 1
Badge +10
I find a solution with concatation, featuremerger and listsearcher but I would like to have a more correct solution, like use a Listsearcher but with a pair of values.

I'm not sure there is a more correct way without using python

Reply