NetTalk Central

Author Topic: Problem with lookup and no description value  (Read 4381 times)

spot1701

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Problem with lookup and no description value
« on: April 01, 2011, 03:15:56 AM »
Nettalk 5.20

If I have a standard string on a form that is a lookup, and the lookup is a popup. With a lot of these popups, I only require the value to be returned, I don't want a description as well, but I have problems if I leave description blank, e.g.:



- When I open the popup and select and entry:



- Rubbish is put into the field:



- If I fill in the description field, it works correctly:






Thanks

Bryan
Thanks

Bryan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem with lookup and no description value
« Reply #1 on: April 01, 2011, 10:57:58 PM »
Filling in the description field, even if it's with the same field as the code field, as you've done, is a good idea.

cheers
Bruce

spot1701

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: Problem with lookup and no description value
« Reply #2 on: April 04, 2011, 04:11:39 AM »
Filling in the description field, even if it's with the same field as the code field, as you've done, is a good idea.

cheers
Bruce


Ok, if popups no longer work without description then you should probably force it in the prototype for the procedure:

GetDescription         PROCEDURE (FILE p_file,<KEY p_key1>,<KEY p_key2>,*? p_valuefield,<*? p_descfield>,String p_value)
Thanks

Bryan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem with lookup and no description value
« Reply #3 on: April 04, 2011, 05:03:25 AM »
GetDescription is also used in non-popup sites, and I suspect it's less required there.

cheers
Bruce

spot1701

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: Problem with lookup and no description value
« Reply #4 on: April 05, 2011, 07:41:47 AM »
GetDescription is also used in non-popup sites, and I suspect it's less required there.

cheers
Bruce

Indeed. That's sort of what I was getting at: the inconsistency between the two methods of doing the same thing.
Thanks

Bryan