You are not logged in.

Dear visitor, welcome to Palo Community Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Reinhard

Master

  • "Reinhard" started this thread

Posts: 35

Date of registration: Feb 21st 2007

  • Send private message

1

Wednesday, May 16th 2007, 12:31pm

Clear/delete Cube Data

Hello !

is it possible to clear/delete cube data with a PALO-function or a command ? I'd like to delete cube data using vba (not going into the modeller) ?

Regards

Reinhard

  • "h_decker" is male

Posts: 763

Date of registration: Oct 26th 2005

Location: Cologne, Germany

  • Send private message

2

Wednesday, May 16th 2007, 1:46pm

RE: Clear/delete Cube Data

Hi,
I got this from the PALO-Crew. Make sure to set a reference to Jedox_Palo_XlAddin in your vba-project. You can use it to clear whole or partitial cube. I think there is nothing to delete the cube vba at this time.

Greetings from Cologne
Holger

Sub VBAClearPartialCube()

Dim obj As Jedox_Palo_XlAddin.IPaloEngineCom
Set obj = New Jedox_Palo_XlAddin.ComInterface

Dim server_database As String
Dim cube As String

Dim Years(1 To 2) As Variant
Dim subcube(1 To 6) As Variant

server_database = "localhost/Demo2"
cube = "Sales"


Years(1) = "2004"
Years(2) = "2005"

subcube(1) = Application.Run("PALO.DIMENSION_LIST_ELEMENTS", server_database, "Months")
subcube(4) = Years

returnvalue = obj.ClearPartialCube(server_database, cube, subcube)

MsgBox (returnvalue)

End Sub

Sub VBAClearWholeCube()

Dim obj As Jedox_Palo_XlAddin.IPaloEngineCom
Set obj = New Jedox_Palo_XlAddin.ComInterface

Dim server_database As String
Dim cube As String

server_database = "localhost/Demo3"
cube = "Sales"

returnvalue = obj.ClearWholeCube(server_database, cube)

MsgBox (returnvalue)

End Sub

This post has been edited 1 times, last edit by "h_decker" (May 16th 2007, 1:48pm)


Reinhard

Master

  • "Reinhard" started this thread

Posts: 35

Date of registration: Feb 21st 2007

  • Send private message

3

Wednesday, May 16th 2007, 4:48pm

RE: Clear/delete Cube Data

Hi,

thanks a lot. That is the source code I'd was looking for. I'l try it.

Regards

Reinhard

Begges

Intermediate

Posts: 12

Date of registration: Aug 8th 2007

  • Send private message

4

Wednesday, August 29th 2007, 3:52pm

Hi,

i have tried this code but it doesn't work.

Error comes up on line:
Set obj = New Jedox_Palo_XlAddin.ComInterface

In German it says:

"Das System kann die angebene Datei nicht finden"

which means, excel can't find the specified file.

Any Help? I need to clear a whole cube via VBA so these lines are important to me.

Thanks

Begges

Begges

Intermediate

Posts: 12

Date of registration: Aug 8th 2007

  • Send private message

5

Wednesday, August 29th 2007, 3:53pm

Clear/Delete Cube Data doesn't work

Hi,

i have tried this code but it doesn't work.

Error comes up on line:
Set obj = New Jedox_Palo_XlAddin.ComInterface

In German it says:

"Das System kann die angebene Datei nicht finden"

which means, excel can't find the specified file.

Any Help? I need to clear a whole cube via VBA so these lines are important to me.

Thanks

Begges

  • "h_decker" is male

Posts: 763

Date of registration: Oct 26th 2005

Location: Cologne, Germany

  • Send private message

6

Wednesday, August 29th 2007, 8:14pm

RE: Clear/Delete Cube Data doesn't work

Hi,
check the vba references for Palo_XlAddin. In german you can find it there:
Extras/Verweise
If it is not there set it manually. Its the file Jedox.Palo.XlAddin.tlb

Holger

Begges

Intermediate

Posts: 12

Date of registration: Aug 8th 2007

  • Send private message

7

Wednesday, August 29th 2007, 9:33pm

RE: Clear/Delete Cube Data doesn't work

Holger,

the references are set correctly, the debugger doesn't complain anything in the DIM line, but then in the Set obj = NEW.....

Strange....or?

Begges

  • "h_decker" is male

Posts: 763

Date of registration: Oct 26th 2005

Location: Cologne, Germany

  • Send private message

8

Friday, August 31st 2007, 12:07pm

RE: Clear/Delete Cube Data doesn't work

Hi,
I truied that out with an older palo.exe. Perhaps it does not work anymore? Got anybody else (perhaps from PALO team) an idea?

Holger

h_schmieder

Professional

  • "h_schmieder" is male

Posts: 23

Date of registration: May 24th 2006

  • Send private message

9

Monday, September 3rd 2007, 11:16am

RE: Clear/Delete Cube Data doesn't work

The exchange of palo.exe will probably not work.
What version of the excel addin do you use ?

Begges

Intermediate

Posts: 12

Date of registration: Aug 8th 2007

  • Send private message

10

Monday, September 3rd 2007, 12:45pm

RE: Clear/Delete Cube Data doesn't work

I use the 1.5 one

Begges

h_schmieder

Professional

  • "h_schmieder" is male

Posts: 23

Date of registration: May 24th 2006

  • Send private message

11

Friday, September 7th 2007, 3:32pm

RE: Clear/Delete Cube Data doesn't work

The file 'PaloConfigSchema.xml' is propably not found

Begges

Intermediate

Posts: 12

Date of registration: Aug 8th 2007

  • Send private message

12

Friday, September 7th 2007, 3:40pm

RE: Clear/Delete Cube Data doesn't work

It is in same directory as the Jedox.Palo.XlAddin.tlb, where vba references to.

Whats up with this xml file? Do i need to change something?

Begges

h_schmieder

Professional

  • "h_schmieder" is male

Posts: 23

Date of registration: May 24th 2006

  • Send private message

13

Tuesday, September 11th 2007, 10:35am

RE: Clear/Delete Cube Data doesn't work

You can try to put this file in system32.

If this doen't work, it propably doesn't work with 1.5 for you at all.

Begges

Intermediate

Posts: 12

Date of registration: Aug 8th 2007

  • Send private message

14

Tuesday, September 11th 2007, 3:50pm

RE: Clear/Delete Cube Data doesn't work

no, doesn't work.

Thanks!

Begges

Rate this thread