Accessing the "searchProvider" Contract

As a prerequisite, you have to consume the searchProvider contract in the CHIP definition XML.

The searchProvider property is then available in the CHIP API object. It provides the method chip.searchProvider.addSearchProvider() for adding a search provider.

Example: Code Example

var oChipApi = this.getView().getViewData().chip;
oChipApi.searchProvider.addSearchProvider("http://foo.sap.corp/searchProvider.xml");