Skip to main content
Question

Find pair of value on nested list

  • September 20, 2019
  • 1 reply
  • 17 views

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

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

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • September 20, 2019
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


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