cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

path problem sap webide fragment

0 Likes
469

Hallo,

I am trying to use fragments in WEBEIDE but it seems not to be working in my case and I don't why ..!

The fragment is in the view folder, and it is called ChoseFromMap.fragment.xml

I have tried two things :

first is

openDialog : function () { var oView = this.getView();

if (!this.pDialog) {

this.pDialog = Fragment.load({ id: oView.getId(),

name: "mta_firatm.view.ChoseFromMap",

controller: this }).then(function (oDialog) {

oView.addDependent(oDialog);

return oDialog; }); }

this.pDialog.then(function(oDialog) { oDialog.open(); }); }

the second one is :

this.pDialog = sap.ui.xmlfragment(oView.getId() , "sdn.view.ChoseFromMap", this);

//and also this.pDialog = sap.ui.xmlfragment(oView.getId() , "mta_firatm.view.ChoseFromMap", this);

this._oDialog = sap.ui.xmlfragment( oView.getId() ,"x.firatm.view.ChoseFromMap" ,this);

oView.addDependent(this._oDialog);

this._oDialog().open();

and from the manifest file

"sap.ui5": { "rootView": { "viewName": "x.firatm.view.App", "type": "XML", "async": true, "id": "app" }

//i have also tried "x.firatm.view.ChoseFromMap" as a path but it didn't work too

i think the path is wrong but i have tired almost everything

Can somebody please help me !

Accepted Solutions (0)

Answers (0)