SharePointed

All things SharePoint

SharePointed header image 4

Entries Tagged as 'InfoPath'

infopath object reference not set to an instance of an object

July 28th, 2010 · No Comments

using VSTA / codebehind i was getting a object reference not set to an instance of an object error.
turned out i fat-fingered some code.
make sure to check the fields you are referencing.
example:
bad -
Dim sAttchID As XPathNavigator = nav.SelectSingleNode(“/my:theAttachmentLibID“, Me.NamespaceManager)
good -
Dim sAttchID As XPathNavigator = nav.SelectSingleNode(“//my:theAttachmentLibID”, Me.NamespaceManager)

[Read more →]

Tags: InfoPath

The Web application at SITE could not be found.

July 19th, 2010 · No Comments

Error:
The Web application at http://site/Forms/AllItems.aspx could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
at Microsoft.SharePoint.SPSite..ctor(String [...]

[Read more →]

Tags: InfoPath

InfoPath Hyplerlink opens as Read Only

June 25th, 2010 · No Comments

Recently ran into an issue where you place a hyperlink on a InfoPath form, user clicks the link, the item opens as read-only, no Edit Document option.
The fix is to do a regedit to allow for editing of the document.
example
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Internet]“OpenDocumentsReadWriteWhileBrowsing”=dword:00000001
in the Common\Internet folder you would create a new DWORD value OpenDocumentsReadWriteWhileBrowsing and assign it a [...]

[Read more →]

Tags: InfoPath · SharePoint

InfoPath Loop in a Repeating Table

June 14th, 2010 · No Comments

This will help you loop through a Repeating Table in InfoPath.  group2 is the name of my Repeating Table. sFunction is a function I use to check if a value has been updated in a SharePoint Library or List. If the value returned from the function does not match what I have in my drop [...]

[Read more →]

Tags: InfoPath

InfoPath Get Name Field from Data Connection and more

May 19th, 2010 · No Comments

Using a combo of a View and Data Connection we will be able to grab ALL of the fields from a List or Library.
1. Open a Text file so you can paste stuff into it.
2. Open the site you want to gather the data from.
3. Navigate to Site Action > Site Settings
4. Under General Settings [...]

[Read more →]

Tags: InfoPath

InfoPath get current username

April 27th, 2010 · No Comments

If you are looking for a way to capture the login user name in InfoPath try this.
Dim sUserName As String = System.Enviroment.UserName
If you want to capture user name from SharePoint try this:
http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx

[Read more →]

Tags: InfoPath

Things to remember when migrating to a new farm

April 14th, 2009 · No Comments

I will continue to update this list…
1. Check your new Farm for blocked file types.
Central Administration > Operations > Blocked File Types
2. InfoPath forms.  Make sure you check that your forms are working in the new Farm.  In my case, the forms had the old URL and wouldn’t work.  I had to also update / [...]

[Read more →]

Tags: InfoPath · SharePoint

How to Relink Multiple InfoPath Forms in SharePoint

April 8th, 2009 · 5 Comments

After our farm migration, we realized that our new domain name and InfoPath didn’t get along.  Our old domain name was a simple http://intranet and all the InfoPath Forms were linked to that name.  After being asked to re-link several thousand forms (clicking one at a time) I started looking around the web for a [...]

[Read more →]

Tags: InfoPath · SharePoint

Duplicate results when searching for a person in SharePoint 2007

September 2nd, 2008 · No Comments

 I was seeing duplicate people returned when searching for someone.  Here are a few things I did to locate and fix the problem.
First, check the People scope in the SSP.
Shared Services Administration: SharedServices1 > Search Administration > Scopes
http://moss1:8888/ssp/admin/_layouts/viewscopesssp.aspx?mode=ssp
This scope should have a rule of:
contentclass = urn:content-class:SPSPeople
     Behavior: Require
Take not of the Item Count.
Now take [...]

[Read more →]

Tags: InfoPath

InfoPath 2007 – There has been an error while loading the form

January 4th, 2008 · 2 Comments

You updated an existing template with some new fields and data connections then published the form to the library. now users are unable to open any of the older forms they had saved. before the current update users were able to open all the forms with ie.
Error:

There has been an error while [...]

[Read more →]

Tags: InfoPath