Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2006

Tip: Looking for answers? Try searching our database.

IP2007 : Custom Save Button (avoid validation rules)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hurtlingturtle - 15 Aug 2006 11:58 GMT
Hi,
I am using Infopath 2007 beta2 and need to have multiple buttons which
may or may not submit the data to the Sharepoint workflow and also
perform appropriate validation or not.  What I need is for some of
these buttons to ignore all validation rules eg: when they press a hold
button which means that they have not finished entering the data.
Since my form is huge and based on an agreed XML Schema I do not want
to alter all of the validation rules to include a check against a new
field.

Surely there is a way in Infopath 2007 to plug into the standard save
functionality which as far as I can see completely avoids all
validation, as well as rather handily avoiding triggering the
underlying workflow.
oh yeah, also when I press my hold(save) button I need to set some xml
field values, so I can't just train users to use the standard save
button as diff "save" buttons will set diff field values.

any cunning ideas?
thanks very much
cheers
Bruce
hurtlingturtle - 16 Aug 2006 14:30 GMT
Hi All,
Well, I've continued investigating this further and my findings are as
follows.....

1. When concatenating fields using rules you cannot put in newlines,
you can only do this through code
2. You cannot have both code on a button click event and also have a
"close the form" rule on the same button, this in IP client stops the
code from executing; but in forms server it makes the web page get
stuck and displays a msg saying "Form Closed" and at the same time a
looping message saying "Form Loading".... weird...
3. It is possible to trigger a submit from code, but not a save or
close form
4. You can clear the errors buffer and therefore remove all validation
errors from a form through code

Based on the above findings the only (watch out this gets nasty)....
way that I can see to implement a custom submit button which ignores
validation is as follows.....
1. Create your button that executes your code and clears the errors on
a view
2. Make this button also through code switch to another view eg: one
called say "Closure"
3. On this new view have a nice big button called "Close me now" (with
a rule to close the form), and the user clicks this to close the form.

this is an extremely nasty and non-user friendly solution, please
please please can someone help me find a solution that works and is
nice and friendly to the user???
Surely Infopath is better than this???

thankyou very very much
cheers
Bruce
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.