Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Fiori & sap.ui.commons library

$
0
0

Hi,

 

We are trying to extend a Fiori project using the Fiori extension toolkit.

We are trying to use a sap.ui.commons component (Panel) and it is not letting us due to reference errors.

 

First we tried this:

<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc"

  xmlns:com="sap.ui.commons" xmlns="sap.m" xmlns:ui="sap.ui.layout"

  controllerName="cus.crm.opportunity.view.S4" xmlns:ca="sap.ca.ui"

  xmlns:html="http://www.w3.org/1999/xhtml">

....

<com:Panel>

  <content>

  <Table>

  blah

  </Table>

  </content>

</com:Panel>

....

</core>

 

We get an error failed to load sap.m library

1.png

 

Then we tried to change the Component.js to reference sap.ui.commons:

 

  1. cus.crm.opportunity.Component

            .extend(

                        "abc.crm.opportunity.CRM_OPPRTNTY_Extension.Component",

                        {

                              metadata : {

                                    dependencies : {

                                    libs : ["sap.ui.commons"],

                                    components : []

                                },

The problem still exist.

 

Any ideas?

 

Tags edited by: Michael Appleby


Viewing all articles
Browse latest Browse all 9236

Trending Articles



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