on 2017 Nov 11 11:35 PM
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é
Request clarification before answering.
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é
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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é
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
"
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
63 | |
8 | |
7 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.