cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member234401
Active Participant
0 Kudos

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é

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member234401
Active Participant
0 Kudos

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é

former_member234401
Active Participant
0 Kudos

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é

TammyPowlas
Active Contributor
0 Kudos

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