12-05-2005 3:30 PM
Hello,
I want, that the ALV-Grid I am displaying fills the whole screen, from left to right. I am using a custom container control but set the width of the dynpro and custom container manually. I want that the ALV-grid and dynpro automatically fill the whole space of the screen, from left to right. Is there a possibility to do this dynamically, e.x. with the splitter control? Thanks.
Regards, Lars.
12-05-2005 3:37 PM
Change the Default length to 200
visible length to 200
height to 200
in the screen attributes that will make the screen to be filled from left to right..
regards
vijay
12-05-2005 3:37 PM
Change the Default length to 200
visible length to 200
height to 200
in the screen attributes that will make the screen to be filled from left to right..
regards
vijay
12-05-2005 3:38 PM
Hi,
If your custom container is on the main screen then no need to set width for the dynpro I guess.
In such case, just go to screen painter, make your custom container size very big (bigger than the screen can accommodate) and then MARK Resizing options, Vertial and Horrizontal for it (you will see them in the properties window for the custom container). You can play with these, as resizing options make custom container adopt to the screen length and width.
No need for splitter I guess, though docking container is the more logical one to use.
Hope this helps..
Sri
12-05-2005 3:43 PM
Lars,
<b>Do not create a Container!!!</b> Just Use the attribute SCREEN0 while creating the GRID
DATA: myGrid TYPE REF TO cl_gui_alv_grid.
<b>CREATE OBJECT myGrid EXPORTING i_parent = cl_gui_container=>screen0.</b>
And You have to create an EMPTY screen, put NOTHING in the layout.
Just have CALL SCREEN 100.
Thanks
Kam
12-05-2005 3:46 PM
Hi Lars,
Change the Attributes of container that By changing it as mentioned above.
regards
vijay
12-05-2005 3:51 PM
Hi,
One idea is delete your custom control from the screen.
Then in the declaration part of your program write
DATA doc TYPE REF TO CL_GUI_DOCKING_CONTAINER.
Then in the PBO.
CREATE OBJECT doc EXPORTING extension = '3000'.
CREATE OBJECT alv EXPORTING i_parent = doc.
Then proceed as usual..
You can change the width from 3000 to any other values also..
Regards,
Abdul
12-05-2005 4:05 PM