Skip to Content

SAP Design Studio - "Unload" a datasource

Hello dear community,

I have a question and hope that you can help me with this:

There's a method/function for datasources called "loadDatasource()". I just need a function which does the opposite of that, so something like "unloadDatasource()". Does somebody know a workaround for this or a way how I can unload a datasource?

Thanks and Regards,

Vu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Sep 26, 2017 at 01:13 PM

    Hi Vu,

    Lumira Designer 2.0 has an unloadDataSource() method. You may wish to consider upgrading if you're on DS 1.6.

    Regards,

    Mustafa.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vu,

      There is no possibility of "unloading" the data sources. Currently, when you clear the filters of a loaded data source the result of course will be that all data will be loaded. But when you say the desired result is "IF the user cancels the filterpanel (reset Filter criteriums) and applies -> that not all datasources load all data", does that mean you only want to clear the filters of SOME of the already loaded data sources, or do you mean that you simply want to preserve the current filter state upon cancellation?

      It would be helpful if you posted some screenshots of your application and described the desired results in the context of those screenshots.

      Regards,

      Mustafa.

  • Sep 26, 2017 at 01:42 PM

    Hi Pham,

    Not sure if you are trying to achieve swapping of data-source on a visualizing component basically making it dynamic.

    • DS_1
    • DS_2
    • Infochart.setdatasource(DS_1); // or DS_2 on the fly swap
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 09, 2017 at 01:29 PM

    Hi Vu,

    As Mustafa said is right there is option to no unload the data source in the script level. where you can do,

    1. reload DS

    2. clear all filter from the datasource - once you click on reset.

    Regards,

    Vidhya

    Add comment
    10|10000 characters needed characters exceeded