![]() |
Problem with CXTPReportControl |
Post Reply
|
| Author | |
WilliamGS
Newbie
Joined: 18 April 2005 Location: Peru Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem with CXTPReportControlPosted: 30 November 2005 at 1:42pm |
|
Hello, I have a CXTPReportControl and several records have children records, I am using: pReportCtrl->GetRecords()->RemoveAll(); to empty the report, but it does not work with child records, only works fine if there are not child records. Is there another way to empty a CXTPReportControl with nested records? I have XTP 9.6 Thanks in advance, William GS |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2005 at 3:22pm |
|
Hi,
See also http://forum.codejock.com/forum_posts.asp?TID=3051 -- that should be working in latest versions for child records also. Anyway, you can recursively traverse all records by yourself and delete all children manually. -- WBR, Serge |
|
![]() |
|
WilliamGS
Newbie
Joined: 18 April 2005 Location: Peru Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2005 at 4:22pm |
|
HI, I have a function that recursively traverse all records and delete children, but is does not work with nested records, this is my code:
COrgReportCtrlBase is derived from CXTPReportControl. Thanks, William GS |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 December 2005 at 5:00am |
|
You don't need any recursively traverse. Memory will be released automatically: CXTPReportRecord::~CXTPReportRecord(void) if (m_pChildren)
May be you forgot to call Populate() ? |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
WilliamGS
Newbie
Joined: 18 April 2005 Location: Peru Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 December 2005 at 10:55am |
|
It does not work too, 'm_pChildren->InternalRelease()' gives a fatal error. I am trying to delete records and put new, but the old nested records appears mixed with the new records; only the nested records remains. Is it a bug? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 December 2005 at 12:52am |
|
Hello, sure you make something in your code. to find what you do wrong need to see your sources, please attach project in issuetrack.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |