.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

NullReferenceException was unhandled - from infopath to sharepoint calender.

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :SharePoint
 
Hi guys, I'm trying to create a infopath form that can send data to a sharepoint calender (list) - i used these two sites as guide lines, but i cant seem to get the VB code working.. ive tried for 3 hours today, and now i have to ask for help :)   Links: http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx http://www.bizsupportonline.net/infopath2007/programmatically-add-item-sharepoint-calendar-infopath.htm   My VB code looks like this: Imports Microsoft.Office.InfoPath Imports System Imports System.Xml Imports System.Xml.XPath Namespace bagvagt Public Class FormCode ' Medlemsvariabler understøttes ikke i webbrowseraktiverede formularer. ' I stedet for kan du læse, skrive og læse disse værdier i FormState- ' ordbogen ved hjælp af kode, som f.eks. følgende: ' ' Private Property _memberVariable() As Object ' Get ' _memberVariable = FormState("_memberVariable") ' End Get ' Set ' FormState("_memberVariable") = value ' End Set ' End Property ' BEMÆRK! Den følgende procedure kræves af Microsoft InfoPath. ' Den kan redigeres ved hjælp af Microsoft InfoPath. Private Sub InternalStartup(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Startup AddHandl


View Complete Post


More Related Resource Links

NullReferenceException was unhandled - from infopath to sharepoint calender.

  
Hi guys, I'm trying to create a infopath form that can send data to a sharepoint calender (list) - i used these two sites as guide lines, but i cant seem to get the VB code working.. ive tried for 3 hours today, and now i have to ask for help :)   Links: http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx http://www.bizsupportonline.net/infopath2007/programmatically-add-item-sharepoint-calendar-infopath.htm   My VB code looks like this: Imports Microsoft.Office.InfoPath Imports System Imports System.Xml Imports System.Xml.XPath Namespace bagvagt Public Class FormCode ' Medlemsvariabler understøttes ikke i webbrowseraktiverede formularer. ' I stedet for kan du læse, skrive og læse disse værdier i FormState- ' ordbogen ved hjælp af kode, som f.eks. følgende: ' ' Private Property _memberVariable() As Object ' Get ' _memberVariable = FormState("_memberVariable") ' End Get ' Set ' FormState("_memberVariable") = value ' End Set ' End Property ' BEMÆRK! Den følgende procedure kræves af Microsoft InfoPath. ' Den kan redigeres ved hjælp af Microsoft InfoPath. Private Sub InternalStartup(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Startup AddHandl

InfoPath 2010 cannot connect to SharePoint 2010

  
You have installed Office 2010 beta and you are trying to connect to SharePoint 2010 from InfoPath but you get an error

Insert image into Infopath form and save to SharePoint as PDF file

  

I have an InfoPath web-enabled form in MOSS 2007, that is integrated with a K2 blackpoint process for an approval workflow.

Once the form (a Purchase Order request form) has been approved in the K2 workflow process, I switch the form view to a "print-friendly" view for the requestor to view from the browser.  However, now I need to go one step further with this scenario:

1) I need to somehow insert/embed an image with the scanned-in signature of the approver (likely stored in a SP doc library) at the signature line section of my form.  Also, what are the security requirements for storing such images, but not granting all users access to these (e.g. only services accounts that need to access this for embedding into the form, etc.)?

