cancel
Showing results for 
Search instead for 
Did you mean: 

Moving Dimension to another Class with Designer SDK

Former Member
0 Kudos

Hi all,

I want to move one dimension from one class to another class of the universe (in this case, it's root class). I tried with the Add method, but it creates a empty new object, but I need the original one, with all its attributes, detail objects, etc.

Any help would be appreciate.

André

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

Which version?

XI Release 2 Service Pack 5 or XI 3.1 Service Pack 2 introduces the new methods:

Class.Move(String className, int position)

Object.Move(String className, int position)

that allows you to move a Class or Object to a different Class, or to a different position within the same class.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Hi.

I did the settings necessary to see this method now. (BO XI 3.1 SP2).

When I try to call the method this way:

....

Dim Obj as Designer.Class

...

Call Obj.Move("Material",1)

I get the following error:

VBA Project - 438"Object doesn't support this property or method"

What Am I doing wrong?

Thanks

ted_ueda
Employee
Employee
0 Kudos

Not enough info.

I would open a Support Message with SAP.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Hi.

Thanks for the help.

I developed other functions to do the thing I wanted without using this function.

André

ted_ueda
Employee
Employee
0 Kudos

Happy to hear you've found an alternative.

One warning for anyone else reading this thread:

One of the features of the Move method is that it retains the Object ID value. The ID value is what's used by Web Intelligence or Desktop Intelligence to refer to the Object (and not it's Class/Object path). So using Move won't break any docs already using the Universe.

If you try recreating an Object - even with the same name or even yet with the same path - the ID value for it will not stay the same. There's no programmatic control over the ID value. So this ususally leads to reports breaking, and you have to go in and modify the reports to remap to the correct Object.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Ted, could you please send some code exemplifing the use of the Move method?

Thanks

André

Edited by: André Rodrigues on Sep 17, 2009 6:24 PM

Answers (0)