Hi,
I'm having a bit of trouble with the syntax for the orderByFields parameter in my report template. In the help section it provides the example ${defects | orderByFields:"state_name ASC, pop2000 DESC"}. In my example I'm applying this to a nested repeat and have tried the following;
${#MaintenanceDetails}${#Notifications}${Notifications|orderByFields:"NotificationBoQRef DESC"}${NotificationBoQRef}${/}${/}
This didn't work and I just end up with an unsorted list of repeats each with [object Object] preceding them. I then tried the alternative below with the orderByFields parameter added to the repeat placeholder for the start of the repeat;
${#MaintenanceDetails}${#Notifications|orderByFields:"NotificationBoQRef DESC"}${NotificationBoQRef}
In this version the sorting works but I end up with my repeat values being duplicated multiple times. You can see in the image below how the values D6 and D4 appear again at the bottom of the list. Can someone please provide some guidance on the syntax or confirm whether this is a bug associated with nested repeats?
I also need to combine the orderByFields parameter with some if statements to limit the repeats pulled into the report and wondered whether the "where" clause utilised in summary reports and demonstrated by Ismael here can be used within the regular reports? It did seem to work when I tried it but the orderbyFields parameter still wouldn't work.
Any help would be much appreciated.
Thanks
Anthony

@IsmaelChivite @JamesTedrick