Skip to Content
avatar image
Former Member

Layout maintain same height of groups.

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

Group.GIF (37.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Apr 27, 2012 at 06:15 AM

    Hi,

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

    Regards,

    Sayan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2012 at 08:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2012 at 10:10 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 28, 2012 at 04:11 AM

    Dear Moni,

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


    Regards,

    Mani

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 29, 2012 at 10:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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