2) Then I need to convert this final "print-friendly" view of the form (with the signature image) to a PDF document so that I can store it in SharePoint (and email it to the requestor using K2's email event capabilities).

Can anyone help me with a solution to both of these requirement, or point me to some resources for this (even 3rd party components are open-game).

thanks!


--Thiago

How to read a column of a sharepoint list to a text string field of infopath form?

  
My infopath form used to read these email addresses from a web service and web.config file. Now i would like to get these user email addresses from a contact list in a sharepoint server. I am trying to do this without writing any codes. Here is what i have done so far: 1. Adding a new "data connection to receive data from SharePoint library or List" where i selected Email Address column of the contact list. 2. I added a new Text Field and define a new rule with "Query using a data connection" defined above. When i try to access the newly created Text field above it always return empty as if the Query attached to it did not executed at all. What did i do wrong? Is there a better way? Thank you in advance for your help.

How to create SharePoint workflow[Visual studio] with Infopath multiple views?

  
Hi Every body,I have Travel Request infopath form with 3 views(Requester/Manager/Traveldesk).Ones the user submitt the data then workflow will be start. In manager view he will select next level approver also. Ones manager approve/reject then pass to Traveldesk and they will forward travel inforamtion to user.I am new to workflow so How to approach my requirment any ideas and examples.Thanks in advance  

Infopath Brower enabled form not visible in the sharepoint library after being submitted

  
Hi, I have created a infopath browser enabled form to submit to a sharepoint form library, however the submitted forms are not visible in the sharepoint link structure.   I'm able to see them in the SPD structure.  I'm using infopath 2007 and MOSS. I actually created a SPD workflow which retrieves specific values from the submitted form and saves it to another sharepoint list. This works fine even if the forms are not visible. Appreciate any help. Thanks

InfoPath Form not showing up in Sharepoint Form Library

  
I have set up a template form setup that users can fill out and then by pressing the submit button sends an email.My current issue is, when I publish the form to sharepoint, I don't see it, I have sharepoint set to view all documents and I still don't see it.  I can get to the form by clicking the "view my form in browser" pop up after I'm done publishing it.  I would like the users to just be able to click on a link in the library, but I can't find where it was published.Any insight on this would be great thanks.

How to use InfoPath without the client and without SharePoint

  
I have a question on this same issue. I am task with designing an InfoPath form in a non-SharePoint/webserver/service environment. The form should be used for 3 end users. End user 1 will recieve the form, fill it out send it to end user 2 and then to end users 3 for review and approval. ONLY end users 2 and 3 may have infopath on their PC. How is this possible? Also, when I send the actual form ( non-published or published) to end user 1 an error message says infopath can't open the form. I would really like some help. I read that I need to remove the script/code from the programming language, which i did. Any help will do the trick. PMA 

Changing fields while updating an InfoPath Form to a SharePoint 2010 Document library

  
My document library has following EventReceiver: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Receivers ListTemplateId="101"> <Receiver> <Name>EventReceiverDocumentLibraryItemUpdating</Name> <Type>ItemUpdating</Type> <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly> <Class>EventHandling.EventReceiverDocumentLibrary</Class> <SequenceNumber>10000</SequenceNumber> </Receiver> </Receivers> </Elements> Updating a browser enabled InfoPath form in the document library fires following event: Public Overrides Sub ItemUpdated(ByVal properties As SPItemEventProperties) Try Me.EventFiringEnabled = False properties.ListItem("Lastname") = "Testperson" properties.ListItem.ParentList.ParentWeb.AllowUnsafeUpdates = True properties.ListItem.SystemUpdate(False) ' solution 1 properties.ListItem.Update() ' solution 2 properties.ListItem.UpdateOverwriteVersion() ' solution 3 properties.ListItem.ParentList.ParentWeb.AllowUnsafeUpdates = False Me.EventFiringEnabled = True MyBase.ItemUpdated(properties) Catch ex As Exception Me.EventFiringEnabled = True E

Submitting InfoPath data to a SharePoint 2007 List

  
Clayton, i sure hope you get this.  I would like to let the form get published to the form library and then workflow can create the new list item with all the required metadata mapped.  if data is updated i would like for the list item data to update as well.  currently i have an infopath form that is web-enabled.  i several views based on a status field as which view to open to.  this form have drop-down fields linked to list already on the sharepoint site.  i have tried using the "Submitting Data from Infopath 2007 to Sharepoint List" and it works as designed but unfortunately i cant customize the fields.  i need a dynamic user friendly form with drop downs etc.  any suggestions?

Sharepoint Calender and Tasks

  
Hi friends, Thanks for your previous responses, now i ahve a problem with sharepoint 2010 calender and tasks. My site designed on formbase authentication.Is there any option  to configure calender and tasks to Outlook 2003. I added Calender As well Tasks webparts to my page and i gave Exchange server url and mailbox in the webpart properties  First time it was connected, when i connected second time it was giving error is Access denied. And is there any other way to configure to outlook. Could you please any one help me ,to find the solution. Solution must be appriciated........ Thanks Prasad

Updating an InfoPath Form Library Template breaks preexisting SharePoint List Views

  
When updating an InfoPath template (e.g. adding a new field), any views I have created on the library lose their filters and sorting, as if the columns on which they were built no longer exist.  Has anyone else encountered this and, if so, is there a solution? V/r Noelle

How to prevent automatic update from sharepoint list on Infopath 2007 form

  
Hi there, I've got an Infopath 2007 form on MOSS 2007. I have a custom list in sharepoint and the infopath form has a data connection to that list to receive data. Is there any way to prevent automatic update on the values in the form that is received from the list. I'd like the new form to have updated info received from the list. However, the old/existing forms that were created should have the data that were available at the time when the form was created. Let me know if this is not clear and I'll try to explain more. Thanks,Pman http://www.pmansLab.com/

Sharepoint workflow with infopath

  
Hi all… I work with SharePoint 2007 workflow with InfoPath forms like these steps 1-       Workflow Activates : On workflow Activated Code: { I wrote the XmlSerializer to get information from init form to use it    } Send Email    set all properties + set code Create Task   set all properties + set code Code Activity set all properties + set code 2-      Info path Forms I prepare the initiation info path form and all components properties like submit …......... Then: InfoPath, click Tools ? Form Options.   Security and Trust category   Select the Domain radio button.                              Then:               Publish:  In the Publishing wizard , publish To a Network Location then               Click the Browse button and navigate to your solution folder.               Make sure that the FormTemplate Name is set to InitForm and click Next         &nbs

Sharepoint Calender in personal Outlook Calendar

  
Hello,   my project manager wants to have all the meetings he creates on sharepoint automaticly visible into his personal outlook. No fancy overlay or 2e calendar, he wants it all in 1 Calendar. What woudl be the best way to develop this? I was thinking of a reusable workflow/action which inserted the data with Exchange web services. would this be the best/fasterst way ?   thanks for reading, Andy

submit infopath 2003 form to a sharepoint list

  
hi, is it posible to add  an infopath 2003 form to a sharepoint list, not document library but a list. and can i create views from the infopath 2003 form?

sharepoint workflow with infopath form

  
Hi all... when i deploy workflow with initation and task infopath forms, these forms uploaded into central admin But: status: installing workflowenable:No and no category or version then when I activate this forms this message appearence : This form template cannot be activated because it is still being uploaded to the farm. Wait until the form template's status is Ready and try again as aresult when activate my workflow, the initiation form unloaded and get error message so what 's the problem?????????????? Thanks
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend