NetTalk Central

Author Topic: p_web.site.DateOptions unknown?  (Read 3196 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
p_web.site.DateOptions unknown?
« 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.

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: p_web.site.DateOptions unknown?
« Reply #1 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

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: p_web.site.DateOptions unknown?
« Reply #2 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