sapui5web-ide

How to change the oData version in webide


I need to change my webide oData version to v1. The apps are created with v2 version automatically.I already have backend for my app according to batch operations based on v1.so I need to use that backend for my app.Is there any way to achieve this?


Solution

  • You should be able to specify the type in your manifest.json directly and can point to ODataModel v1

    "models": {
        "": {
            "type":"sap.ui.model.odata.ODataModel",
            "dataSource":"mainService"
        }
    },