NetTalk Central

Author Topic: Alert Messages  (Read 3484 times)

obenjamin

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Alert Messages
« on: February 08, 2009, 02:16:55 AM »
Hi Guys

I need assistance with Alert messages - i have the exact code as the nettalk example in the exact place - but the alert just won't show on my side.

I require Alert messages based on Information entered on a form on the SAVE button.

Any ideas or workarounds

Thanks
Oscar Benjamin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Alert Messages
« Reply #1 on: February 08, 2009, 10:51:49 PM »
Hi Oscar,

The best idea is to post a small example of what you are doing here.
It's hard for anyone to offer advice, or correct you, if we don't know what you are doing.

Cheers
Bruce

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Alert Messages
« Reply #2 on: February 09, 2009, 01:58:14 AM »
Oscar,

If I guess your problem right, try this in the Validate All routine under 1 Start:

  if l:DateofLoss > l:DateNotified
    loc:invalid = 'l:dateofloss'
    p_web.SetValue('retry','RegisterClaimWeb')
    loc:Alert = 'The Date of Loss cannot be greater than the Date Notified.'
  elsif today()-31 > l:DateofLoss
    loc:invalid = 'l:dateofloss'
    p_web.SetValue('retry','RegisterClaimWeb')
    loc:Alert = 'The Date of Loss must fall within the last month.'
  elsif l:ContactTel = '' and l:ContactFax = '' and l:ContactCell = ''
    loc:invalid = 'l:ContactTel'
    p_web.SetValue('retry','RegisterClaimWeb')
    loc:Alert = 'At least one contact no must be supplied.'
  else
     blablabla
  .

This example should be self explanatory.  If this is not what your looking for follow Bruce's advice.

Cheers
Charl