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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
17.1k 80 39 63

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 512.0 KiB each and 1.0 MiB total.

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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