Skip to Content
avatar image
Former Member

Want to navigate from one page to another

I want to navigate to another page after clicking a button on the first page but it shows nothing on the screen when I run in code in SAP WebIDE . It shows a light blue screen all around.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 06, 2017 at 12:48 PM

    Check the browser javascript console for an error.

    Regards,

    Jamie

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 09, 2017 at 06:40 AM

    Hi Swapnil,

    As in your manifest.json file you didn't defined routing for bookpage, define it in routes as well in targets

    "routing": {
    		"config": {
    				"routerClass": "sap.m.routing.Router",
    				"viewType": "XML",
    				"viewPath": "MyMovieApp.view",
    				"controlId": "app",
    				"controlAggregation": "pages",
    				"transition":"slide"
    			},
    			"routes": [
    				{
    					"pattern": "",
    					"name": "appHome",
    					"target": "home"
    				},
    				{
    					"pattern": "bookMovie",
    					"name": "bookpage",
    					"target": "bookMoviePage"
    				}
    			],
    			"targets": {
    				"home": {
    					"viewName": "View1",
    					"viewLevel": 1
    				},
    				"bookMoviePage": {
    					"viewName": "BookMoviePage",
    					"viewLevel": 2
    				}
    			}
    		}
    

    Regards,

    Vedaradhya.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 10, 2017 at 08:54 AM

    Are you using routing/event bus or normal navigation using sap.m.app methods. Depending on that, check where the call is being made to navigate. Maybe your view is not getting accessed properly.

    Add comment
    10|10000 characters needed characters exceeded