Skip to Content
0

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

Nov 11, 2017 at 11:35 PM

70

avatar image

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é

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

3 Answers

Tammy Powlas
Nov 12, 2017 at 10:03 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
René Hvidberg Nov 12, 2017 at 07:37 PM
0

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é

Share
10 |10000 characters needed characters left characters exceeded
René Hvidberg Feb 08 at 07:54 PM
0

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é

Share
10 |10000 characters needed characters left characters exceeded