on 04-27-2012 7:06 AM
Hi Experts!
I have crreated a transparent container under a tab Under this I have two group containing some fields.
Transparent Container properties :-
Layout :- Grid Width :-100% Col Count :- 2.
Group Properties:-
Layout:- Matrix Width:- 100% Col Count:- 1
Now the two groups are appearing side by side. The no of fields are not same in the groups. Therefore their height & width is different.
I want to maintain the height & width of the second one same as the first one. Can we do it by binid any variable.
Regards,
Monishankar Chatterjee
Hi,
Thank you guys for the reply ...
I am aware of all these options ... so please let me know whether by using any variable or dynamically
I can set the width of the second group with respect to the first one.
Regards,
Monishankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Create two variables in the context width and height and bind it to the second group's width and height.
2. Now get the width & height of the first group by calling the get_element method of the current if_wd_view.
3. Once you got the element, down cast it to cl_wd_group.
4. Now get the width and height of the first group from the methods available in cl_wd_group.
5. Set the width and height in the two variables created at first.
Its done. Both wil have same height and width.
You can put this all in a separate method and call the method at every wddomodify
Regards,
Fareez
Dear Moni,
You can insert dummy UI in second Group by the way it will have same height for both the group.
Regards,
Mani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The best way seems to be giving the height and width of those group manually to same values. No need to bind the properties.
Regards,
Fareez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Moni
You can set the Layout property of the Transparent container as Matrix Lay out.
And Inside that you can add two groups. And set the layout data of Group1 as matrix header Data and
the same for group2 also Matrix haeder data.
Or you can set the Hight property of both groups to a same value.
now check
Regards
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have the option of setting the height and width of the Group UI element. You can hardcode it.
Regards,
Sayan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.