Conditional Break if Object on Page One after layout

Avatar

Avatar
Validate 1
Level 2
LucreciousDFF
Level 2

Likes

6 likes

Total Posts

32 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
Establish
Boost 3
View profile

Avatar
Validate 1
Level 2
LucreciousDFF
Level 2

Likes

6 likes

Total Posts

32 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
Establish
Boost 3
View profile
LucreciousDFF
Level 2

27-06-2021

I require the conditional expression to check if an object is on page one after layout and if so to break next at the top of the next page.

 

Here is where I have run into the problem, I have tried the following code, which, is not working:

 

LucreciousDFF_0-1624809292136.png

The code may also require the relayout code after checking the placement of the object.

The reason for this is that this object under rare conditions will flow onto to page and using the normal page break it results in the object being the only one on the second page.

 

Any suggestions will be welcome.

 

I have previously posted the question here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/simple-conditional-b...

 

However, there was most likely a lack of clarity at the outset.

 

Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile
Kosta_Prokopiu1
Employee

28-06-2021

Hi again @LucreciousDFF,

it may not be the most strategic approach to open another question on a topic that was difficult to understand in the first place. Your description here did not help 🙂

What you are trying to achieve will not work in the way you show in the screenshot. Pagination is event driven. The logic you try here asks it to paginate when the object is on page 1 - that cannot work because this is not an event but a situation. And you cannot relayout() in the conditional break - this is purely a true false thing which will decide when to break or not...

 

That is why I am asking you many questions or even requested that you PM me some XDP or screenshots so that I can understand what you are trying to do. My first solution attempt was obviously wrong.

Kosta

Answers (0)