Solved

infopath 2010 clear form data

Posted on 2010-08-24
2
961 Views
Last Modified: 2012-06-22
I have a shift report that submits data to a database that works fine.
I have three buttons on the report
One to submit to the database
One to review data from the database
And one to clear the data displayed in the form not the database (New record)
Is there any way of putting a are you sure warning box on the clear data button so the operator has to think did I submit all the data before clearing the form.
Any help or advice would be greatly appreciated
0
Comment
Question by:LeePrice
2 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 125 total points
ID: 33511489
Yah this is pretty simple.

Add a field (boolean / True / False) to your form named submit.

Default if False

Add another action to your submit that sets the submit field to true

Add a condition to your reset button that if Submit is false prompt a warning that says please submit or press reset again. Have an action that sets submit to true.

Are you doing the reset action?  You will need to make it a rules type. and then have an open and close action.

I often set the record number to 0 and run a query to reset my form to blank values rather than using the packaged reset, which is essentially closing and reopening the form.
0
 

Author Comment

by:LeePrice
ID: 33511901
thank you for the prompt reply! as Usual your a lifesaver!
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now