Need some help for create pdf file

I have created an task to create a pdf file, see the code i use in google docs.

This code works fine, but what i want is for each different teacher(zwemdocent). That on a new page a new overview is created with the customers who belong with that teacher.

And the teachers can be different each time. 

Current code and output.

Totaal overzicht A Maand1

Maand:

Naam:

Zwemdocent

<<start: ORDERBY(FILTER(“A Maand1”,TRUE),[Zwemdocent],TRUE)>> <<[Naam]>>

<<[Naam]>>

<<[zwemdocent]>><<end>>

The output is as expected, total table with all customers and teachers.

Wilco_kuis_1-1666720584755.png

etc.etc.

 

This is what i want if there are 2 different teachers instead of 1 table

1 page/table overview for each teacher, in this case the are 2 different teachers( 1 and 2 for example)

Wilco_kuis_2-1666721064225.png

Wilco_kuis_3-1666721110148.png

Can you guy's help me out, to create the right code?

Already thanks.

Wilco,

 

 

Solved Solved
0 3 118
2 ACCEPTED SOLUTIONS

This starts to get into advance territory with nested Start: expressions and [_THISROW-n]stuff.
Check this:

Solved: Re: PAGE BREAKS IN PDFS - Google Cloud Community

View solution in original post


@Wilco_kuis wrote:

Totaal overzicht A Maand1

Maand:

Naam:

Zwemdocent

<<start: ORDERBY(FILTER(“A Maand1”,TRUE),[Zwemdocent],TRUE)>> <<[Naam]>>

<<[Naam]>>

<<[zwemdocent]>><<end>>

 


You will wan to "wrap" the code above in another START/END set of functions that will cycle through the list of Teachers.  Something like

<<START: Teachers[Teacher ID]>>

Totaal overzicht A Maand1

Maand:

Naam:

Zwemdocent

<<start: ORDERBY(FILTER(“A Maand1”,TRUE),[Zwemdocent],TRUE)>> <<[Naam]>>

<<[Naam]>>

<<[zwemdocent]>><<end>>

...{ Add any Teacher Summary details here}

{Add Page Break here to put next teacher on a new page}

<<END>>

NOTE: You will want to adjust your inner START expression to filter by the teacher from the outer START expression and likely move your ORDERBY function to the outer START.

View solution in original post

3 REPLIES 3

This starts to get into advance territory with nested Start: expressions and [_THISROW-n]stuff.
Check this:

Solved: Re: PAGE BREAKS IN PDFS - Google Cloud Community


@Wilco_kuis wrote:

Totaal overzicht A Maand1

Maand:

Naam:

Zwemdocent

<<start: ORDERBY(FILTER(“A Maand1”,TRUE),[Zwemdocent],TRUE)>> <<[Naam]>>

<<[Naam]>>

<<[zwemdocent]>><<end>>

 


You will wan to "wrap" the code above in another START/END set of functions that will cycle through the list of Teachers.  Something like

<<START: Teachers[Teacher ID]>>

Totaal overzicht A Maand1

Maand:

Naam:

Zwemdocent

<<start: ORDERBY(FILTER(“A Maand1”,TRUE),[Zwemdocent],TRUE)>> <<[Naam]>>

<<[Naam]>>

<<[zwemdocent]>><<end>>

...{ Add any Teacher Summary details here}

{Add Page Break here to put next teacher on a new page}

<<END>>

NOTE: You will want to adjust your inner START expression to filter by the teacher from the outer START expression and likely move your ORDERBY function to the outer START.

It works :-), thanks.

Wilco_kuis_0-1666893889911.png

Wilco_kuis_1-1666893926202.png

Result each page a different teacher.

Wilco_kuis_2-1666894127773.png

 

 

 

 

Top Labels in this Space