Expand my Community achievements bar.

SOLVED

problem with Western Text

Avatar

Level 2

Hi,

in the Designer of Aem Forms I used a subform with Content: Flowed and Flow direction: Western Text. Inside I have inserted 3 vertical subforms as columns. When it reachs the end of the page and splits to go to the next page, the first column is arranged correctly (starting from page 1 and ending on page 2), while the following columns start directly from page 2, leaving free space above them in the bottom of page 1. How can I get the right behavior? Thank you

1 Accepted Solution

Avatar

Correct answer by
Employee

Here is the explanation, a possible solution depends on what it is that you want to do with these 3 columns:

I have created a very basic form with this structure using a flowed main page and a flowed western subform with the repeating column rows. When there is no age break things look correct:

kprokopi_3-1596801704207.png

 

kprokopi_0-1596801289701.png

If column 1 has more lines than fit it throws a page break but the other columns have not been layouted yet. So they end up on the next page. The bigger the difference in lines between first column and the others the weirder the result will get.

kprokopi_1-1596801433314.png

If the middle row has more entries than the first row you get this

kprokopi_2-1596801506799.png

With varying length of each row you get all kinds of combinations of this behavior. This is not a bug but lies in the nature of how the renderer operates on the subforms and columns. Western text works from left to right, Flowed vertical from top to bottom.

 

So here my question, what is it exactly that you want to do with these subforms, Is it a table? Are the rows linked between the subforms or is this just content that should spread over he three columns?

 

 

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Here is the explanation, a possible solution depends on what it is that you want to do with these 3 columns:

I have created a very basic form with this structure using a flowed main page and a flowed western subform with the repeating column rows. When there is no age break things look correct:

kprokopi_3-1596801704207.png

 

kprokopi_0-1596801289701.png

If column 1 has more lines than fit it throws a page break but the other columns have not been layouted yet. So they end up on the next page. The bigger the difference in lines between first column and the others the weirder the result will get.

kprokopi_1-1596801433314.png

If the middle row has more entries than the first row you get this

kprokopi_2-1596801506799.png

With varying length of each row you get all kinds of combinations of this behavior. This is not a bug but lies in the nature of how the renderer operates on the subforms and columns. Western text works from left to right, Flowed vertical from top to bottom.

 

So here my question, what is it exactly that you want to do with these subforms, Is it a table? Are the rows linked between the subforms or is this just content that should spread over he three columns?

 

 

Avatar

Level 2
It's like a table because the cells of the same row are linked. I've preferred not to use table or horizontal subforms because there should be some line under some field so using columns in this case seems to be less complicated

Avatar

Employee
as you can see this approach is MUCH MORE complicated. I would recommed to use a table. When you say "some line under some field" - can you provide a scetch or a screenshot what you mean by that? When are there lines under what fields?