How to focus a row with a specified date |
Post Reply |
Author | |
tristoon
Newbie Joined: 18 May 2007 Location: France Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 02 July 2007 at 10:28am |
Hello,
I'm using the ActiveX "calendarControl" and the activeX "ReportControl" in the same time.
So, when I click on a day on the Calendar, I would like the reportControl focusing on the row with the specified date.
Is it possible to search a row in the report control with a specified value, and if the row is found, to focus directly on this row?
Thanks
PS: I'm using the version 9.81.
|
|
tristoon
Newbie Joined: 18 May 2007 Location: France Status: Offline Points: 4 |
Post Options
Thanks(0)
|
I'm using the datePicker and, when I click on a day, I just want the reportControl pointing on the row wich corresponds to my date clicked !
And, my code is below(I'm using PROGRESS L4G):
DEF VAR tmpDate AS CHAR NO-UNDO.
DEF VAR compt AS INT NO-UNDO. DEF VAR iii AS INT NO-UNDO. DEF VAR tmpCH AS COM-HANDLE NO-UNDO. tmpdate = chdatePick:datePicker:SELECTION:blocks(0):dateBegin. My problem is:
when the report find my row corresponding, the row count is not good, the topRowIndex doesn't point to the good row !!
Please, anybody can help me??
Thanks
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Use EnsureVisible method. Tt could look like (not sure in your syntax):
-- WBR, Serge |
|
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 |