Skip to Content
author's profile photo Former Member
Former Member

Set Foocus on a particular celll in a table view

Hi ,

I have a table view , When i select a row in the table view , focus must be set on the first column, the first column is a editable column .

I have used <phtmlb:focusRect>

the attribute for the focusElementId is the cell id of the particular cell where focus is to be set..

but the focus is not set ...

when I give the id of the table view .. it gets focus on the table view ..

for eg., table view id = 'itmlst' when i pass this as attriute it gets focus on the table view ..

when i try to get focus on a particular cell .. id 'itmlst_1_1' .. it doesnt get focus on that cell ..

Please give me ur suggestions for setting the focus on a particular cell when selecting a row

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 17, 2006 at 07:07 AM

    to set focus you can do it thru javascript.


    function textFocus(elementid)


    var element = document.getElementsByName(elementid);;



    sorround this javascript by a abap if else condition and pass the elementid with a abap variable.



    Add a comment
    10|10000 characters needed characters exceeded

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.