Attachment contol and Document Library SharePoint 2007 - InfoPath Dev
in

InfoPath Dev

Attachment contol and Document Library SharePoint 2007

Last post 10-18-2007 08:02 AM by hmendezm. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-15-2007 06:26 AM

    Attachment contol and Document Library SharePoint 2007

    Hi Guys

    How can I use attachment control in my form and save the files in a specific document library? 

     

    Thanks

    regards

    HANK

     

  • 10-15-2007 09:27 AM In reply to

    Re: Attachment contol and Document Library SharePoint 2007

    Are you asking how you can attach a file to a Infopath form and also have the attached file saved into SharePoint?

    When you attach a file in InfoPath it is embedded in the form and that is where it stays.  If you have a file in SharePoint and want to reference it from InfoPath a hyperlink would probably be better.

     

  • 10-15-2007 01:59 PM In reply to

    Re: Attachment contol and Document Library SharePoint 2007

    thank Clay, but my situation is the following: The user has a file in his/her PC and he/she Attached the file to the form. Is there some way to also take the attached file and add to any document library.

     

  • 10-15-2007 02:19 PM In reply to

    Re: Attachment contol and Document Library SharePoint 2007

    Once the file as in the form it can be accessed by anyone via the form.

    If you also want the file in Sharepoint then that would be a seperate process of uploading the file. But then there is no linkage between the version in the document library and the version attached to the form.

    Another option is to have them upload the file to Sharepoint and then enter a hyperlink in the form instead of attaching.

    It is possible to make your own attachment control that could possibly do both but it would require a full trust form and quite a bit of development.

    It really comes down to your process and whether you want it easiest to attach or easiest to access later.  Do you need it in a SharePoint Library on its own when it is already available within the form?

  • 10-18-2007 08:02 AM In reply to

    Re: Attachment contol and Document Library SharePoint 2007

    Well, I have  workflows that have a document library where the user can look all document of specific process without see the form, so my idea was to use InfoPath and use the attachment control and in the way the user will attach and fill out the firm of the process in the same place without got to the document library and after to the form.

    Note: Clay sorry this is other question but nobody answers in other forums, Do you have an idea how to get the data of the Repeating section in the workflow when you get the AssociationData?

     When I run the code assocForm = (Main)serializer.Deserialize(reader);

     I get the erro
    Additional information: There is an error in XML document (1, 2).

    This is the schema that I get in AssociationData

     

    <my:myFields xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-10-17T13:20:34" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">

    <my:gpDesignatingInfo>

    <my:txtOffice>ITS</my:txtOffice>

    <my:txtDesignatingPerson>Administrator</my:txtDesignatingPerson>

    <my:txtActingFor></my:txtActingFor>

    <my:dtLeaveBegin xsi:nil="true"></my:dtLeaveBegin>

    <my:dtLeaveEnd xsi:nil="true"></my:dtLeaveEnd>

    <my:txtTypeOfLeave>Type1</my:txtTypeOfLeave>

    <my:ContactInfo></my:ContactInfo>

    </my:gpDesignatingInfo>

    <my:gpDesignatedInfo>

    <my:gpDesignatedPersons>

    <my:txtDesignatedOffice>ITS</my:txtDesignatedOffice>

    <my:txtDesignatedPerson>User01</my:txtDesignatedPerson>

    <my:dtDesignatedBegin xsi:nil="true"></my:dtDesignatedBegin>

    <my:dtDesignatedEnd xsi:nil="true"></my:dtDesignatedEnd>

    </my:gpDesignatedPersons>

    </my:gpDesignatedInfo>

    </my:myFields>

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.