Skip to Content
avatar image
Former Member

Design Studio: Setting binding in script

Hi everyone,

I was wondering: Is there a way to set the value of data binding options in script? In my particular case, I would like to populate a listbox with available report keyfigures using data binding, however my datasource is loaded per script and hence I do not know the name of the measures dimension until runtime. I have been looking for methods in BIAL but haven't been successful.

I know that I may just as well use script to populate the listbox (it's what I'm doing right now), but then I also need to take care of all the various event handlers to update the listbox when necessary.

Regards, Tilman

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Oct 21, 2016 at 12:13 PM

    Does it need to be a script? Why not use an out of the box filter panel or dimension filter which shows the key figures?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 24, 2016 at 06:58 PM

    Usability considerations. We gathered feedback that users find the concept of key figures being a filter on a measures dimension not very intuitive, hence the idea with the listbox.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 24, 2016 at 07:24 PM

    Franck Blais has code for this in this thread - search for Franck: https://archive.sap.com/discussions/thread/3277787

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 01, 2016 at 12:11 PM

    my current approach is actually the same as his. However, it requires me to listen to the datasource's onResultChange event and rebuild the list (in order to be in sync once someone might change the report manually), while binding would do this for me already.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2016 at 05:28 AM

    Hi Tilman,

    Property binding via script is currently not supported. There is a post in the Design Studio Idea Place requesting the desired functionality you have described: Enable Property-Binding to be changed via script

    Regards,

    Mustafa.

    Add comment
    10|10000 characters needed characters exceeded