NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on March 31, 2010, 08:56:38 AM

Title: using p_web.GSV('_siteID') as a condition for display child
Post by: rjolda 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
Title: Re: using p_web.GSV('_siteID') as a condition for display child
Post by: kevin plummer 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
Title: Re: using p_web.GSV('_siteID') as a condition for display child
Post by: Bruce on March 31, 2010, 10:08:49 PM
p_web.GSV('_siteID')  > 0

without the leading ' you had.

define: "does not like"...

cheers
Bruce
Title: Re: using p_web.GSV('_siteID') as a condition for display child
Post by: Poul 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  ...