problem during saving the form [message #264697] |
Tue, 04 September 2007 04:19 |
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 #265090 is a reply to message #265078] |
Wed, 05 September 2007 07:07 |
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 |
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 |
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 #267740 is a reply to message #266424] |
Fri, 14 September 2007 09:46 |
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
|
|
|