Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

DS1.3 Sp2 SDK + sap.ui5 elements

$
0
0

Hello,

 

I am trying to write (and to ramp up) on Design Studio Plugin creation and facing a small problem ... that is driving me crazy.

I tried to create a additional property sheet with some combo box in it, with the sap.ui.commons.ComboBox class.

 

The thing is: whenever I try to create a new instance of these objects (Layout, combobox, whatever ...), nothing happens.

 

I tried to debug my script with some alert and it stop before I create the new object.

I am pretty sure it is a really tiny thing blocking me, but I couldn't find any information on how to resolve it (code 18).

 

Here is my js:

this.init = function() {

  // Init

 

  alert("init");

  this._content = new sap.ui.commons.layout.VerticalLayout({

  width : "100%"

  });

 

 

  this.comboSelChar = new sap.ui.commons.ComboBox("comboSelChar");

 

  alert(this.comboSelChar);

 

  this.comboSelChar.attachChange(function(){

  that.selChar = that.comboSelChar.getSelectedKey();

  that.firePropertiesChanged(["selChar"]);

  });

 

  this.comboSelChar.setTooltip("Select the Dropdown characteristic");

 

  this.comboSelChar.setDisplaySecondaryValues(true);

 

  this._content.addContent(new sap.ui.commons.TextView({text : "Dropdown source char"}));

  this._content.addContent(this.comboSelChar);

 

  this._content.placeAt($("#content"));

 

  alert(this._content);

 

  //this.updateProps();

  //this.rendered = true;

  };

In DS, when I click on my element, only the first alert ("Init") is triggered.

 

I based my developments on the Utility pack 1.3, and it seems to work perfectly ... but the almost same code in my plugin give me a blank page in the addionnal properties ...

 

Thank you for your help.


Viewing all articles
Browse latest Browse all 4041

Trending Articles



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