Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

Re: Router help

$
0
0

hi Michael,

i fix it your project.how i can get Login page for before launched page?

i added login page but not working.

can you help me please?

 

routing: {    config: {

    // custom router class

    routerClass : sap.ui.demo.app.MyRouter,

    // xml views

    viewType : "XML",

    // absolute path to views

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

    // unless stated otherwise, router places view in detail part

    targetAggregation : "pages",

    // don't clear the detail pages before views are added

    clearTarget : false

    },

 

    // note that routes are defined in array

    routes : [

        {

                    pattern : "",

name: "login",

view: "Login"

  ,

  targetControl: "masterView"

                },

                {

                    pattern : "",

                    name: "launchpad",

                    view: "Launchpad"

                     ,

                      targetControl: "masterView"

                },

    // routing of the main part of the application

                {

                    pattern : "split",

                    name: "app",

                    view: "App",

                    targetControl: "masterView",

        subroutes : [

                        {

            pattern : "master",

            name : "main",

            // placed in master masterPages aggregation of splitapp

            view : "Master",

            targetAggregation : "masterPages",

            targetControl : "idAppControl",

            // places detail in detailPages aggreg. of the splitapp

            subroutes : [

            {

            // product context is expected

            // and which tab should be selected (supplier/category)

            pattern : "{product}/:tab:",

            name : "product",

            view : "Detail",

                                    targetAggregation :  "detailPages"

            }

            ]

                        }

                    ]

    },

    // catchall routes, to show not found message, when route is not valid

    {

    name : "catchallMaster",

    view : "Master",

    targetAggregation : "masterPages",

    targetControl : "idAppControl",

    subroutes : [

    {

    pattern : ":all*:",

    name : "catchallDetail",

    view : "NotFound"

    }

    ]

    }

    ]

    }


Viewing all articles
Browse latest Browse all 8635

Trending Articles



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