Quantcast
Channel: SCN : Unanswered Discussions - SAP Fiori
Viewing all articles
Browse latest Browse all 1879

Problem in adding fragment

$
0
0

Hi experts,

 

This is the error  I am coming across.

 

"Uncaught Error: resource ActionSheet.fragment.xml could not be loaded from resources/ActionSheet.fragment.xml. Check for 'file not found' or parse errors. Reason: Not Found"

 

I have added the ActionSheet.fragment.xml file into the same folder as the .js file.

 

I am trying to create a pop up action sheet on the button click.

 

 

Here is the part of code the console is throwing this error.

 

if (!this._actionSheet) {

this._actionSheet = sap.ui.xmlfragment(

  "sap.m.sample.ActionSheet.ActionSheet",

  this

  );

  this.getView().addDependent(this._actionSheet);

  }

 

Any solution for this?

 

Thanks,

Chirag


Viewing all articles
Browse latest Browse all 1879


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>