Skip to Content

regarding table control

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member suresh Ganesan

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.