NetTalk Central

Author Topic: Browse Validate problem  (Read 2452 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Browse Validate problem
« on: April 17, 2013, 03:10:22 AM »
Hi,
I´m setting a field in the Set Queue Record:

tablas{prop:sql}='yadayadayada....'
next(TABLAS)
IF TAB:CLAVE=0 or TAB:FUNCION=0
    Cumplido = 'OK'
else   
    Cumplido = 'Pendiente'
end   

Cumplido is a Local Variable that is populated in the browse itself.

In the validate embed I add:

IF Cumplido='OK'
      CYCLE
END

This works ok for all records exept the first one.
The first record in the browse is allways there.

Do I need to validate it in another embed too?
Thanks

-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse Validate problem
« Reply #1 on: April 17, 2013, 09:45:11 PM »
SetQueueRecord and ValidateRecord are not "related".

the system can call just one of them - or both, or in some case both in a reverse order.

So do all the validation you need in ValidateRecord, and all the Queue setting you need in SetQueueRecord.

cheers
Bruce