Skip to Content

how to set input cursor in a Table

hi all,

I have my table ui , where there is a inputfield column. I need to know where is the input cursor and after the event onenter i need to set the input cursor in the same cell ( row ). Thanks in advance!!!


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2008 at 02:23 PM

    hi gab.....

    in the on action itself you can check transfer ui elements box so that you will get an importing parameter called if_wd_event refering to cl_wd_custom_event. using that you can get the values.


    alex b justin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 13, 2008 at 02:29 PM

    I have not tested this approach with the inputField within a table, so it might not work. However during the onEnter event, you should be able to get an ID from the event properties. The thing I don't know is if this will just tell you the ID of the column cell editor inputfield or something specific to the particular cell. If it turns out to be for the particular cell, you could then use the VIEW API methods (IF_WD_VIEW) GET_ELEMENT and REQUEST_FOCUS_ON_VIEW_ELEM to set the focus.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Sajid Shaik

      Hello friends!

      I do not get this to work when applying it on my example.

      data: lv_v_elem type ref to if_wd_view_element.
                lv_v_elem = view->get_element( 'INPUSERID' ).
                if lv_v_elem is bound. 
                  view->request_focus_on_view_elem( lv_v_elem ).

      I have a input field called NAME

      Context: Attribute NAME

      Layout: InputField NAME

      Could you please guide me howto set the cursor in this field. (what declarations / what coding)

      Best reg


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.