Home » Developer & Programmer » Forms » Post-change vs Validate Item
Post-change vs Validate Item [message #479908] Wed, 20 October 2010 01:58 Go to next message
swapnil_naik
Messages: 269
Registered: December 2009
Location: Mumbai
Senior Member

Hi Friend,


Can you tell me excat diff. between when- validate -item vs.
post-change in a simple way...

Thanks you...
Re: Post-change vs Validate Item [message #479911 is a reply to message #479908] Wed, 20 October 2010 02:36 Go to previous messageGo to next message
parthaspaul
Messages: 9
Registered: December 2006
Location: KOLKATA
Junior Member

Hi,

The when-validate-item trigger fires whenever an item value is changed to any value including null.

Post-Change fires only when the value of an item is changed to a not null value. The Validate the Item process determines that an item is marked as Changed and is not NULL.
Re: Post-change vs Validate Item [message #479914 is a reply to message #479911] Wed, 20 October 2010 03:31 Go to previous messageGo to next message
swapnil_naik
Messages: 269
Registered: December 2009
Location: Mumbai
Senior Member

It means POST-CHANGE Doesnt fire when item value is null...
Re: Post-change vs Validate Item [message #479925 is a reply to message #479914] Wed, 20 October 2010 04:08 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
POST-CHANGE trigger was the only one you could use in "old" Forms versions (such as 3.0 - character mode version) if you wanted to do validation and stuff like populating non-database items upon changes on database items' values.

Now that we have WHEN-VALIDATE-ITEM and POST-QUERY, *perhaps* (which means that I'm not sure and, at the moment, can't search the documentation) POST-CHANGE is here just for backward compatibility.
Re: Post-change vs Validate Item [message #479927 is a reply to message #479925] Wed, 20 October 2010 04:16 Go to previous message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
The important point about when-validate-item is it affects an items item_is_valid property. I strongly suggest you read the the form builder help topics on that property, trigger and validation in general.

Crucially if you get an error in a when-validate-item trigger you will not be able to save the current record until the trigger is re-run without error.
Previous Topic: When Pressed F-11 & Ctrl F11 Buttons ,screen doesnt turn blue
Next Topic: How to give pass parameters to the set_menu_item_property ?
Goto Forum:
  


Current Time: Thu Sep 19 12:25:45 CDT 2024