Home Forum NetTalk Wiki Download/Upload Links Search Fat Chat
Links

Clarion

Clarion Desktop
Capesoft

Java Script

Java Calendar

NetTalk WebServers

POSitive Connect

Clarion Sites

Pimp my Clarion

RSS Feeds

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati
Add to BlinkBits

Site Stats

Visits today: 72
Visits yesterday: 178
Visits month: 1069
Visits total: 122295
Max.monthly visits: 6414
  occurred: 2010-8
Pages this month: 5009
Pages total: 683845
Data since: 2007-06-23
Home arrow Forum arrow NetTalk Web Serverarrow Web Server - Ask For Helparrow ValidateUpdate embed and Alert message
NetTalk Central
September 07, 2010, 06:47:59 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ValidateUpdate embed and Alert message  (Read 80 times)
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« on: July 28, 2010, 12:06:13 am »

Hallo,


I have in a form in ValidateUpdate embed , some code to check if a value is true or false. After this code I have another code which is executed only if the above is true. When I press the save button and the value of my variable is false then a message popup and return to form. All is ok. After some tests I found out that after the validate popup message it run the code which is after the alert message. Bellow is my code.

  IF MEM:X = 0
     loc:invalid = 'MEM:X'
     p_web.SetValue('retryfield','UpdateMembri')
     loc:Alert = 'Please confirm !'
  END

! Here is the code  which run only if the MEM:X = 1
.....


It is ok if the validation faild,  to run the code which is after the validation?


Thank you for any advise.

Regards,
Robert
Logged
michelis
Hero Member
*****
Posts: 581


alberto_michelis@hotmail.com
View Profile WWW Email
« Reply #1 on: July 28, 2010, 03:32:39 am »

Robert,
You can have many validations and they are arrange in a cascede of validations, the user see the last validation in the cascade.
If you need yo check one validation first, then you need to place it last.
Hope this helps
Alberto
Logged
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #2 on: July 28, 2010, 10:48:09 am »

yes, the idea is that if you have say 4 invalid fields on the form then all 4 display as invalid at the same time.
much better than showing the user 1, then they click save, then show them another one, and so on.

Of course immediate validation is much better.

cheers
Bruce
Logged
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« Reply #3 on: July 28, 2010, 09:32:33 pm »

Ok, understand now. Also  there is any code to stop validation and return ?

Thank you all.
Robert
Logged
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #4 on: July 30, 2010, 11:39:52 pm »

sure, just
EXIT
the routine
Logged
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« Reply #5 on: July 31, 2010, 09:28:22 pm »

Thank you Bruce,
It works perfect.
Robert
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register

ClarionMag News

mod_dbrss2 AJAX RSS Reader poweredbysimplepie
home contact search contact search