Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2740

Data Binding from URL parameter.

$
0
0

I have routing set up which passes in a 'SiteId' to the next page.

 

What I want to do is read in the SiteId, then display the description of the Site in a text box....

 

In the controller I'm getting the SiteId fine, but can't seem to bind the textbox to display the info...


var oView = this.getView();

                                var sTerm = oEvent.getParameter("arguments");

 

 

                                var filters = [];

                                if (sTerm){          

                                        var oFilter = new sap.ui.model.Filter("SiteId", sap.ui.model.FilterOperator.StartsWith, sTerm);

                                        filters.push(oFilter);

                                }

 

 

                                var oInput = this.getView().byId("shopDetails");

                                console.log(oInput);

                                oInput.getBinding("testBinding").filter(filters);

 

 

The input fiels is...

 

    <Input id="shopDetails"

            testBinding="{siteset>/d/results/}"

            />

 

 

It's getting the id "shopDetails" but how do I display the results?


Viewing all articles
Browse latest Browse all 2740

Trending Articles



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