cancel
Showing results for 
Search instead for 
Did you mean: 

Subform dynamic height

Former Member
0 Kudos

Hi experts,

I have 2 subforms in my form, 1 with flowed layout and the other with positioned layout.

The one with the flowed layout can change in height depending on some conditions.

I need to assign the height of the flowed layout to the one with the positioned layout.

Is there any way of achieving this (ex. using JavaScript)?

Thanks in advance.

Kind regards,

Niels De Greef

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I know that I can assign the height of a subform with this statement:

this.h = "1.0in";

But I'm unable to get the height of the first container.

Any idea how I can get the height value of a subform?

Thanks in advance for your reply.

Kind regards,

Niels

Florian
Active Contributor
0 Kudos

Hi Niels,

I don't think it is possible what you want to do. The height of your first container is not fixed so I'm not sure if it is possible.

Can you share some more details about what you are going to do, perhaps there is another solution available.

~Florian

Former Member
0 Kudos

Hi Florian,

Thanks for your reply.

In the picture underneath you see the two subforms (A & B):

Container A is flowed and can change in height but container B is positioned and needs to have the same height then container A.

This is needed to draw borders around the boxes, so that the subforms are displayed like this:

So that the lines deviding "Qty" and "Unit" are there over the whole document.

Kind regards,

Niels

Former Member
0 Kudos

Hi Niels.

It's a bit of a workaround but I guess it will work:

Drow another table under the table in form B with the same size and amount of cells and with no header, this table will have no text in it, make it dynamic and dynamicly add rows to fit the hight of  form A (number of rows in new tab = rows in A tab - Rows in B tab).

Now set all borders of cells of this table to show only the side borders - that will draw strait vertical lines.

For border in the bottom use the forms border.

Regards

Shai

Florian
Active Contributor
0 Kudos

Hi Niels,

just a suggestion. I think you will be able to fix this by adding another subform surrounding A + B (green box)

or don't I see something important right now?

Of course, all the other lines need an additional subform

~Florian

Former Member
0 Kudos

Hi Florian,

That indeed solves my issue

It's a much easier solution than trying to get the height of a flowed container.


Thank you!


Kind regards,


Niels

Former Member
0 Kudos

Hi Niels, 

We have similiar kind of requirement as mentioned below.

we need to draw the diagnoal line dynamically based on the no of line items.

Could you plese help us on this ?


Answers (0)