Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Where to Access Datasource of Component

$
0
0

Hi,

 

I added databound="true" to the ColoredBox SDK component. I then added the following Init, beforeUpdate, and afterUpdate code:

 

this.init = function() {

  console.log("Init");

  console.log(this);

  this.$().addClass("coloredBox");

  this.$().click(function() {

   that.fireEvent("onclick");

  });

};

 

this.beforeUpdate = function() {

  console.log("Before Update");

  console.log(this);

}

 

this.afterUpdate = function() {

  console.log("After Update");

  console.log(this);

}

 

Then I explored the this object in the console trying to find the Dataset that is bound to the control. All I could find was the reference that DS_1 was bound to the control (DATA_SOURCE_ALIAS_REF: "DS_1"), but no dataset. My question is: How to I access the dataset, so I can use it to populate a control? I have attached the screenshots of where I found the references in the console.


Viewing all articles
Browse latest Browse all 4216

Trending Articles



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