
Hi
I have a listpart control on my role center page with source table containing fields "ReturnDateTime" and "DueDateTime". I want to filter those records which have the condition ReturnDateTime > DueDateTime. I used SetFilter function in OnOpenPage trigger of the listpart as follows:
Hi
if your record has both the fields "ReturnDateTime" and "DueDateTime", then the DueDateTime will also change per each record. May be due to that your filter is not working.
I feel the DueDateTime should be fixed for the filter.
Also to avoid empty values you can try the below code.
SetFilter(ReturnDateTime, '>%1|<>%2', DueDateTime,0DT);
Cheers
Avinash B