Skip to Content
author's profile photo Former Member
Former Member

Implement Splitapp in Webide

Hi Friends,

I'm new to the world of SAPUI5. I'm trying to simulate the master-detail template using SplitApp in webide. But I'm even unable to achieve the first step - I'm unable to make the SplitApp container work. I mean the container shows a page like below -

But it's not using my Master and detail pages, I believe this is just the default structure of SplitApp.

For testing I put some content in the master and detail pages, but they are not appearing.

This is the file structure:

I'm attaching the manifest.json code in notepad.

I know it's too much to ask, but I'll be really grateful if you help me resolve this. I have found many examples of using SplitApp in google, but they all are using Javascript view in Eclipse. I need to do it in webide with XML view.

Thanks,

Sarif

Manifest.txt.zip (1.1 kB)
splitapp.PNG (82.5 kB)
tree.PNG (13.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 24, 2016 at 06:33 PM

    since you did not provide the App.view.xml source, i cannot confirm what the id for the <SplitApp id="???"/> tag is. make sure it corresponds to the 'controlId' property value you set for the router as below:-


    "routing": {

    "config": {

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

    "viewType": "XML",

    "viewPath": "com.md1.view",

    "controlId": "idAppControl",

    ...

    ...



    also check if you have initialize() the Router in 'init' method of Component.js

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2016 at 01:59 AM

    Manifest.json looks good, As Chia mentioned you need to have the App.xml code also,

    Make sure the App.XML has this ID maintained.

    check the below code.

    <mvc:View controllerName="com.md1.app"
    xmlns:html="http://www.w3.org/1999/xhtml"
    xmlns:mvc="sap.ui.core.mvc"
    xmlns="sap.m">

    <SplitApp id="idAppControl">
    </SplitApp>

    </mvc:View>

    Hope this will solve your problem.

    thank you!

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Amar,

      Thanks for the response. I've already maintained the same SpliApp id in App view:

      <mvc:View

      xmlns:core="sap.ui.core"

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

      xmlns="sap.m"

      controllerName="com.md1.controller.App"

      xmlns:html="http://www.w3.org/1999/xhtml">

      <SplitApp id = "idAppControl"/>


      </mvc:View>

      Also in debugger I cannot see any error message. Do you think there may be some other issue?

      Thanks,

      Sarif

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.