Skip to Content

Enhancement of standard components

Hi All,

I am getting a problem while enhancing the standard component WDR_F4_ELEMENTARY , in that i am enhancing the view PRESELECTION.

my aim is to make the button 'SEARCH' as a default button of the container . i am writing the following code in the pre-exit of wdmodifyview method

DATA : LR_CONTAINER TYPE REF TO CL_WD_TRANSPARENT_CONTAINER.

LR_CONTAINER ?= VIEW->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).

IF LR_CONTAINER IS BOUND .

LR_CONTAINER->SET_DEFAULT_BUTTON_ID( 'SEARCH' ).

ENDIF.

above code get activated without any error but when i test it , i am not getting the desired result . even tried with this code in post-exit of wdmodifyview .

Kindly help me in this ..

Regards

Yashpal

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jun 13, 2007 at 04:51 AM

    Hi

    LR_CONTAINER should be of type CL_WD_UIELEMENT_CONTAINER.

    Thanks

    Anzy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2007 at 05:48 AM

    Hi Yashpal,

    is it coz the button is inside a button row , and container is not able to detect that insatnce of the button.

    /anzy

    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.