Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Bug report on mixing AddRecord & AddRecordEx
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug report on mixing AddRecord & AddRecordEx

 Post Reply Post Reply
Author
Message
apautrot View Drop Down
Groupie
Groupie
Avatar

Joined: 16 April 2009
Location: France
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote apautrot Quote  Post ReplyReply Direct Link To This Post Topic: Bug report on mixing AddRecord & AddRecordEx
    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

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.142 seconds.