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 / June 2005

Tip: Looking for answers? Try searching our database.

Closing a form and the order of processing code and rules

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike B - 15 Jun 2005 19:30 GMT
Without using a fully trusted form, is there any way to close, without
saving, an InfoPath (sp1) form progamatically?  If not, is there anyway
to specifiy what order rules and form code are processed?

I have created custom code for emailing and submitting to WSS.
Basically I call a data connection using vbscript and I would like to
close the form after it has been submitted without prompting the user
to save.

Is it possible to call a rule from code?

Thanks,
Mike
T.Coita@gmail.com - 16 Jun 2005 10:40 GMT
hi,

in infopath design mode you can define a rules on a button click that
close your form:

poperty of the button, click rules, add action and select close the
fomular!

++

Thierry
Mike B - 16 Jun 2005 14:50 GMT
Which I have done, but if I use custom code that sets fields or submits
the form to a WSS library, the button rules fire first so the form is
never submitted.
 
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.