launch query when VisualForce page loaded
I'm sure this is an easy one to answer.
I currently have a page with several CoveoTabs. I want to remove all the tabs but still query launch a query that was associated with one of the tabs when the page is loaded. Basically, the goal is to create a separate VisualForce page for each tab since we are redesigning the Web site.
Here is one of the tabs.
<a class="CoveoTab" data-id="Cases_WorkNotes" data-caption="Cases - Work Notes" data-expression='@syssource=("Salesforce - Cases - Worknotes") AND (@objecttype=Case OR (@objecttype=WorkNotesC AND @sfworknotescpublishc==("1", "2")))' data-icon="fa fa-briefcase"></a>
Basically, how do emulate the action of the CoveoTab ?
I am wondering if it would be more convenient to simply re brand/design the âtab/headerâ and have display your "buttons", this would help avoid having to maintain multiple Visualforce pages. From your Index page, you would simply have to redirect towards the âtabbed pageâ with the search result.
In order to add a standalone searchbox you can refer to https://developers.coveo.com/display/public/JsSearch/Adding+a+Standalone+Search+Box.
Redesigning (adding images and changing the CSS style) of the tab should be much simpler.