Print Page | Close Window

Bug report on mixing AddRecord & AddRecordEx

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18371
Printed Date: 29 September 2024 at 3:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug report on mixing AddRecord & AddRecordEx
Posted By: apautrot
Subject: Bug report on mixing AddRecord & AddRecordEx
Date Posted: 14 May 2011 at 5:05am
I repost this message, the thread being closed :

-----

I have many troubles when mixing AddRecord & AddRecordEx. I discover that AddRecord is a lot faster than AddRecordEx ( ..., NULL ). But there is troubles when mixing them :

I have an ASSERT in CXTPReportRows::CompareRows2 :

if (pRecord1->GetIndex() == pRecord2->GetIndex())
{
ASSERT(FALSE);
return 0;
}

I also have visual bugs (rows not properly created) when using AddRecord, then AddRecordEx (with record used in AddRecord as parent) finished by a RedrawControl (faster than Populate when doing a small update to the record hierarchy that contains 10000+ items).

What is done in AddRecordEx ( ..., NULL ) that is not done in AddRecord ?
Is there a code example or a documentation to fastly update report content ?

I'm using XTP 15.01.

-----

Then Andre reply :

Hi,

please post the code you use to populate the report control.

Andre

-----

Here is my code :

// create record
...
pRecord -> AddItem ( pNameItem );
pRecord -> AddItem ( pLibraryNameItem );
pRecord -> AddItem ( pClassNameItem );
pRecord -> AddItem ( pIdItem );

// add
if ( pParentRecord != NULL )
{ _oReport.AddRecordEx ( pRecord, pParentRecord ); }
else
{ _oReport.AddRecord ( pRecord ); }

...

// initial report fill is followed by a
_oReport.Populate();

...

// then further small changes to report are followed by a
_oReport.RedrawControl();

Bugs happen in case of small changes with a NULL pParentRecord (thus that falls into call of AddRecord) that are followed by a RedrawControl


-------------


Win 7 x64
VS 2008
CJ 15.13




Replies:
Posted By: ABuenger
Date Posted: 16 May 2011 at 1:53pm
Hi,

please create a support ticket and attach a small sample that demonstrates the bug.

Andre



-------------
Codejock support



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net