NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: peterH on September 29, 2010, 07:50:37 AM

Title: p_web.site.DateOptions unknown?
Post by: peterH on September 29, 2010, 07:50:37 AM
Hi,
Trying to set global options for the date picker in the webhandler proc. It works in one app and not in another - and I've copied the code!

I get unknown identifier for 'p_web' and field not found for 'site' and 'dateoptions'.

Am I missing something obvious here? For all I know the apps are set up the same way.

Peter
Using latest NT5WS build.
Title: Re: p_web.site.DateOptions unknown?
Post by: kevin plummer on September 29, 2010, 03:06:24 PM
Try to use Self or change the Object name on the General Tab of the Template of the WebHandler procedure to p_web
Title: Re: p_web.site.DateOptions unknown?
Post by: peterH on September 30, 2010, 12:12:53 AM
Hi Kevin,

I already tried self before posting here.

Turned out to be the object name. This is the first app I created from scratch (rather than copying from the examples) to test my understanding of the concept. Looks like I failed <g> But then again, that's how you learn.

Thanks for teaching me.

Peter