Hello,
I extensively utilize much of the information on this site in order to enhance my InfoPath (etc) development skills; I appreciate the responses and contributions of everyone because they are extremely helpful. I have an issue, for which I cannot seem to find a solution, despite hours of searching.
We have a large communal display in which we would like to display "alerts". The Alerts are controlled using SharePoint; a Library in which each record is an Alert. We have another mechanism that will interrogate this SharePoint Library to show the Alerts on the display. Furthermore, one data attribute (Location - the location to which the Alert pertains) needs to be filtered. For example, if your location was "Kitchen", you shouldn't be able to select "Toilet" as that particular seat belongs to the "Washroom". Seems pretty simple (and it is), but what I am struggling with is the interface.
I started with a Custom SharePoint List. I then customized the form using InfoPath. Then I decided to create a "management" page for the end-users which would display the currently active Alerts for your area, allow you to close Alerts (e.g. conclude the record's lifecycle), and allow you to raise new Alerts. This management page is Web Part page that is saved within a Wiki Library. This Wiki Library has an additional column "Area" which will allow me to make a managemet page pertain to a certain area/location only (e.g. Kitchen/Washroom example above).
The management page contains the following:
- A Web Part that contains the Alerts List. This displays the active alerts only.
- A Web Part that displays the InfoPath edit form.
- A Web Part that displays the InfoPath insert form.
- A Page Field Filter Web Part. This allows me to specify to which area the page pertains and have that info available to SharePoint/InfoPath.
The InfoPath form is only one form with multiple views. The Web Parts work together thusly:
- Web Part (4) sends the area data to Web Part (1). Using that data, we filter by location. This ensures that the list only displays active alerts for that area
- Web Part (1) sends a row of data to Web Part (2). This allows users to click on the list (1) and have the details of that record appear in Web Part (2), which they can then edit
- Web Part (4) also sends the area data to Web Part (3). This allows InfoPath to be aware of which area we’re in so we can filter the location values in the form
The specific problem I am having is that within Web Part (3), the idea is to be able to raise an Alert, have it submitted, and then clear the form to be able to enter another Alert. When I attempt to submit/insert multiple entries, InfoPath displays a generic error: “The form cannot be submitted. There has been an error while processing the form.” I have checked the log entry and it does not tell me specifically why it is failing, however, I suspect that I am not correctly clearing the data before submitting.
I have tried the following strategies with no success:
- Manually clearing every field
- The “New record” button
- Re-querying the query fields with dummy data
I am looking for information on how to solve the above issue, and perhaps some comments/advice/best practices regarding the approach taken.
Sorry about the length of my post…
--sbmdb