on 01-12-2011 7:07 AM
Hi All,
I am using the below code to set the focus on the first row of the table given in the link [ ] on enter of an event.
data: lr_elem type ref to if_wd_view_element.
lr_elem = view->get_element( <ID of the Link to Action field>).
if lr_elem is bound.
view->request_focus_on_view_elem( lr_elem ).
endif.
I am getting "Cannot use NULL reference as object error at view".
Can you please tell me how to get the reference of the "view".
Thanks
Praveen
Hi
In your code in your method 'onEnter' , just use setLeadSelection on the table.
regards
yuval
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where are you writing this code. it should be in wddomodify.
thanks
sarb
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi All,
>
> I am using the below code to set the focus on the first row of the table given in the link [ ] on enter of an event.
>
>
data: lr_elem type ref to if_wd_view_element. > lr_elem = view->get_element( <ID of the Link to Action field>). > > if lr_elem is bound. > view->request_focus_on_view_elem( lr_elem ). > endif.
>
> I am getting "Cannot use NULL reference as object error at view".
>
> Can you please tell me how to get the reference of the "view".
>
> Thanks
> Praveen
Hallo Praveen,
have you controlled that id of the Linktoaction ? there you made error.
See it in the ViewElement designer .
should be something like this
lr_elem = view->get_element( 'LTA_name ' ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.