2007 May 02 3:35 PM
Hi,
I have ALV Tree screen like the following . If i execute this thru my system, the screen fully fits into my screen, but if it try in some other system the screen not fully fit in one screen , some of the fields displayed in the screen is going out of the screen, the user need to scroll it see the contents. I
In ALV how should i maintained the same screen resolution to all users?
--------------------------------------------------------
Node |No:______ Date: ________
a |Desc: ________________________ Deleted : _
b | (Here above field are editable)
c |-------------------------------------------
d |
e |
f |
g |
| Here i have an ALV Editable Grid
|
|
|
--------------------------------------------------------
aRs
2007 May 02 3:45 PM
I think its actaully to do with the users machines system Display settings, i.e. tehre screen resolution will be differnet from yours. To get round this I usually use dokcing containers and just fill the screen with the docking container so it fills eeryones screen.
i.e.
IF cl_gui_alv_grid=>offline( ) is initial.
CREATE OBJECT ref_docking
EXPORTING
SIDE = cl_gui_docking_container=>dock_at_right
EXTENSION = 1400 . " fills screen even for small fonts
ENDIF.
create tree control
create object ref_alv_tree
exporting
parent = ref_docking " ref_tree_container
node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
item_selection = 'X'
no_html_header = ''
no_toolbar = ''
exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7.
if sy-subrc <> 0.
message E000 WITH 'Error creating ALV TREE Object'.
endif.
Hi,
I have ALV Tree screen like the following . If i execute this thru my system, the screen fully fits into my screen, but if it try in some other system the screen not fully fit in one screen , some of the fields displayed in the screen is going out of the screen, the user need to scroll it see the contents. I
In ALV how should i maintained the same screen resolution to all users?
--------------------------------------------------------
Node |No:______ Date: ________
a |Desc: ________________________ Deleted : _
b | (Here above field are editable)
c |-------------------------------------------
d |
e |
f |
g |
| Here i have an ALV Editable Grid
|
|
|
--------------------------------------------------------
aRs
2007 May 02 3:45 PM
I think its actaully to do with the users machines system Display settings, i.e. tehre screen resolution will be differnet from yours. To get round this I usually use dokcing containers and just fill the screen with the docking container so it fills eeryones screen.
i.e.
IF cl_gui_alv_grid=>offline( ) is initial.
CREATE OBJECT ref_docking
EXPORTING
SIDE = cl_gui_docking_container=>dock_at_right
EXTENSION = 1400 . " fills screen even for small fonts
ENDIF.
create tree control
create object ref_alv_tree
exporting
parent = ref_docking " ref_tree_container
node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
item_selection = 'X'
no_html_header = ''
no_toolbar = ''
exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7.
if sy-subrc <> 0.
message E000 WITH 'Error creating ALV TREE Object'.
endif.
2007 May 02 3:54 PM
Hi,
I am already using Docking on Left
create object g_container_object
exporting side = cl_gui_docking_container=>dock_at_left
extension = 270
repid = g_repid
dynnr = '0100'.
Any info related to scrolling controll?
Thanks
aRs
2007 May 02 3:54 PM
2007 May 02 3:55 PM
2007 May 02 4:14 PM
2007 May 02 10:26 PM
Increase the docking containers extension. I use 1400 because this fill's the screen even for small fonts. Go to the control pannels dispaly or screen settings and in the advnaced tab change the screen resolution, then you can test your docking container for differnet font sizes.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |