I am trying to create a SeeQ addon to search by a property which the existing Search does not allow to search by.
This code displays the search widget.
item_selector = spy.widgets.SeeqItemSelect(
'<H2>Tag Search by UID</H2>',
show_fields = ['Name'],
item_type = 'Signal',
results_box_rows = 15,
max_displayed_results = 20
)
display(item_selector)
When I enter a search term, and click the Search button, I am able to run this code to search for the results.
# Actions
def searchTagByUid(uid):
results = spy.search({
'Data ID': uid
},
all_properties = True
)
if "Name" in item_selector.search_terms:
results = searchTagByUid(item_selector.search_terms['Name'])
item_selector.search_results = results
But, on the last line, where I try to actually display the results in the Search results part of the widget, I get an error.
AttributeError: can't set attribute
Error found at line 12 in cell 44.
Is there anything I can do to actually display the results from my search query in the search results box?