NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike McLoughlin on June 18, 2009, 01:34:48 PM

Title: Field is being clipped to 7 chars
Post by: Mike McLoughlin on June 18, 2009, 01:34:48 PM
Has anyone seen this?  On a form I prime a GUID field (string 16) and it shows OK as 16 chars when the form opens.

But when I save the form it gets shortened to the first 7 chars.  The picture looks to be set OK:

  If p_web.IfExistsValue('UPL:GUID')
    p_web.SetPicture('UPL:GUID','@s16')
  End
  p_web.SetSessionPicture('UPL:GUID','@s16')

The GUID field is the unique unchanging key field - could this be part of the problem?

Mike
Title: Re: Field is being clipped to 7 chars
Post by: Bruce on June 18, 2009, 10:37:33 PM
Hi Mike,

No, I've not seen this. However, what characters are in the GUID string?
Some characters need to be encoded if you use them on a web page.
There are functions to do this (and it should happen automatically) but I presume it has something to do with this.

Cheers
Bruce
Title: Re: Field is being clipped to 7 chars
Post by: Mike McLoughlin on June 19, 2009, 01:14:16 PM
Its a GUID generated by Replicate so some of them are "unprintable".

Could this be the cause of my other browse freezing???

Mike
Title: Re: Field is being clipped to 7 chars
Post by: Bruce on June 21, 2009, 10:15:49 PM
It's certainly possible, depending on which version of Replicate you are using, and when the guid was created.

I presume you're on a very recent NetTalk build?

Cheers
Bruce
Title: Re: Field is being clipped to 7 chars
Post by: Mike McLoughlin on June 22, 2009, 06:24:33 AM
I'm on 4.34

I modified the original replicate routine to restrict the range of allowable characters. But it looks like it will have to be made even tighter for web use.

Mike