Application Development 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: 

Table Control

Former Member
0 Kudos
78

Hi,

I have a table control in my on line program. The TC has 200 lines and it show 13 lines per pages. For with process, I fill It with many lines. Between one process and other, I need to start It at the first line. How can I do this ?

Thanks

Valter Miranda

1 ACCEPTED SOLUTION

Former Member
0 Kudos
55

Hi,

U need to <b>award points for useful answers</b> and u have to mention it as solved if ur question is solved. Dont forget.

Regards,

Sudheer

4 REPLIES 4

Former Member
0 Kudos
55

The cursor can be positioned in any field of the table and on any line as follows:

set cursor field 'fieldname' line nnn

Or you can set the top or current line of a table control:

cont_table-top_line = 1.

cont_table-current_line = 1.

Message was edited by:

Kevin Bowmer

0 Kudos
55

Hi Kevin,

I alredy tried to use in my program the options top_line, current_line, set cursor 1 1 in the PBO module, but unsuccessfully.

To change the target field by using de set cursor field it was OK, but to fixed the line 1 for with process, It isn't Ok yet. Loop at Screen may be used for this case ? If yes, what is the property name ?

Valter Miranda

Brazil - São Paulo.

0 Kudos
55

In the PBO, you should use top_line and current_line only in a conditional(IF) statement.

The PAI and PBO will be processed even when u scroll the tablew contrl.

So we can change those values only under certain condition(other than 'PageUp' 'PageDown' 'FirstPage' 'Last Page' etc.,) i.e., when ever we want

Hope this is useful.

Regards,

Sudheer

Former Member
0 Kudos
56

Hi,

U need to <b>award points for useful answers</b> and u have to mention it as solved if ur question is solved. Dont forget.

Regards,

Sudheer