NetTalk Central

Author Topic: 4.31 - Check Box Problem Too - My DCT Defaults Cause Errors  (Read 4725 times)

zdpl0a

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email

I also seem to be getting this problem on my check boxes.  - Not all of them...


CompleteCheckBoxes  Routine
          If p_web.IfExistsValue('WEB:Commercial') = 0
            p_web.SetValue('WEB:Commercial',N)
            WEB:Commercial = N
          End
          If p_web.IfExistsValue('WEB:Residential') = 0
            p_web.SetValue('WEB:Residential',N)
            WEB:Residential = N
          End
          If p_web.IfExistsValue('WEB:WebFilter') = 0
            p_web.SetValue('WEB:WebFilter',N)
            WEB:WebFilter = N
          End


Does anyone have the easy answer ?  All the N's after the equal signs are 'unknown identifiers'


Thanks,

Dave

zdpl0a

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
Re: 4.31 - Check Box Problem Too - My DCT Defaults Cause Errors
« Reply #1 on: June 19, 2008, 11:42:03 AM »
Found this one too - a walk away from it was all it took...

My DCT has the true false set to 'Y'  & 'N'    Worked fine before..

With 4.31 - the prompts on the WebNetForm listed the true false options as 1 and 0

Changed the true false options on the NetWebForm to 'Y' and 'N'

Sorry to bother evveryone... 

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: 4.31 - Check Box Problem Too - My DCT Defaults Cause Errors
« Reply #2 on: June 19, 2008, 04:55:59 PM »
Hi Dave, Except for Bruce, I think most of us here are newbies, and as such, I have a bit of a difficult time following what you're asking. What error does it cause? I generally have found it better not to try to do much logic in the dictionary, but rather handle it in NetTalk Web (NTW) if possible. So I might set a check box up as a byte in the dictionary, but not try to give it any attributes, then work with constraints and conditions on the NTW front end. Of course this is a problem if you're also using the dictionary to generate a Win app. But all in all, I'm not quite sure what error or problem you're having.
Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: 4.31 - Check Box Problem Too - My DCT Defaults Cause Errors
« Reply #3 on: June 20, 2008, 03:14:26 AM »
Hi Dave,

Your posting here was helpful in isolating a small template bug. So please don't apologize for posting. The template code assumed the checkbox would have a numeric value set in the dict, and this isn't the case.

Your work-around is fine, no problems there, but you shouldn't have had to do it. I've fixed the template for the next build.

Mike -

<< I generally have found it better not to try to do much logic in the dictionary, but rather handle it in NetTalk Web (NTW) if possible.

It's always better if the template supports the dictionary settings directly without additional work. If you find dictionary settings that don't work please let me know - that's usually a bug.

Cheers
Bruce