Hi,
I took a look at the following code regarding the shell :
https://github.com/regdog/UI5-Examples/blob/master/step14.html
function getContent(id) { //check if the content is already created if (!aContent[id]) { //if not cached, define content based on id of navigation item (workset item) if (id == "wi_news_company") { aContent[id] = new sap.ui.commons.TextView({text:"This is the content for company news"}); } else if (id == "wi_news_region") { aContent[id] = new sap.ui.commons.TextView({text:"This is the content for regional news"}); } else if (id == "wi_news_enhet") { aContent[id] = new sap.ui.commons.TextView({text:"This is the content for news for your enhet"}); } else if (id == "wi_me") { aContent[id] = new sap.ui.commons.TextView({text:"This is the content of the me section"}); } else { aContent[id] = null; } } return aContent[id]; }
This example fits good for my requirement (to get to know the shell) and Florian Hafner already helped me with the question how to put the View into XML-style (How to make a good uShell design in XML-Style). But now I am confused and wonder how to response with a new view (or some other content area) that has an own file for the view and the controller. Is it possible to use a view as response (instead of the TextView)? Which control would fit best in this case?
Regards, Vanessa