NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: jking on January 11, 2012, 10:03:33 AM
-
I'm trying to allow for an "Admin" user to see all items in a browse, and all other users to have the browse filtered based on the login name. I created a conditional filter with the condition set as:
p_web.GSV('Pathologist') <> 'Admin'
and the filter set as:
'Spe:Pathologist=<39>'&p_web.GSV('Pathologist')&'<39>'
When logging in as a typical (non Admin) user the filter works and the browse is filtered as expected. However, logging in as "Admin" shows nothing in the browse. I would expect the browse to essentially have no filter when Admin logs in. Any thoughts on this?
Thanks,
Jeff King
-
Bear in mind your condition is case sensitive.
cheers
Bruce
-
Bruce,
Just double checked and the case is correct. Still does not filter as expected. I'll go back and add the <39> to see if that makes a difference like it did for my default filter.
Thanks,
Jeff
-
Bruce,
I found the problem. In my condition I was using 'Spe:Pathologist' when I should have been using 'Pathologist'. I typed it in correctly in my original post but not in my code! Also, the session variable 'Pathologist' is a combination of the first and last name of the user logging in. I was looking for 'Admin' which is the user name. Sheesh!
Thanks for your help.
Jeff