Help me get data from list

I have this list. and I want to get the list in red rectange. tks all
image

List.GetItemAtIndex node will do the trick.

I used to use by level but I want to get most data of DEN TUBE LED 1200,

image
i WANT TO GET ALL PARAMETER OF DEN TUBE LED 1200

Because there are a lot of DEN TUBE LED 1200 mixed with my list. and i want to get only data of this list . :frowning:

image

Ah, so you want ALL sublists which start with “DEN TUBE LED 1200”.

  • List.FirstItem node with longest lacing.
  • == node to test if that value is “DEN TUBE LED 1200”.
  • List.FilterByBoolMask node to filter the original list of all data sets (your current watch node) by the mask result of the == node.

2 Likes

Yep. Sir. But when I use your method . it shows only short list not enough :frowning:

Try using a List.GroupByKey after the List.FirstItem node where the group and the list are the same. If you think you should have more data than you’re getting it’s possible that you have some bad data (ie: an extra ’ ’ at the end of the value) which you’ll have to deal with.

1 Like

Dear Sir. your method worked very good. many thank sir !

because i forgot convert to list before get data.now it is ok. thank sir so much!

1 Like

Oh. seem it is still not ok ?

Right click on List.FirstItem and change lacing to Longest
long

2 Likes

Think you’ll need to get rid of the extra List.Create too, but I may be wrong.

1 Like

Can you explain for me the purpose of this option ?

Starts about 7 minute mark. You should likely review the whole series (8 episodes so far), and review the Dynamo Primer (skip nothing, do every exercise even if you don’t need the outcome - they are designed to teach you the methods not produce results).

2 Likes

A quick example of the difference with reference to List.FirstItem (Auto and Longest)
longest

1 Like

Yes’ It worked . I use level at List.Firstpattern.as lacing by longest option
like this