Passing Argument to Sharepoint - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Passing Argument to Sharepoint Passing Argument to Sharepoint Last post 05-21-2008 08:40 AM by Cutejon. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 04-22-2005 03:06 AM potpourri Joined on 03-10-2005 Posts 62 Passing Argument to Sharepoint Reply Contact I'm trying to add a hyperlink to my form that enables user to upload a document to a document library folder.For instance the form Title is "myForm.xml" and the document library folder name is "AttachmentFolder".In the "AttachmentFolder" library, I've created a column named "FormFileName".So this is the scenario I'm trying to achieve:1) user clicks on a hyperlink or a button on the form "myForm.xml"2) directs user to the "Upload Document" section in "AttachmentFolder"(like going to any document library and clicking the "Upload Document" menu)3) autopopulate the column "FormFileName" with the "myForm.xml"So, by single-clicking the hyperlink/button on the form, I'm trying to allow user to attach files as many as they want into a document library AND each attachment has indication of what form name it is meant to.Anyone know how to pass the form name to the document library?Thanks! :) 04-22-2005 12:24 PM In reply to Shanthi Reddy Joined on 08-21-2006 Posts 144 Re: Passing Argument to Sharepoint Mark as Not AnswerMark as Answer... Reply Contact Hello Let me try to explain the issue above to see if i have it correct. You want to upload the document that you have open as a different file to sharepoint? the Filename will be something that you specify. Is this correct?If so then you can do this is in code to set the filenameDAVAdapter oSharePoint = (DAVAdapter)thisXDocument.DataAdapters["SharePoint Submit"];oSharePoint.FileName = sSharePointFileName;ShanthiInfoPathDev India Shanthi Reddy 04-25-2005 06:33 PM In reply to potpourri Joined on 03-10-2005 Posts 62 Re: Passing Argument to Sharepoint Mark as Not AnswerMark as Answer... Reply Contact hi Shanti,If you go to one of the "Document Libraries" and click the link "Upload Form", this is how I want users to upload their attachments.So imagine if I've built a folder "AttachmentFolder" in the "Document Libraries" and added an extra column named "FormName".When user opens a form from another folder and click on a button or a hyerlink, I wish to direct the user to that "Upload Form" interface in folder "AttachmentFolder" and automatically populate column "FormName" with the form name the user opens.So, user can upload multiple attachments and the column "FormName" knows the user origin's form name (somewhere from the URL query string I imagine?).So my question is how to pass the form filename the user opens from another folder to automatically populate the column "FormName"?Do you have an idea about this?Thanks... 05-21-2008 08:40 AM In reply to Cutejon Joined on 03-26-2008 Philippines Posts 20 Re: Passing Argument to Sharepoint Mark as Not AnswerMark as Answer... Reply Contact hi shanthi, Based on your replies for DAVAdapter, it seems you well versed in it. Can I please ask for your help, how do I get that object , declare and use it thru visual basic coding.Your help will be much appreciated. =) Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
hi shanthi,
Based on your replies for DAVAdapter, it seems you well versed in it.
Can I please ask for your help, how do I get that object , declare and use it thru visual basic coding.
Your help will be much appreciated.
=)