Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 24, 2017 at 12:49 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 24, 2017 at 12:28 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2017 at 01:56 PM

    Thank you very much for the quick answers.

    Add comment
    10|10000 characters needed characters exceeded