In one of my customer's MOSS implementations we're using SharePoint's resident permission management to control who has access to what InfoPath forms. The issue we came across is that if a user has read-only access to a form and opens it, they can see the Update button. Clicking it does error and denies the change, and after the error the user gets the typical form closed message.
We wanted to hide the button from the view of a user who has read-only permissions to deny the error all together...
[More]
2282da15-f3c4-435f-aba2-fc24fd84c054|2|4.5
A while back I ran into this issue: I had two web parts in the same project but I wanted them to share settings. As my experience as an ASP.Net developer was pointing me to use the web.config file, instead I thought SharePoint must have something similar to this without me having to mess with the web.config file. After searching and posting on MSDN, I did finally find a solution that uses the properties of SharePoint Sites and Webs.
Below is a sample code that stores the Employee Prof...
[More]
ab44ea91-8817-4c0a-97ca-5ed26a4a4db4|0|.0
One great feature of SharePoint and versioning is the ability to have versioned comments. This can allow a small discussion to occur on almost any item. It also allows someone to keep a running log of notes on certain items.
I had the wonderful task of figuring out how to get this to work the same in InfoPath. Below is a function that will append the notes into a repeating group. On submit of the form, I call this function and it works great, everytime!
public void AddAnalystNotes(){ try&...
[More]
0822e798-92e9-44b6-879d-fb4d43023674|1|5.0
It appears my customer and I are on the cutting edge of InfoPath development with Form Services. We are CONSTANTLY running into issues and bugs. I try my best to post what we find to help anyone else running through the same issues. This issue is a doosy.
Our scenario is this: We have 3 server farms setup, one for development, one for staging and testing and one for production. We are creating InfoPath forms in Visual Studio 2008 and each have loads of codebehind (handling loading,...
[More]
60090ff6-13e6-439f-85ca-64e4a0a1c149|0|.0
I wrote a web service that queries the users in certain groups and I bound a dropdown in my InfoPath form to it. The web service requires two values, the site name and the group name. In using the InfoPath Data Connection wizard I specified the values.
We now are looking to move this form to another server (from dev to staging to prod) and this form is going to become the base for about a dozen other forms, so changing this value manually every time will become a hassel at best.
I figured out...
[More]
e1e8f6ca-fe13-40be-8ca2-d415d0afd121|0|.0
So this is quite the interesting issue. Apparently InfoPath HATES data sources that are not being used. If you have a data source that's not assigned to anything, say a dropdown list or something, then the form doesn't like life. For example, I had a data source that was in my IP form which was the lookup for a dropdown but then I replaced it with another lookup list. Now this data source is doing nothing, just hanging out, unassigned and alone. The data source gets moody, frustrated and then do...
[More]
f297b9c7-a15c-4f42-8821-acfd52988a1f|0|.0