Hello there,
I have another crazy request - I am attempting to create a dynamic PDF that will include a Header section, Contact section, Details section, and Footer section.
This is a Flexible Height Gallery with 4 containers for each of my sections.
ITEMS = Sequence(12)
Header container VISIBLE = If(ThisItem.Value=1,true,false)
Contact container VISIBLE = If(ThisItem.Value=2,true,false)
Details container VISIBLE = If(ThisItem.Value=3,true,false)
Footer container VISIBLE = If(ThisItem.Value=4,true,false)
(These visible properties will become more dynamic for when there is more than 1 page in my PDF.)
My goal to make the Details section more dynamic, which is the issue -
Within my Details container, I have a nested flexible height gallery.
If I have a MAX gallery height on pg 1 (350), I only want to show the topN rows whose heights SUM <= 350. The next detail rows should then be visible in Details section on Pg2 (max height 622) - with the same type of calculation.
(Page 2+ will only include header, details and footer, which is why my MAX height is more.)
Broken down:
Page 1 - Max details gal height 350, only show topN rows whose heights SUM <=350.
Page 2 - Max details gal height 622, show next topN rows whose heights SUM <= 622 and arent already shown on page 1.
Page 3 - Max details gal height 622, show next topN rows whose heights SUM <= 622 and arent already shown on page 1 or 2.
Here is what pg1 looks like with out all my notes and commentary:
Here is a bit more info about what all is going on.
I was able to get it to limit the number of rows visible, but cant figure out how to make it dynamic based on SUM row heights.
PDF screen ON VISIBLE
UpdateContext(
{
pageCounter: RoundDown(
PDF_Layout_galDetails.Height / PDF_Layout_galDetails.TemplateHeight,
0
)
}
);
UpdateContext(
{
galleryRowTotal: RoundDown(
PDF_Layout_galDetails.Height / PDF_Layout_galDetails.TemplateHeight,
0
)
}
);
Nested Flexible Height Details gallery ITEMS
LastN(
FirstN(
colSTDetails_Indexed,
pageCounter
),
galleryRowTotal
)This gives me the top 10 rows --- gallery height (350) / gallery template height (35). Which would work if this were a regular gallery.
Any thoughts on how I could make my details dynamic? Please let me know if clarification is needed.
Any help is much appreciated. Thank you!
Kristina

Report
All responses (
Answers (