question

Upvotes
Accepted

How can I get the list of all RCSAssetTypeGenealogy and RCSAssetTypeName?

df_Container = rdp.search(
    view = rdp.SearchViews.PhysicalAssets,
    filter = "RCSAssetTypeGenealogy eq 'F:2X'",
    select = 'DocumentTitle,RIC,RCSAssetType,RCSAssetTypeGenealogy,RCSAssetTypeName,DWT,RCSFlag,RCSFlagName,AssetId',
    top = 10000,
    )

The client would like to use search for vessels, I check with rsearch() builder in Eikon Excel to get 'F:2X' for container.

Anyway, could it possible to get a list of all possible value of RCSAssetTypeGenealogy and RCSAssetTypeName ? Do we have any document for this?


Thank you very much.

Vetit S.

refinitiv-data-platformrefinitiv-data-platform-libraries
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
9.7k 49 38 60

Hi @vaetit.sirasupprakchai1

I would recommend you review the Search Article within the Developer Community. The article contains some valuable guidance, links to some documentation, and many examples, including Navigators, which is what you are after.

For your specific use case, try this:

response = rdp.Search.search(
    top = 0,
    navigators = "RCSAssetTypeGenealogy"
)
response.data.raw["Navigators"]["RCSAssetTypeGenealogy"]["Buckets"]

Which will list all available codes. You can also see a named list of these codes:

response = rdp.Search.search(
    top = 0,
    navigators = "RCSAssetTypeLeaf"
)
response.data.raw["Navigators"]["RCSAssetTypeLeaf"]["Buckets"]
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

@nick.zincone Thank you very much for your answer.

Click below to post an Idea Post Idea