Collapse event

Discussion forum for PivotCubeX component. Common usage questions. Bug and problem reports

Moderator: Alex Zencovich

Collapse event

Postby fabiano » Mon Aug 07, 2006 5:31 pm

Exist collapse and expand dimension in cube equal MS Treeview?

I need status display if user click in + or - in cube dimension.
fabiano
User
 
Posts: 16
Joined: Fri Jul 07, 2006 8:04 pm

Postby AlexZencovich » Tue Aug 08, 2006 6:32 am

There is RowHeaderClick(DblCLick) and ColumnHeaderClick(DBlClick) events which provide object where you can obtain status information.

VCL has a better set of functionality (OnBeforeRowExpand(Collapse) etc
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby fabiano » Fri Aug 11, 2006 2:22 pm

Procedure RowHeaderClick
LPARAMETERS x, y, cell

local p1,p2,p3,p4,p5,p6
store 0 to p1,p2,p3,p5,p6
p4=""
this.mapgetRowCellInfo(cell.index,@p1,@p2,@p3,@p4,@p5,@p6)
thisform.botoes.lblcobertura.caption="[ "+alltrim(str(p5,10))+" ]"
return .t.

P5 return 0 if user no expand node first time. Then i need OnBeforeRowExpand in pivotcubex for show P5 this event or P5 return correct value no expand node first.

Tanks
fabiano
User
 
Posts: 16
Joined: Fri Jul 07, 2006 8:04 pm

Postby fabiano » Tue Aug 29, 2006 10:42 pm

I wait new relase? Or this no future plan?
fabiano
User
 
Posts: 16
Joined: Fri Jul 07, 2006 8:04 pm

Postby AlexZencovich » Wed Aug 30, 2006 6:30 am

I have no idea what you ask. I have no time to parse your code just to understand what you ask.
I have provided for you answer how to perform this. There is all functionality what exists. If you have question please write your questions in correct form.
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby fabiano » Wed Sep 13, 2006 3:51 pm

I need see total rown in node. I use "RowHeaderClick" for trigger "mapgetRowCellInfo", but if never expand this node, "mapgetRowCellInfo" return 0.

User expand node after click, then "mapgetRowCellInfo" return correct value.

This is the problem.
fabiano
User
 
Posts: 16
Joined: Fri Jul 07, 2006 8:04 pm

Postby AlexZencovich » Wed Sep 13, 2006 4:06 pm

It is right. Until user not click to expand there are not rows inside collapsed node. They will calculated on demand, because it is impossible to know how much records will inside due to filters, dimensions hierarchy etc.
You should emulate expand/collapse if you need to know with calls to PCX.CubeIntf._ExpandRow or _ExpandColumn
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am


Return to PivotCube ActiveX

Who is online

Users browsing this forum: No registered users and 3 guests

cron