cancel
Showing results for 
Search instead for 
Did you mean: 

Ist is it possible to list/iterate all datasources in script

0 Kudos

Hello,

I would like to iterate all datasources (in a generic way) in Design Studio/Lumira Designer scripting. Therefore I am wondering if it is possible to list all datasources in Design Studio/Lumira Designer scripts.

Kindly regards

Peter

Accepted Solutions (0)

Answers (3)

Answers (3)

MustafaBensan
Active Contributor

Hi Peter,

It is not possible to do this with standard Design Studio / Lumira Designer. You can do this using the Component Manager from the SCN Lumira Designer 2.0 SDK Components with script code like this:

var myDataSources = COMPONENTMANAGER_1.listAllDataSources();

myDataSources.forEach(function(dataSource, index) {
  LISTBOX_1.addItem(dataSource.name, dataSource.name);
});

Regards,

Mustafa.

0 Kudos

Thank you very much for the quick answers.

TammyPowlas
Active Contributor
0 Kudos

Searching, I found this - https://blogs.sap.com/2014/11/26/global-scripting-in-design-studio-14/ by Eshwar - not sure if that meets your requirements