Home » Developer & Programmer » Forms » validate a text item with the value of another
validate a text item with the value of another [message #263249] Wed, 29 August 2007 08:50 Go to next message
sauk
Messages: 29
Registered: June 2007
Junior Member
In my datablock I have 2 text items, my need is if both the values of the text item is false i ve to skip few fields otherwise i have to navigate normally to the next item.how to achieve this?

I am using when_validate item trigger. Is it possible to check the value of the first item in the second item's when-validate_item trigger.


Thanks
Sera

[Updated on: Wed, 29 August 2007 08:54]

Report message to a moderator

Re: validate a text item with the value of another [message #263346 is a reply to message #263249] Wed, 29 August 2007 15:18 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Obviously, you have written a WHEN-VALIDATE-ITEM (WVI) trigger. It's been more than 6 hours since you wrote a message here, so I just wonder if you, actually, tried to validate first item's value in the second item's WVI trigger?

Don't use GO_ITEM in the WVI trigger - it is a restricted procedure and can not be used there. Use SET_ITEM_PROPERTY built-in; set 'enabled' or 'navigable' items' properties to FALSE (if you don't want to navigate to those items) or TRUE (if you'd still want to get in there).
Re: validate a text item with the value of another [message #263403 is a reply to message #263249] Wed, 29 August 2007 23:48 Go to previous messageGo to next message
azamkhan
Messages: 557
Registered: August 2005
Senior Member
I think you can check the value on WHEN-VALIDATE-ITEM and if the value is false then make the fields disable on which you dont want to send your navigation.

Regards,
Azam Khan
Re: validate a text item with the value of another [message #263560 is a reply to message #263403] Thu, 30 August 2007 06:23 Go to previous message
sauk
Messages: 29
Registered: June 2007
Junior Member
sorry for the delayed reply!!its working!Thanks

sera
Previous Topic: I wanna asking about D2K
Next Topic: who insert webutil in oracle 10g
Goto Forum:
  


Current Time: Mon Mar 10 12:32:34 CDT 2025