Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - VirtualMode
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VirtualMode

 Post Reply Post Reply
Author
Message
rdeboer View Drop Down
Groupie
Groupie


Joined: 29 April 2004
Location: Netherlands
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdeboer Quote  Post ReplyReply Direct Link To This Post Topic: VirtualMode
    Posted: 03 August 2006 at 9:52am
Hi,
 
I'm switching to VirtualMode for the ReportControl, and everything runs fine, but 1 problem I got:
 
With normal mode, I doubleclick on a row. In the Event 'RowDblClick' I got the value of a column, like:
 
Value = Row.Record.Item(8).Value
 
This doesn't seem to work in Virtual mode? (Value = empty)
 
How do I get the value of a column when double clicking on a row?
 
Additionally: Does the FilterText work with the VirtualMode?
 
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 10:54am
Problem is that with Virtual Mode you really only have 1 record that exists.  Virtual mode is designed to be used with the data stored in some external data source like a database or some array.  So in double click event you want to search for row and column that was clicked, then you can pull this data from your external data source.  This is the same way you should be drawing the items in the BeforeDraw event, determine the row and column, then draw the appropriate caption.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 10:57am
No, filter text will not work for some of the same reasons I gave above.  There is only 1 record object.  But you can easily apply your own custom filter in BeforeDrawRow since you are manually drawing all rows anyway.
Back to Top
rdeboer View Drop Down
Groupie
Groupie


Joined: 29 April 2004
Location: Netherlands
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdeboer Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 11:03am
Originally posted by SuperMario SuperMario wrote:

No, filter text will not work for some of the same reasons I gave above.  There is only 1 record object.  But you can easily apply your own custom filter in BeforeDrawRow since you are manually drawing all rows anyway.
 
That's a very good tip
 
I almost abandoned the FilterText method ;-)
 
Back to Top
rdeboer View Drop Down
Groupie
Groupie


Joined: 29 April 2004
Location: Netherlands
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdeboer Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 11:30am
Originally posted by SuperMario SuperMario wrote:

No, filter text will not work for some of the same reasons I gave above.  There is only 1 record object.  But you can easily apply your own custom filter in BeforeDrawRow since you are manually drawing all rows anyway.
 
One more question:
 
I managed to add  filter in the BeforeDrawRow Event, but despite that all items are always displayed.
 
How can I prevent displaying a row in the BeforeDrawRow event?
 
 
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 12:57pm
After giving this some more thought, about the only way to do this in virtual mode would be to externally create a subset of your data source and use this subset to place data in the report.
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.105 seconds.