NetTalk Central

Author Topic: using p_web.GSV('_siteID') as a condition for display child  (Read 3745 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
using p_web.GSV('_siteID') as a condition for display child
« on: March 31, 2010, 08:56:38 AM »
Hi,
What is the correct syntax to use p_web.GSV('_siteID')  > 0 as a CONDITION for Child Browse display?
I have tried '&p_web.GSV('_siteID')  > 0 '   and 'p_web.GSV('_siteID')  > 0  and several other permutations and it does not like it.....
Help...
Thanks,
Ron Jolda

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: using p_web.GSV('_siteID') as a condition for display child
« Reply #1 on: March 31, 2010, 02:34:26 PM »
I haven't done this before but I would try the following to narrow down if it is a template bug or the GSV is returning a value you didn't expect

1) add a debug point to check the value of your GSV before the condition

2) add a simple condition like '1=1' and '1=2' to see if it actually works

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: using p_web.GSV('_siteID') as a condition for display child
« Reply #2 on: March 31, 2010, 10:08:49 PM »
p_web.GSV('_siteID')  > 0

without the leading ' you had.

define: "does not like"...

cheers
Bruce

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: using p_web.GSV('_siteID') as a condition for display child
« Reply #3 on: April 01, 2010, 12:47:14 PM »
nothing special  (unless your parm is wrong)
message(p_web.GSV('_siteID') etc

But

if its a Filter don't forget to double up the quotes and such as its assigned to a string...

look in the embeditor/source  ...