Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Search Tool in SAPUI5 App

$
0
0

Hi,

 

Before I ask my question I'd like to mention that I am not too familiar with the JavaScript/Java etc. I am an ABAP person now starting to work on the SAPUI5 and Gateway.

 

So here's my question;

 

When I create SAPUI5 app and create a shell (in fact the system does it for me) there is an option to activate the Search Tool (please see below). I did that and I got the tool.

 

--------------------------------------------------------------------------------------------------------------------------------------

   createShell:function(oController){

 

                var oShell = sap.ui.ux3.Shell("ID_CostCenterShell",{

                    appIcon: "images/esri.gif",

                          appTitle: oBundle.getText("APP_TITLE"),

                          showLogoutButton:false,

                         showSearchTool: true,

                          showInspectorTool: false,

                          showFeederTool: false,

                          worksetItems: [new sap.ui.ux3.NavigationItem("navItemList",{key: "CostCenterList",text:oBundle.getText("WORKSET_TITLE")})],

 

SearchOption.jpg

 

--------------------------------------------------------------------------------------------------------------------------------------

 

I now want to be able to do a search and fire a server side code/method from here such that a code/method in my Gateway service class gets fired for the entered search criteria.

 

I could find code for a local trigger as mentioned in the Demo kit as below;

 

search:function(oEvent){

       alert("Search triggered: " + oEvent.getParameter("text"));

 

But I am looking for something that can fire a back-end search for the data entered in the search tool.

 

I've been trying to do it for sometime now but I think it's best to ask the best brains in the industry,..

 

Please help.

 

Thanks,

Sanjiv


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>