Milan Jankovic Posted July 27, 2020 Share Posted July 27, 2020 ## I am reading the Library list by script: lb = Application.GetService[LibraryManager]() items = lb.Search("type:dxp", LibraryItemRetrievalOption.IncludePath, LibraryItemRetrievalOption.IncludeProperties) for item in items: guid = item.Id path = item.Path analysis = item.Title description = item.Description ## I cannot get Keywords by: Keywords = Item.Keywords # Error: 'LibraryItem' object has no attribute 'Keywords' ## Please note that I cannot use the script below which returns Keyword of the active report (not the keywords of the analysis read from the library): for prop in Document.Data.Properties.GetProperties(DataPropertyClass.Document): if str(prop.Name).rstrip() == 'Keywords': keywords = str(prop.Value) Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted July 27, 2020 Share Posted July 27, 2020 Try the following, item.Properties.Keywordshttps://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a... https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a... Link to comment Share on other sites More sharing options...
Milan Jankovic Posted July 27, 2020 Author Share Posted July 27, 2020 Thank you for your quick answer, the problem with that syntax is output: but I am expecting (example): List[str](['keyword_1', 'keyword_2']) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now