06-22-2011 12:08 PM
Hi
I have created one container using cl_gui_custom_container.
Now I have splitted the container into two parts as left and right using cl_gui_splitter_container.
Is there any way to create push buttons in the left container.
Regards
Vijay
06-22-2011 3:49 PM
Pushbutton is an example of classic control while custom container is an example of GUI control . You can't mix controls of first type with the latter meaning you can embed classic control in GUI container. You can have such control only outside any container (on screen canvas). This is very common that you have docking container on the left and classic controls on the right side of the screen (not container)
To be able to have a button inside container, you will have to use cl_gui_toolbar class adding your options there and handling them as normal OO event. This way you only combine GUI controls (toolbar + container). Otherwise it is not possible.
Regards
Marcin
06-22-2011 4:06 PM
Hi Vijay
if you want do add Buttons similar to those in the SE80 (to select the tool) you may use Button Elements of the Dynamic Documents Control. Refer to example report DD_ADD_FORM_BUTTON.
CL_GUI_TOOLBAR is also an option, but with CL_DD_DOCUMENT (and related classes) you are free with the layout.
Best Regards
Bodo
06-22-2011 5:17 PM
Vijay,
I would suggest that you create screen with two subscreen areas.
You can add the pushbuttons to the left (and/or right) subscreen(s) as needed then.
06-22-2011 5:32 PM
Thanks all for your answers.
I am working on transaction 'ICO/MO_3C' . Here I have added a subscreen by customizing. I can't call a screen from here nor create another sub screen. That is the reason I have splitted the container.
Any more help on this will be appreciated.
06-23-2011 11:22 AM
If it is a button on toolbar you can use SET_TOOLBAR_BUTTONS using the grid of left container
if on the Container use another container for no confusion and simple way.
Thanks,
Bhargav