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.
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
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)
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
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
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
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
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
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
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 ?
RE: Clear/Delete Cube Data doesn't work
RE: Clear/Delete Cube Data doesn't work
The file 'PaloConfigSchema.xml' is propably not found
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
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.
RE: Clear/Delete Cube Data doesn't work
no, doesn't work.
Thanks!
Begges