title: SAPUI5 - dynamic host url datasource
body: <p>I am trying to build a cordova mobile app that will be deployed for different host url (or SAP servers).</p>
  
  <p>I am using an OData service and was able to access the OData that was created with SAP Netweaver Gateway Service Builder. I want to change the host url based on a user input.</p>
  
  <p>Here is the part on my manifest.json where I declare the datasource:</p>
  
  <pre><code>"dataSources": {
    "Main": {
      "uri": "http://myhosturl/sap/opu/odata/sap/mymainservice/",
      "type": "OData",
      "settings":{
          "odataVersion": "2.0",
          "useBatch" : true
      }
    }
  }
  </code></pre>
  
  <p>and my declaration of models:</p>
  
  <pre><code>"MainService": {
      "dataSource": "Main",
      "settings": {
        "synchronizationMode" : "None",
        "defaultBindingMode": "TwoWay",
        "serviceUrlParams": {
          "sap-client": ""
        },
        "metadataUrlParams": {
          "sap-client": ""
        }
      }
    }
  </code></pre>
  
  <p>I successfully made the sap client to be dynamic using the method getManifestEntry(). Is there a way to also change the host url at run time? </p>
  
  <p>Thanks.</p>