cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.splitApp issue

0 Kudos

Hi,

I tried to create simple application according to this tutorial .

I made every think in the same way, but it is not working. It seams like splitApp is not working but why?

I suppose that only with index filed like that:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

<script id="sap-ui-bootstrap" src="resources/sap-ui-core.js" data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_bluecrystal">// <![CDATA[

// ]]></script><!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme --><script>// <![CDATA[

<script>

sap.ui.localResources("demosplitapp");

var app = new sap.m.SplitApp("splitApp",{mode : sap.m.SplitAppMode.ShowHideMode});

var master = sap.ui.view({id:"master", viewName:"demosplitapp.MasterView", type:sap.ui.core.mvc.ViewType.JS});

app.addMasterPage(master);

var detail = sap.ui.view({id:"detail", viewName:"demosplitapp.DetailView", type:sap.ui.core.mvc.ViewType.JS});

app.addDetailPage(detail);

app.placeAt("content");

// ]]></script>

should give me some result after run, like 2 containers Master and Detail.

Any idea what is the problem?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Krzysztof,

Can you share snapshot of the screen you are getting?

Regards,

Devaarth

0 Kudos

Hi Devaarth,

Sure I Can

Former Member
0 Kudos

Hi Krzystof,

Press F12 from your keyboard and open the developer console and navigate to 'console' tab on the top, you will be able to see the error you are getting.

Regards,

Devaarth

0 Kudos

I did like you said, and there is no error.

Former Member
0 Kudos

Hi Krzysztof,

I have created a working SplitApp project based on the tutorial you mentioned above.

Please have a look at the code and compare your code with it, may be you will be able to figure out the errors in your code.

https://gist.github.com/Devaarth/870c8c81872cbd9b0817a438c67c1bc9

Regards,

Devaarth

vijay_kumar49
Active Contributor
0 Kudos

You've just gave me the same page that I was posting about.

Why you think it should help me?

0 Kudos

Thank you very much. Your code really helped me.

Answers (0)