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


Post New Web Links

InfoPath Pulling incorrect account info from SharePoint

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :SharePoint
 
I am new to the world of Sharepoint developing and I'm having a slight problem. I have 3 different accounts that I use for sharepoint for myself. A low end account, a high end account, and a sharepoint system account. I almost always use the system account as it has full priveledges for me to do everything I need to. I have developed an InfoPath form that pulls the sharepoint user info using the getuserprofilebyname function and it seems to work fine for everyone who opens the form except for me. When I am logged into sharepoint under my low end account on my computer and I open the form it autopopulates the user name text box with "Share Point" which I imagine is the user name for the sharepoint system account. I really need it to pull up my own name for testing purposes so that I can avoid having to use another pc to open the form or having my co-workers open the form on their pc's. Any ideas on why I can't get it to pull my account info?


View Complete Post


More Related Resource Links

Sharepoint Designer worflow dont start due to infopath "system account" submission

  

After lot of search i was able to submit the browser enabled infopath form to sharepoint library as anonymous user using following link

http://blog.metrostarsystems.com/2009/06/04/anonymously-submit-infopath-form-to-sharepoint-library/

but the form submit as system account, which makes the sharepoint designer workflow not working on the forms library.

so can any body help me in resolving the code to impersonate user in the infopath submit button.

public void CTRL19_5_Clicked(object sender, ClickedEventArgs e)   
        {
            string siteStr = "http://sharepointwebapplication/";
            SPSite tempSite = new SPSite(siteStr);
            SPUserToken systoken = tempSite.SystemAccount.UserToken;
            using (SPSite site = new SPSite(siteStr, systoken))
       

Sharepoint Designer worflow wontstart due to infopath "system account" submission

  

After lot of search i was able to submit the browser enabled infopath form to sharepoint library as anonymous user using following link

http://blog.metrostarsystems.com/2009/06/04/anonymously-submit-infopath-form-to-sharepoint-library/

but the form submit as system account, which makes the sharepoint designer workflow not working on the forms library.

so can any body help me in resolving the code to impersonate user in the infopath submit button.

public void CTRL19_5_Clicked(object sender, ClickedEventArgs e)   
        {
            string siteStr = "http://sharepointwebapplication/";
            SPSite tempSite = new SPSite(siteStr);
            SPUserToken systoken = tempSite.SystemAccount.UserToken;
            using (SPSite site = new SPSite(siteStr, systoken))
            {
      &

Pulling data from SQL tables in a Sharepoint Workflow based on an InfoPath form submission

  

I'm not sure this is the right forum for this, but here goes:

I'm creating a workflow that kicks off when a user submits an InfoPath form to a form library on a Sharepoint 2007 platform.  The workflow should find the manager of the user that submitted the form from SQL and email that person for approval before the next step is run.  Is this possible in Sharepoint 2007 or is using SQL in a workflow only a feature of Sharepoint 2010?

Thanks in advance


SharePoint 2007 - Import from User Info List into InfoPath 2007

  
We are using Sharepoint 2007 with InfoPath 2007 and are trying to pull names from the UIL and display the name last name first.  Such as Smith, John.  It seems to pull and display first-name first.  Any way of displaying last name first? Thanks for the assist.

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

File Attachments from info-path forms to Sharepoint document library

  

Hi Experts,

How to upload file attachements from info-path forms to Sharepoint document library?

I need to add attachement from local-PC/Any User to Sharepoint Document Library.

 

Any help please?? Appreciated

 

Regards,

Kumar


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.

Central Administration no longer accessible by any account after changing Farm Account in SharePoint

  
I have a problem, that I no longer can access Central Administration Website, only the Sharepoint itself. I was running installation of Sharepoint 2010 Server with administrative account ImTheAdmin, who is a Domain Admin in the MYDOMAIN domain. Using ImTheAdmin I installed Sharepoint 2010 on one of the Windows 2008 R2 member servers. Besides that, I made ImTheAdmin the primary administrator of the Sharepoint. ImTheAdmin became the only user of this Sharepoint 2010 server after installation.  I installed everything on one box with default installation settings. I used builtin SQL server, not Standard or Enterprise. What then happened is: Using ImTheAdmin account, I opened Central Administration Website, and it said, that I need to change the Farm Account, as the account for Farm was the default one (I think it was network service). So I created a regular domain user in AD Users and Computers called MYDOMAIN\SPFarmAccount. Then using IE, I went to the Central Administration Website page, which is meant for changing farm account usernames. I put in MYDOMAIN\SPFarmAccount down in to the form of Central Administration Website, added the check mark, that it would react to password changes, and pressed Change. Browser worked for a while, and after that nothing seemed to work. Neither my Sharepoint, nor Central Administration website. When going to Central Administra

Failed to change Farm Account in Sharepoint 2010 server, now Central Administration is not accessibl

  
Hello, I have a problem, that I no longer can access Central Administration Website, only the Sharepoint itself. I was running installation of Sharepoint 2010 Server with administrative account ImTheAdmin, who is a Domain Admin in the domain on one of the Windows 2008 R2 member servers. Besides that, I made ImTheAdmin the primary administrator of the Sharepoint. ImTheAdmin became the only user of this Sharepoint 2010 server after installation.  I installed everything on one box with default installation settings. I used builtin SQL server, not Standard or Enterprise. What then happened is: Using ImTheAdmin account, I opened Central Administration Website, and it said, that I need to change the Farm Account, for the account for Farm was the default one (I think it was network service). So I created a regular domain user MYDOMAIN\SharepointFarmAccount. The account name was too long to be as a Windows 2000 name, so it showed there without last 't', e.g. MYDOMAIN\SharepointFarmAccoun. I thought, Windows 2000 is long gone, so I didn't pay much attention, I think everywhere the account SID is important. I don't know if that is the real problem with my failure later, but it might be one of the reasons. I put MYDOMAIN\SharepointFarmAccount down in to the form of Central Administration Website, added the check mark, that it would react to password changes, and pre

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 site collections accessible only by system account

  
I I have setup a VM to start palying with SP development, everything running under administrator (sql, sharepoint services....). After succefully creating the root on port 80 and a couple of site collections, whenever I shoot IE http://mymoss or any othe site collection, I go right away to the web site without the usual authentification dialog box. On the right jand side, I see I am logged in as "System account". When I try to "sign in as a different user", enter domain\administrator, who is owner, the dialog box just keeps coming back and I can not log. . Thanks in advance
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