blindmime:
(Incidentally if search1="file_approved = off" doesn't give me the same list as search1="file_approved != on").
Correct - and it's important to understand that distinction. The way the JR5 DataStore works is that it only stores information for item keys that have a value - i.e. file_approved will only be set on items where a value for that field has been created (possibly on an update form for an item).
So when you use a != indicator, you are going to get EVERY item that not only does the key not equal the value, but you are also going to get every item where that key has not been set.
When you do file_approved = off, you are specifically looking for that key with that value - items that are missing the file_approved key will not appear.
So in your case the file_approved != on is probably the one you want.
Quote:
The profile_salesperson is not the same as the profile the item belongs to. Basically, I have profiles for clients. jrFile items are added for each job we are doing for those clients. The clients are given a url to go download a pdf and proof their job. They can make changes or approve jobs via jrComments. Each client profile has a profile_salesperson (not each jrFile item or proof). I have a page built where I pass in the salesperson's name via $rep and I want it to pull all of the unapproved proofs for a particular salesperson so they can track their jobs.
Yeah that's the problem - the profile info that gets search is the profile that is attached to the item (the item creator) - NOT the rep that is doing the searching. This is why there are no matches.
The only way I can think of to do this is to have a custom field in the file item - something like file_rep_id that gets filled in with the rep ID - you can then easily search on both criteria.
Hope this helps!
--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net