Skip to Content
0

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

Nov 24, 2017 at 10:05 AM

62

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Mustafa Bensan Nov 24, 2017 at 12:49 PM
1

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.

Share
10 |10000 characters needed characters left characters exceeded
Tammy Powlas
Nov 24, 2017 at 12:28 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 24, 2017 at 01:56 PM
0

Thank you very much for the quick answers.

Share
10 |10000 characters needed characters left characters exceeded