Good day All,
I believe there is a simple solution to this but, I am unable to figure it out.
I have a report that is generated from my Parent Table - Fleet information.
The report is sent when the status of the vehicle in the Fleet information table is changed from Active to Workshop.
I have a child table with vehicle issues that need attention when the vehicle is in the workshop but, I only want to send the incomplete (<> Completed ) issues to the report.
This is the CheckListLog
Hope the request is clear enough.
Solved! Go to Solution.
In that post it is suggested to remove any line breaks in your expression, which is exactly what I was going to suggest next. You have at least one line break in the expression assistant screenshot that you posted, after โORDERBY(โ.
This START expression here is what is controlling which records from the child table are shown in the PDF. START expressions require a list of row key values, so you just need to replace the [Related...]
portion with an expression that generates the key values that you want. In your case, something like:
SELECT( child-table[child-table-key-column] , [status] <> "Complete" )
For reference:
Thanks. The SELECT() is working but, it is not filtering the issues for only the one vehicle but, it is sending a list of all issue which is <> Completed
My mistake, I steered you wrong. Instead of
You can use List-Dereference on the existing [Relatedโฆ] column:
[Related...][child-table-key-column]
This is where I normally get stuck.
'SELECT(Related CheckListLog[Reported Date] , [status] <> โCompletedโ )
My Reported date is my KEY to the child table CheckListLog
If I want to Orderby Days out?
<<Start: ORDERBY(
SELECT([Related CheckListLogs][Reported Date] , [status] <> โCompletedโ ),[Days Out])>>
Does that look right?
yes
Please show the whole template.
Thanks so much for the help @Marc_Dillon.
You are a champion
I donโt see any issue.
Copy the whole START expression, without the โSTARTโ and the angle brackets, and paste it into a new virtual column on the Table that youโre triggering the Bot from. Does the expression assistant return any error?
Revert back to the working template, and slowly add the new parts back in.
It works when creating a virtual column
I came across a post of other user getting the same issue, or somewhat of the same issue.
In that post it is suggested to remove any line breaks in your expression, which is exactly what I was going to suggest next. You have at least one line break in the expression assistant screenshot that you posted, after โORDERBY(โ.
Thanks
Removing the line breaks fixed it?
Just like that!!!
User | Count |
---|---|
39 | |
35 | |
29 | |
23 | |
18 |