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.
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"]