Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Set cursor position within table control while scrolling

Former Member
0 Likes
1,563

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.

6 REPLIES 6
Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
941

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.

Read only

0 Likes
941

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!

Read only

0 Likes
941

Thanks and my problem was solved.

Thanks and Regards,

palani

Read only

0 Likes
941

Please do not forget to reward points as you deem appropriate. Good to hear that you got it working!

Read only

0 Likes
941

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.

Read only

Former Member
0 Likes
941

Hi

A small correction. In your SET CURSOR command. Field name should be in single quotes.

Regards

Ravi