Home » Developer & Programmer » Forms » problem during saving the form
problem during saving the form [message #264697] Tue, 04 September 2007 04:19 Go to next message
sauk
Messages: 29
Registered: June 2007
Junior Member
Dear friends,

I 've got a database block in one form and in that i am validating all the items(text items).when certain conditions are satisfied few items are skipped.When i save the form using the save button in the menubar.It is again validating the fields which i've skipped.

my question is how to save the form without validating the skipped fields.

thanks
sera
Re: problem during saving the form [message #264960 is a reply to message #264697] Wed, 05 September 2007 02:08 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Don't populate the fields.

David
Re: problem during saving the form [message #264969 is a reply to message #264697] Wed, 05 September 2007 02:46 Go to previous messageGo to next message
sauk
Messages: 29
Registered: June 2007
Junior Member
I dint get you
Re: problem during saving the form [message #265078 is a reply to message #264969] Wed, 05 September 2007 06:25 Go to previous messageGo to next message
sauk
Messages: 29
Registered: June 2007
Junior Member
could anyone suggest me how to solve this.forgive my ignorance.i am new to forms development..
Re: problem during saving the form [message #265090 is a reply to message #265078] Wed, 05 September 2007 07:07 Go to previous messageGo to next message
induniWD
Messages: 7
Registered: May 2005
Junior Member
Do you mean to say that you have item X, Y and Z and you may/may not have a value in all 3. When saving the form you validate X & Y and leave Z out?
If this IS the case, still Z would be validated if you have set any item properties. For example, if Z's "Required" property is set to Yes, it will automatically be validated by forms.
Re: problem during saving the form [message #265107 is a reply to message #265090] Wed, 05 September 2007 07:50 Go to previous messageGo to next message
sauk
Messages: 29
Registered: June 2007
Junior Member
let me explain my problem.

As you say I have 3 Items X,Y,Z.Each item has when validate item trigger.

Case1:If the value of x is 1.I will normally navigate to Y and then to Z


Case2:If the value of X is 2.I  should skip Y and cursor has to be 
positioned to Z.In order to achieve this.In when _Validate_item of X i'm 
using set_item_property  to make Y  nonnavigable


In case 2 when I try to save the form,It is going back to the validation of Y.
I would like to save the form without validating Y.


Hope my problem is clear.

Thanks,
sera

[Updated on: Mon, 10 September 2007 20:58] by Moderator

Report message to a moderator

Re: problem during saving the form [message #265130 is a reply to message #265107] Wed, 05 September 2007 08:45 Go to previous messageGo to next message
induniWD
Messages: 7
Registered: May 2005
Junior Member
A simple answer, just see whether this is acceptable with your application
In when validate trigger of Y, perform all validations only if value of X <> 2
Alternatively you can perform all other validations of Y, if Y is not null
Re: problem during saving the form [message #266424 is a reply to message #264969] Mon, 10 September 2007 21:01 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you assigned the value 'null' to 'Y'?

David
Re: problem during saving the form [message #267740 is a reply to message #266424] Fri, 14 September 2007 09:46 Go to previous message
sauk
Messages: 29
Registered: June 2007
Junior Member
thanks for all the replies.As induniWD has suggested, In when validate trigger of Y, perform all validations only if value of X <> 2 otherwise put null for y.It is working fine..


thanks
serena
Previous Topic: How to display alert message in Forms 9i.
Next Topic: Problem with a problem in SELECT statement (merged by LF)
Goto Forum:
  


Current Time: Wed Dec 07 03:10:00 CST 2016

Total time taken to generate the page: 0.11173 seconds