NetTalk Central

Author Topic: How to fire a form error from a browse button  (Read 1978 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1869
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
How to fire a form error from a browse button
« on: April 19, 2013, 09:35:26 AM »
Hi,
Memory from with a browse and some entry fields.
The browse has a button in each record whith some code to insert an check if it can insert the record.
How can I fire a form error using los:invalid and loc:alert as I do in an entry field?
Thanks!
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: How to fire a form error from a browse button
« Reply #1 on: April 19, 2013, 10:38:39 PM »
I think you can just do a

p_web.Popup('No Way, Jose!' , net:Send)

in the code for the browse button.

(Of course if the button is "in row" it would be better to not have it there in the first place if it's not allowed.)

Cheers
Bruce