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: 

regarding table control

former_member585865
Contributor
0 Kudos
100

Hi all,

I have an requirement that when the user presses enter in the first row the cursor has to come in the second row i have used get and set cursor fields,it doesn't work our for me the problem is am using two two text boxes above the table control for displaying name month and year so on.when i presses enter it automatically goes to that textbox only, how i can restrict this?kindly help me regarding this issue.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
72

Hi Suresh,

in PBO

data: lin1 type i value 1.

data: name1(25) type c value 'ITAB-CLINT'.

___________________________Table Control Column Name .

I Give in Quotes

I

v

set cursor field 'ITAB-CLINT' line lin1. "ITAB-CLINT

or

set cursor field name1 line li1. "ITAB-CLINT

in PAI

get cursor field name1 line lin1.

or

get cursor field 'ITAB-CLINT' line 1.

i have used this in my work ...its working fine ....if any issues contact :mailme.kar@gmail.com

4 REPLIES 4

Former Member
0 Kudos
72

Hi,

Try this ,it may help you out,

You told that you have two text boxes on the top.when you press 'enter' the control goes to the PBO module so the cursor is in the text box.My suggestion is to write the set and get cursor code in the PBO module.

Regards,

soumya.

0 Kudos
72

Hi Soumya,

I have tried Using Set and Get Cursor Fields In pbo but it doesn't work out if you provide a sample code regarding this issue it will be a great help.

0 Kudos
72

Hi,

First you write the code below in the pai or wherever you want to retrive the value

data : field(20) type C.

in pai module....

GET CURSOR FIELD field.

in pbo module....

SET CURSOR FIELD field.

please mail me if you want further clarification.

regards,

soumya.

Former Member
0 Kudos
73

Hi Suresh,

in PBO

data: lin1 type i value 1.

data: name1(25) type c value 'ITAB-CLINT'.

___________________________Table Control Column Name .

I Give in Quotes

I

v

set cursor field 'ITAB-CLINT' line lin1. "ITAB-CLINT

or

set cursor field name1 line li1. "ITAB-CLINT

in PAI

get cursor field name1 line lin1.

or

get cursor field 'ITAB-CLINT' line 1.

i have used this in my work ...its working fine ....if any issues contact :mailme.kar@gmail.com