NetTalk Central

Author Topic: Field is being clipped to 7 chars  (Read 3680 times)

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Field is being clipped to 7 chars
« 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
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Field is being clipped to 7 chars
« Reply #1 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

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: Field is being clipped to 7 chars
« Reply #2 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
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Field is being clipped to 7 chars
« Reply #3 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

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: Field is being clipped to 7 chars
« Reply #4 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


Mike McLoughlin