Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

navigate from full view to splitapp in XML view

$
0
0

Hi Experts,

 

 

I have designed a SAPUI5 application in which I am navigating from full view to splitapp view. I am using XML view for the UI design and using the navigation and routing mechanism for achiveing the navigation.

 

I am getting a error message as "Cannot read property 'oTargetControl' of undefined" when I am trying to navigate to from full view to splitapp view. Below is the manifest.json file.

 

 

Please assist me in fixing the error.

 

Manifest.json

 

{

  "_version": "1.1.0",

  "sap.app": {

  "_version": "1.1.0",

  "id": "sap.ui.demo",

  "type": "application",

  "i18n": "i18n/i18n.properties",

  "applicationVersion": {

  "version": "1.0.0"

  },

  "title": "{{appTitle}}",

  "description": "{{appDescription}}",

  "sourceTemplate": {

  "id": "ui5template.basicSAPUI5ApplicationProject",

  "version": "1.32.0"

  }

  },

 

 

  "sap.ui": {

  "_version": "1.1.0",

  "technology": "UI5",

  "icons": {

  "icon": "",

  "favIcon": "",

  "phone": "",

  "phone@2": "",

  "tablet": "",

  "tablet@2": ""

  },

  "deviceTypes": {

  "desktop": true,

  "tablet": true,

  "phone": true

  },

  "supportedThemes": [

  "sap_hcb",

  "sap_bluecrystal"

  ]

  },

 

 

  "sap.ui5": {

  "_version": "1.1.0",

  "rootView": {

  "viewName": "sap.ui.demo.view.App",

  "type": "XML"

  },

  "dependencies": {

  "minUI5Version": "1.30.0",

  "libs": {

  "sap.ui.core": {},

  "sap.m": {},

  "sap.ui.layout": {}

  }

  },

  "contentDensities": {

  "compact": true,

  "cozy": true

  },

  "models": {

  "i18n": {

  "type": "sap.ui.model.resource.ResourceModel",

  "settings": {

  "bundleName": "sap.ui.demo.i18n.i18n"

  }

  }

  },

  "routing": {

         "config": {

            "routerClass": "sap.m.routing.Router",

            "viewType": "XML",

            "viewPath": "sap.ui.demo.view"

          

          },

         "routes": [

          {

          "pattern" : "",

          "name" : "first",

          "target" : "home1"

          },

        

          {

            "pattern": "inmysplit",

            "name": "inmysplit",

            "target": "home3",

          

    "subroutes" : [

         {

            "pattern": "masterdetail",

            "name": "masterdetail",

            "target": "home3"

         }

        

        ] }

       

       

       

        ],

         "targets": {

        

          "home1" : {

          "viewName": "Landing",

            "viewLevel" : 0,

                "controlAggregation": "pages",

                "controlId": "myapp"

        

          },

          "home2": {

               "viewName": "App1",

               "viewLevel" : 1,

                "controlAggregation": "pages",

                "controlId": "myapp"

              

            },

            "home3": {

               "viewName": "Master",

               "viewLevel" : 2,

               "controlId": "mysplit",

                "controlAggregation": "masterPages"

              

              

            }

           

         

         }

      },

  "resources": {

  "css": [{

  "uri": "css/style.css"

  }]

  }

  }

}


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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