Hello all,
I'm trying to create a slightly modified version of the standard custom.search widget. In the original widget you can choose a specific search query in the configure tab in Perspective Manager and the widget will get the query_id of that search query and display a search form with the related attributes. However when I try this with my own widget it looks the same in perspective manager, but the query_id is not available in the widget. In the original widget it is passed as a parameter to the constructor of the top-level view in the options object (i.e options.data.savedSearchQueryId) but not in mine. I've replicated the manifest file from the custom.search widget, and it looks like this:
{
"$schema": "http://opentext.com/cs/json-schema/draft-04/schema#",
"title": "Search Form",
"description": "Shows form for a search query, and reroutes to result page when form is submitted",
"kind": "tile",
"schema": {
"type": "object",
"properties": {
"savedSearchQueryId": {
"title": "Query",
"description": "The query to display in search form",
"type": "string"
}
},
"required": [
"savedSearchQueryId"
]
},
"options": {
"fields": {
"savedSearchQueryId": {
"type": "otcs_node_picker",
"type_control": {
"parameters": {
"select_types": [258]
}
}
}
}
}
}
What more is needed for this to work?
EDIT: Today when i logged in it suddenly worked. I'm guessing it was some sort of caching issue in CS.