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

Re: Incremantal components in Design Studio script

$
0
0

Hi Aharon,

 

I happen to know how to realize this.

 

The key is that TILE_+variable has to be recognized as a image component.

Thus, you need to use Design Studio SDK: Component Manager to do the converison.

http://scn.sap.com/docs/DOC-61496

 

Sample code as below:

 

var iconPath=DS_1.getMembers("iconPath", 10);

iconPath.forEach(function(element, index) {

  var index2=index+1 //convert 0-indexed to 1-indexed

  var IMAGE_NAME="TILE_"+index2+"_IMAGE";

  var IMAGE_component = COMPONENTMANAGER_1.getComponentByName(IMAGE_NAME);

  COMPONENTMANAGER_1.returnAsImage(IMAGE_component).setImage(element);

}

 

Best regards,

Alfred


Viewing all articles
Browse latest Browse all 9069

Trending Articles



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