Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to consume new control


I want to consume new ui5 control which I created in the WebIDE,

The new created control is in done like following in js File under IDEplatform package with name TestNewControl.js


    function(coreControl) {


        return coreControll.extend("myControl", {

            metadata: {



Now I want to consume it from different package/layer/plugin in the web IDE lets say for example platform but any other package that are not related to my plugin, like saptoolset which is

I try tp consume this control on different module


sap.ui.jsfragment("sap.watt.saptoolsets.fiori.test.plugin.test1.view.Ui", {

//And then I call to the new control like

var aa = new sap.watt.ideplatform.plugin.test.controls.TestNewControl({

            labelView: oLabelView,

            textView: oTextView


but this is not working,I got error and it seems that the new control is not knowen on diffrent package layer,

How it can be done?

Former Member
Not what you were looking for? View more on this topic or Ask a question