I have an app that creates a job card for a team. Basically on each row is the date, between 1 and 5 crew members and between 1 and 10 jobs for that day - each job consists of a reference, client, site address and the work to be carried out.
The hours spent on each job by each crew member are also recorded.
There are around 15 teams each day.
My client now wants a single sheet PDF that lists this information for all the crews each day in a table - i.e. one* sheet per day showing all the crews/jobs.
I have a layout and a Start/End expression that shows all the teams and the jobs for the specified day - BUT it is also showing the empty job fields for each crew, so even if a crew has just had 3 jobs that day itās showing empty space/cells for the 7 empty jobs.
Iāve tried adding an <><> expression inside the <Start:><> expression to not show any jobs where the work description is empty but that gives an unmatched āStartā error.
Any thoughts on how to solve this or is the app set up incorrectly for this?
Itās only got 3 jobs on it atm but would eventually need to potentially show 10 jobs.
Ignoring the IF statement issue itās actually itās still wrong as itās displaying the data incorrectly but hopefully I can sort that. I suspect Iām going about the template in the wrong way
Iām also wondering whether it might now be better to change to app with each team having a row in itās Teams table and each job being a row in a Jobs table with a link between each Team and itās jobs for that day?
<<if:NOT(ISBLANK(Job 2 Work Undertaken))>> should be <<if:NOT(ISBLANK([Job 2 Work Undertaken]))>>. Note the addition of square brackets around Job 2 Work Undertaken.
[quote=āTedMā]
I have an app that creates a job card for a team. Basically on each row is the date, between 1 and 5 crew members and between 1 and 10 jobs for that day - each job consists of a reference, client, site address and the work to be carried out. The hours spent on each job by each crew member are also recorded.
There are around 15 teams each day.
My client now wants a single sheet PDF that lists this information for all the crews each day in a table - i.e. one* sheet per day showing all the crews/jobs.
I have a layout and a Start/End expression that shows all the teams and the jobs for the specified day - BUT it is also showing the empty job fields for each crew, so even if a crew has just had 3 jobs that day itās showing empty space/cells for the 7 empty jobs. Iāve tried adding an <> @TedM wrote:> > Iām also wondering whether it might now be better to change to app with each team having a row in itās Teams table and each job being a row in a Jobs table with a link between each Team and itās jobs for that day?
Decided that this is the better route - I have a question but thatās for another post
Just to finish this off⦠I changed the app to create patent/child relationships between tables of Teams and Jobs.
All of not working nicely and I now know that you can use an If/EndIf statement in the template and that Start/End statements need to be on the same row of the table.