2017-02-13 49 views
0

我動態地向步驟添加一個嚮導。對於每一步我有一個相應的視圖,應該在運行時綁定。SAPUI5將視圖綁定到Wizardstep

任何人都可以告訴我實現它的最好方法嗎? 與片段我可以用下面的代碼:

sap.ui.xmlfragment("firstapp.flightdata.view." + wa[j].getAttribute("value"), this).placeAt(wa[j].getAttribute("id")); 

WA [j]爲當前步驟。 我應該使用路由嗎?如果是的話請 提前致謝。

Aline

回答

0

很容易。

nestedView = sap.ui.xmlview('firstapp.flightdata.view.Street'); 
this.getView().byId("page1").addContent(nestedView); 

sap.ui.xmlview('firstapp.flightdata.view.Street').placeAt(this.getView().byId("page1"));