Jump to content

how to search element tree in spotfire and filter the elements under one folder


Enkeled Kanaj
Go to solution Solved by David Boot-Olazabal,

Recommended Posts

Hi,

 

I search in the element tree for some elements which are duplicated (multiplicated) under different folders. how to filter only that which is under my folder.

 

Any syntax? Not by property as my elements have not a defined property.

image.png.ea4b67d75e07265eb0672837350a18b8.png

Link to comment
Share on other sites

Hi Enke,

There are a few ways to search within the Information Model. I'm not sure if you would be able to use the search string as provided, but you could try to combine different search parameters to achieve what you want to.

You can do this search not only in the Information Designer, but also Library Administration Tool.
Consider the two search strings and outcomes.
I'm looking for an element with name connected.
My first search on type:column column:connected gives me the below:
image.thumb.png.c20d45c8c0206e123aef43a13a8827ed.png

 

As I want the yellow highlighted element, I need to find a way to add the parent folder.
Now consider this search string: type:column column:connected parent_id:fc03dc77-a1e3-40da-a875-1d882286659b:
image.thumb.png.00ae02a3efd65534d1bae95124a0a540.png
The parent_id is the id of the folder Group (the lowest level in my tree, as a higher level doesn't work its way down).

You can replace the id with the one of you 'Information Package' and the column connected witn Date and you should only get yours.

More information can be found here: https://docs.tibco.com/pub/sfire-analyst/14.4.0/doc/html/en-US/TIB_sfire_client/client/topics/en-US/searching_the_library.html.

Kind regards,

David

Link to comment
Share on other sites

  • Solution

Hi Enke,

I'm aware of that (you'll find a reference to both in my previous answer). Since the Library Administration Tool provides a clearer overview, I added the images from that perspective. But that might have confused you.

In any case, if you apply the same logic in the Information Designer search box, you will achieve the same:
image.png.853d816aca0c8b24b0e45086336ae4d7.png

In your use case, the search string would be type:column column:erbs parent_id:<id of folder Information Package>.

The id of the folder can be found by right-clicking on it, and select the option Copy ID:
image.png.4ddff9aa06ffc81080a5414698006de4.png

 

Kind regards,

David

  • Thanks 1
Link to comment
Share on other sites

Hi Enke,

Great that it worked out.
This construct will not work for a 'higher' parent folder. the parent_id construct is only searching within that folder.
I have tried it myself but my result set was empty.

What could be an option though, if you are the creator of only your elements, is to replace the parent_id by created_by.
That will give you this construct: type:column column:connected created_by:david.

If this is not possible in your use case, then I would advise to create an enhancement request for this in our ideas portal: https://ideas.spotfire.com.

Kind regards,

David

Link to comment
Share on other sites

Hi Enke,

The only way I can get a result back, is by searching directly for the table name, which gives me back all related elements to that table:
image.thumb.png.63899232bcd8480d57054d32ad3c4d16.png

In a similar way, if I search for item_type:datasource, it will list all available data sources.
image.png.707b7c7c1c70f236da109d25b2566e5d.png

But it seems impossible to combine them, since the item_type:datasource table:products doesn't give any results back:
image.png.999a8e8d63f97658c1a020d3c70b492d.png

So, if the table:products string would do the trick for you, I would stick to that. And you can even use wildcards like table:prod*. That would list all elements from table starting with prod.

Kind regards,

David

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...