Bug report on mixing AddRecord & AddRecordEx |
Post Reply |
Author | |
apautrot
Groupie Joined: 16 April 2009 Location: France Status: Offline Points: 18 |
Post Options
Thanks(0)
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 |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Hi,
please create a support ticket and attach a small sample that demonstrates the bug. Andre |
|
Codejock support
|
|
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 |