NetTalk Central

Author Topic: Filter not working  (Read 3014 times)

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Filter not working
« on: October 05, 2018, 02:11:38 AM »
CL 10
NT 10.35

Using a simple filter on a browse.

'Crs:GUIDStaff = ' &p_web.GSV('StaffID')

StaffID is set correctly on Login, checked with Debug++
The Crs:GUIDStaff is a view field
Filter fails
When I use
'Crs:GUIDStaff = <39>GGHYTDGRFSREFWRE<39>'
It Works - The letters are what is in the session field StaffID

Does it look OK?
Any Suggestions?

Brian
Brian

Vinnie

  • Full Member
  • ***
  • Posts: 175
    • View Profile
    • Email
Re: Filter not working
« Reply #1 on: October 05, 2018, 02:18:58 AM »
Hi Brian

Try
'Crs:GUIDStaff =<39>' &p_web.GSV('StaffID')&'<39>'

Should work

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Filter not working
« Reply #2 on: October 05, 2018, 04:38:15 AM »
'Crs:GUIDStaff = ' & '''' & p_web.GSV('StaffID') & ''''

There's probably several ways to construct the filter string.

Actually, I think I have also seen something like:

'UPPER(CLIP(Crs:GUIDStaff)) = ' & '''' & UPPER(p_web.GSV('StaffID')) & ''''

Don
« Last Edit: October 05, 2018, 04:44:40 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: Filter not working
« Reply #3 on: October 06, 2018, 01:21:04 AM »
Thanks Vinnie - That worked.
Brian