cancel
Showing results for 
Search instead for 
Did you mean: 

Access VIEW parameter(IF_WD_VIEW) outside of WDDOMODIFYVIEW

Former Member
0 Kudos

Hi all,

Within the WDDOMODIFYVIEW event there is a parameter called VIEW which provides certain functionality such as setting focus on certain field etc. I was just wondering if anyone could provide me with the code required to access this functionality outside of the WDDOMODIFYVIEW event.

Regards

Mart

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Eventhough you move it to global one, you cannot be able to use it effectively. Please check it out.

what exactly is yuor requirement.

Regards

Lekha.

Edited by: Lekha on Oct 15, 2009 4:46 PM

Former Member
0 Kudos

Well i dont really have a requirement I have manged to do it but thought there would be a better way. Currently I have created an attribute within my view called GD_VIEW(type ref to IF_WD_VIEW) and within event WDDOMODIFYVIEW I have put the following code

wd_this->GD_VIEW = view.

I can then access this anywhere using the following code

data: lv_v_elem type ref to if_wd_view_element.
  lv_v_elem = wd_this->gd_view->get_element( 'PWORD' ).

  if lv_v_elem is bound.
    wd_this->gd_view->request_focus_on_view_elem( lv_v_elem ).
  endif.

But just thought there would be a way without having to copy it within the WDDOMODIFYVIEW event. But then again maybe not!

Regards

Mart

Former Member
0 Kudos

Hi,

But just thought there would be a way without having to copy it within the WDDOMODIFYVIEW event. Is this not the case?

You can get the reference of VIEW inside the modifyview itself...There is no other way.

Regards,

Lekha.

Answers (0)