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?