Login Register Actian.com  

Actian Community Forum


Go Back   Actian Community Forums > Development Tools > Application Development using OpenROAD
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2012-02-10   #1 (permalink)
Junior Member
 
Join Date: Oct 2011
Posts: 6
Default Tablefield CurRow giving wrong value.

Hi,

I'm working on a paging solution for tablefields for the company I work for and I'm getting a weird issue with teh currow. When I press a key to select a row it jumps to that row but gives me the previous row as the currently selected value. I tried running it in debug by breaking on the next statement and it gives me the correct value.

The code for the childkeypress event is:

entryfield = field(centre_tf).curRow

Not very complex and I'd think it would give the correct results.
munki83 is offline   Reply With Quote
Old 2012-02-10   #2 (permalink)
Ingres Corp
 
Join Date: Mar 2007
Location: On the OpenROAD
Posts: 1,306
Default

Use the childentry rather the childkeypress event.
At the time the keypress event block is executed the inpufocus has not been changed yet.
Bodo is offline   Reply With Quote
Old 2012-02-10   #3 (permalink)
Junior Member
 
Join Date: Oct 2011
Posts: 6
Default

Thanks that worked
munki83 is offline   Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2011 Actian Corporation. All Rights Reserved