NetTalk Central

Author Topic: making filters with session queue variables.  (Read 3155 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
making filters with session queue variables.
« on: March 31, 2010, 11:37:08 AM »
Hi
It looks like session variables are addressed as reference variables in filters. 
I need to filter on two conditons - service date and site ihid - both set as session variables.
I am having trouble with the syntax and keep getting compiler errors.

's:date =' &p_web.GSV('_sdate') 'and site:id = ' &p_web.GSV('_siteID')

this gives me compiler errors.

Q1)  What is the correct syntax for this filter?

Q2) How do we use references to the session queue variables correctly in filters and expressions?

Thanks,
Ron Jolda

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: making filters with session queue variables.
« Reply #1 on: March 31, 2010, 03:00:22 PM »
This may work a little better

's:date =' & p_web.GSV('_sdate') & ' and site:id = ' & p_web.GSV('_siteID')


I tend to embed my more complicated filters rather than use the templates. That way I can also add a debug point to see what my filter actually is if it is not working right.