<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Read File from document libaray</title><link>https://www.infopathdev.com:443/forums/thread/91378.aspx</link><pubDate>Sun, 14 Jul 2013 21:34:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91378</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91378.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91378</wfw:commentRss><description>&lt;p&gt;InfoPath can submit data to more than one list or library but requires some tricks with CAML, or qRules SubmitToSharePointList. Search on those topics my friend and you will find lots of examples.&lt;/p&gt;
&lt;p&gt;I still do not understand your scenario. You say you have a form where a document is attached and that document is uploaded to a doc library. How are you doing that? Custom code? I strongly recommend moving away from custom code in your InfoPath forms as it will be costly to maintain when you migrate your form, change the data source, or extend it in the future. My recommendation is to use a common library, like qRules to do this. SaveToSharePoint is the command you should look at.&lt;/p&gt;
&lt;p&gt;Once the attachment is uploaded to your doc library, your second InfoPath form can refer to it using the file attachment control which should support allow navigating to a SharePoint site, but the problem with that is that you want to refer to it, not attach it. Right? So, I recommend using a hyperlink control to the document instead.&amp;nbsp;You can have a dropdown list box bound to a data connection that lists all documents in that library. When the user selects one, you have a rule that concatenates the URL for the library with the title of the document. Then, the hyperlink can be clicked to open up the document from the document library.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Read File from document libaray</title><link>https://www.infopathdev.com:443/forums/thread/91371.aspx</link><pubDate>Sun, 14 Jul 2013 04:01:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91371</guid><dc:creator>abdul aziz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91371.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91371</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi and Thanx for the reply, let me tell you the scenario clearly. &lt;/p&gt;&lt;p&gt;I attached a document in the info path, that document upload to our doc libaray.let say it is our request form.&lt;/p&gt;&lt;p&gt;In the other form i need that document to be visible to user which was attached in the request form. &lt;/p&gt;&lt;p&gt;I am not simply submitting form to the code, i need some bussiness logic to be there while addin items to be there in the list. In my case I am making a custom application.&lt;/p&gt;&lt;p&gt;I guess for info path we can only submit data to one list at a time. i.e. submit option.&lt;/p&gt;</description></item><item><title>Re: Read File from document libaray</title><link>https://www.infopathdev.com:443/forums/thread/91349.aspx</link><pubDate>Sat, 13 Jul 2013 20:07:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91349</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91349.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91349</wfw:commentRss><description>&lt;p&gt;Hi Abdul Aziz,&lt;/p&gt;
&lt;p&gt;If you need urgent help, you should call us and pay for our time.&lt;/p&gt;
&lt;p&gt;If not, please be patient. We respond to 90% of all posts. Sometimes it takes a few days or a week though.&lt;/p&gt;
&lt;p&gt;Certainly saying your request is urgent will make us ignore you. Since you are not following the protocol - pay people if you need urgency. For free stuff, please don&amp;#39;t expect people to bend over backwards to spend their valuable time to help you in an urgent fashion. That&amp;#39;s just rude. &lt;/p&gt;
&lt;p&gt;Now, to answer your question...&lt;/p&gt;
&lt;p&gt;First of all. Full trust forms are not a best practice. Less than 5% of all forms out there should be full trust. If you are using ShP 2010 you can use the file attachment control (out of box) to attach documents. That can be published to browser just fine as Domain Trust. No code needed. Please do that and stop writing code. &lt;/p&gt;
&lt;p&gt;We have lots of demos showing this, for example the YouTube video I did in February of 2012 shows attaching an image and converting it to a link. That demo uses our qRules plugin (which is code, but publishes domain trust just fine). You don&amp;#39;t need that for what you are doing though. Just use stock file attachment.&lt;/p&gt;
&lt;p&gt;If you are doing ShP 2007, the control doesn&amp;#39;t exist. In that case, I suggest you use a hyperlink control and default it to the document library where you want people to select the form. You can then use a dropdown to list the files in the doc lib and have them select one of those. Then, you have a rule that appends the selection to your hyperlink and voila you have a form that references a file in a doc lib. No attachment, no code, all just stock InfoPath out-of-box domain trust.&lt;/p&gt;
&lt;p&gt;Life is easy. Just smile and have a good one.&lt;/p&gt;</description></item><item><title>Re: Read File from document libaray</title><link>https://www.infopathdev.com:443/forums/thread/91341.aspx</link><pubDate>Fri, 12 Jul 2013 19:22:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91341</guid><dc:creator>abdul aziz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91341.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91341</wfw:commentRss><description>&lt;p&gt;no answer :). i can do it by adding customize SharePoint wcf service, but i though there migh be some workaround.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Read File from document libaray</title><link>https://www.infopathdev.com:443/forums/thread/91331.aspx</link><pubDate>Fri, 12 Jul 2013 10:04:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91331</guid><dc:creator>abdul aziz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91331.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91331</wfw:commentRss><description>&lt;p&gt;hi, i need urgent help,i have full trust info path browser enable form. I need to read the document form document library and assign to the file attached control in the form. i am using InfoPathAttachmentEncoder class.&amp;nbsp;&lt;/p&gt;&lt;p&gt;i need to do this programatically. i have successfully upload file to the document libarya form the info path form , but i getting issues in reading it form the library.&lt;/p&gt;&lt;p&gt;please provide any link which can help me to sort out this.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>