cancel
Showing results for 
Search instead for 
Did you mean: 

Layout maintain same height of groups.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

manigandan_d2
Explorer
0 Kudos

Dear Moni,

You can insert dummy UI in second Group by the way it will have same height for both the group.


Regards,

Mani

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Pradeep,

  I cannot display one below other by using matrix header data. I have to show them side by side.

Regards

Former Member
0 Kudos

Hi Moni...

  You can set the Height property of both groups to a same value.

Thanks and Regards

Pradeep

Former Member
0 Kudos

Hi,

You have the option of setting the height and width of the Group UI element. You can hardcode it.

Regards,

Sayan