Skip to main content
Question

Find pair of value on nested list

  • September 20, 2019
  • 1 reply
  • 21 views

alc33
Contributor
Forum|alt.badge.img+11
  • Contributor
  • 54 replies

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!

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • 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