‎2005 Jan 12 12:49 PM
hi,
Anybody can guide me how to set the cursor with in table control while scrolling down,normally it is going to first input filed.
Thanks and Regards,
palani.
‎2005 Jan 12 7:31 PM
Hi Palani,
This is a duplicate questions. Anyhow try this one:
Try using SET CURSOR FIELD fieldname LINE steplooplineno in your PBO. Fieldname is the column fieldname of your table control. Steplooplineno is the step loop line number of your table control.
‎2005 Jan 12 9:40 PM
Try Nablan's solution. Just remember that the fieldname in the SET CURSOR... statement must be in double quote marks and is case sensitive. So code it as:
SET CURSOR FIELD "FIELD1" LINE ....
The current line number is available in my_control-top_line where my_control is your control name.
Let us know how it goes!
‎2005 Jan 13 1:33 PM
‎2005 Jan 13 2:50 PM
Please do not forget to reward points as you deem appropriate. Good to hear that you got it working!
‎2013 Apr 22 5:11 AM
Hi Palani,
Could you please share with me what all you have done regarding get and set cursor. I am facing similar problem where
I have made a Z Table Control where i have given vertical and horizontal scrolling . Now when I scroll and try to select a row, then ZTABLE_CONTROL-CURRENT_LINE fetches line number not from the top, it fetches from the current top of ztablecontrol.
It is onlyy changing the value on scrolling, if i do not scroll table control then value is coming correct.
My requirement is whenever i select any row of ZTABLE CONTROL i need to get the curent line number from top. Please guide me what should i do.
Early reply will be rewarded.
Thanks.
‎2006 Jan 30 12:17 PM
Hi
A small correction. In your SET CURSOR command. Field name should be in single quotes.
Regards
Ravi