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

How to implement the Multi Flow pattern MD to FullScreen?

$
0
0

Hi Experts,

 

I have a problem regarding implementing a multi flow pattern SAPUI5 application ( it concerns MD to Fullscreen ).

Is this possible using the component/routing mechanism?

 

I have defined 2 views as follows :

 

1 for the master details  with the name 'MasterDetail'

<mvc:View

  xmlns:mvc="sap.ui.core.mvc"

  displayBlock="true"

  xmlns="sap.m">

  <SplitApp id="splitAppId" />

</mvc:View>

 

1 for the full screen:

 

<mvc:View

  xmlns:mvc="sap.ui.core.mvc"

  displayBlock="true"

  xmlns="sap.m"

  <App id="appId" />

</mvc:View>

 

 

My component has the following routing:

 

rootView : "com.xx.tasklist.view.MasterDetail",

 

The routing configuration :

 

routing: {

 

 

 

  config : {

  routerClass : com.xx.tasklist.MyRouter,

  viewType : "XML",

  targetAggregation : "detailPages",

  viewPath : "com.xx.tasklist.view",

  clearTarget : false,

  transition: "slide"

  },

 

 

  routes : [

           {

           pattern : "",

           name : "OrderList",

           view : "OrderList",

           targetAggregation : "masterPages",

           targetControl : "splitAppId",

           viewLevel : 0,

          

          subroutes : [

                        {

                        pattern : "Order/{OrderNumber}",

                        name : "OrderDetails",

                        view : "OrderDetails",                                              

                        viewLevel : 1,

                       subroutes : [

                                     {

                                      pattern : "Operations/{OrderNumber}",

                                      name    : "Operations",

                                         view    : "Operations",

                                         viewLevel : 2,

                                         targetAggregation : "pages",

                               targetControl : "appId",

                                     }                                                                                                           

                                     ]

                        }

                        ]                     

           },

           ]

  }

 

I Have no problems with the OrderList and the OrderDetails views.

 

When i want to navigate to the Operation views :

this._oRouter.navTo("Operations", {OrderNumber : '1'}, true);

 

It fails with the the error :

Control with ID appId could not be found

 

Chrome debugger : The full screen view is not loaded

 

Any help/suggestions?

 

@PS : By another application implementing Full screen to Master Details was no problem.

 

Thanks in advance,

Regards


Viewing all articles
Browse latest Browse all 3184

Trending Articles



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