12-04-2007 3:35 AM
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.
12-04-2007 10:47 AM
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
12-04-2007 4:09 AM
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.
12-04-2007 4:15 AM
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.
12-04-2007 6:22 AM
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.
12-04-2007 10:47 AM
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