Skip to Content

Lumira Designer 2.0 SP02 patch 1 - DS_1.moveDimensionToRows(dimension,0) not working

Hi

I have this script DS_1.moveDimensionToRows(dimension,0) - to replace a dimension in a datasource. It works in 1.6. But in Lumira Designer 2.0 SP02 patch 1 it does not. The dimension in the datasource that need to be replaced still remains and the new dimension is placed on the right

I know there are other ways to achieve this - but this one is easy to use

Does anyone else have the same problem - or should the "0" be replaced by something else?

Thanks

René

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 12, 2017 at 10:03 AM

    Looks like there was an error in earlier releases, but it should be fixed in your version - see https://launchpad.support.sap.com/#/notes/2485708

    The note states

    "

    Symptom

    Scenario description / Incorrect Behaviour

    If a dimension is already present on the axis (e.g. columns axis), calling the datasource API moveDimensionToColumns with this dimension will throw an exception.

    The correct behaviour for this API call is to move the dimension to the last dimension position on the axis."

    But reading this thread, it still may be a bug?

    https://answers.sap.com/questions/290184/movedimensiontorows.html

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 12, 2017 at 07:37 PM

    Hi Tammy - thanks, for the reference to the note

    The API works - but before I could use the script - no error is thrown

    DS_1.moveDimensionToRows(dimension,0)

    to replace a dimension with another - so replace whatever is currently on the row axis

    (to avoid the DS_1.swapDimensions(dimension1, dimension2))

    where I need to know the dimension1

    In Lumira 2.0 SP02 patch 1 - the new dimension is added after the one that is already in the datasource

    Br

    René

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 08 at 07:54 PM

    Just received a reply for SAP

    2601643 - Script APIs moveDimensionToRows and moveDimensionToColumns behaves incorrectly in Lumira 2.x opposed to Design Studio 1.x

    The correction will be delivered by a SAP Lumira 2.1 Support Package 01

    Br

    René

    Add comment
    10|10000 characters needed characters exceeded