on ‎2021 Jan 03 9:57 PM
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 !
Request clarification before answering.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.