Home » Developer & Programmer » Forms » skipping other when validate trigger (windows forms 6i)
skipping other when validate trigger [message #545641] Thu, 01 March 2012 08:19 Go to next message
mrdb
Messages: 62
Registered: December 2009
Location: dubai
Member

hi,

I am using when validate trigger in the item level
for baserate, markup, and rate
my requirement is
1.if markup and rate are null then all the
trigger should fire which means baserate value should show calcuating entered markup in the rate field.
2.if the rate is change markup should get change as per the entered rate
3. when second time the baserate is changed only markup should change not the rate.

how to handle this
Re: skipping other when validate trigger [message #545643 is a reply to message #545641] Thu, 01 March 2012 08:25 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
I don't quite follow what you are trying to do but if you want to stop item A's WVI trigger firing following a change to the item from item B's WVI trigger then you can set it's item_is_valid property.
Re: skipping other when validate trigger [message #545971 is a reply to message #545643] Sun, 04 March 2012 02:59 Go to previous messageGo to next message
ashussain
Messages: 35
Registered: March 2011
Location: Saudi Arabia
Member

Hi Sir,

could you please elaborate the above in detail with some example?
Re: skipping other when validate trigger [message #546008 is a reply to message #545971] Sun, 04 March 2012 10:15 Go to previous message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
Read up on the property in form builder help.
Say you have two items A and B.
Both have WVI triggers.
The trigger on A changes the value of B.
This will cause the WVI trigger on B to fire since it's changed.
If you put the following code at the end of the WVI trigger on A:
set_item_property('block.B', item_is_valid, property_true);
That will stop forms from firing the WVI trigger on B.
Previous Topic: different default.env
Next Topic: Generating sequence in Oracle forms
Goto Forum:
  


Current Time: Fri Jul 05 23:07:11 CDT 2024