on 06-15-2006 12:22 PM
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
to set focus you can do it thru javascript.
<SCRIPT LANGUAGE="JScript">
function textFocus(elementid)
{
var element = document.getElementsByName(elementid);
element.select();
}
</SCRIPT>
sorround this javascript by a abap if else condition and pass the elementid with a abap variable.
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.