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

Define buttone in CL_GUI_DIALOGBOX_CONTAINER

Hello,

May I know if it is possible to define our own buttun, if we use CL_GUI_DIALOGBOX_CONTAINER to create a dialog box. And

how can I? thank you very much.

Best regards,

Shumin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 05, 2009 at 09:25 AM

    Hi,

    If you havent checked til now, then check with the where-used list of the class. Seems there are some standrad programs using this class.

    Regards,

    Swarna Munukoti

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 05, 2009 at 09:28 AM

    Hello,

    I have used "where used list", but mostly, they do not have their own button.

    Thanks,

    Shumin.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 05, 2009 at 09:33 AM

    Hi Shumin,

    the CL_GUI_DIALOGBOX_CONTAINER is nothinmg but a resizable popup without content. When created, it has only the close window cross on the upper right corner. If you want this to work, you have to define and register the handler for the close event.

    If you want other buttons on it, you have to place a control on the dialogbox. If you place a CL_GUI_ALV_GRID control, you have a grid including a toolbar with buttons. If you want a button only, you may use dynamic document like CL_DD_BUTTON_ELEMENT. I prefer to use a CL_GUI_TOOLBAR where I can add buttons freely.

    Please check report DD_ADD_FORM_BUTTON and/or SAP_FULLSCREEN_CONTAINER_DEMO for details, SAP_FULLSCREEN_CONTAINER_DEMO uses the dialog control (flag 'display in popup') and toolbars but no CL_DD_BUTTON_ELEMENT.

    Kind regards,

    Clemens

    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.