locked
Get URL of File(file in document library) in InfoPath form based on above selection RRS feed

  • Question

  • Dear All,

    I want to show the url of file(file is in the same SharePoint document Library) in infopath text box based on another selection of values in infopath form. How can I do this?

    Thank You Very Much...!!


    Kishan Srivastava

    Friday, February 17, 2012 12:50 PM

Answers

  • Hi,

    This can be done using ootb features.

    1. Add a field to your document library called FileUrl or something similar
    2. Create a workflow using SPD or nintex that sets the FileUrl field to equal the EncodedAbsoluteUrl field when the item is modified
    3. Add a data connection to your infopath form that receives data from the Sharepoint library and make sure you select the FileUrl field
    4. Add the datasource as a repeating table and filter this to show only when your condition is met

    Danny


    • Edited by sudlev Tuesday, February 21, 2012 4:16 AM
    • Marked as answer by Jack-GaoModerator Friday, February 24, 2012 9:56 AM
    Tuesday, February 21, 2012 4:15 AM

All replies

  • Hi,

    This can be done using ootb features.

    1. Add a field to your document library called FileUrl or something similar
    2. Create a workflow using SPD or nintex that sets the FileUrl field to equal the EncodedAbsoluteUrl field when the item is modified
    3. Add a data connection to your infopath form that receives data from the Sharepoint library and make sure you select the FileUrl field
    4. Add the datasource as a repeating table and filter this to show only when your condition is met

    Danny


    • Edited by sudlev Tuesday, February 21, 2012 4:16 AM
    • Marked as answer by Jack-GaoModerator Friday, February 24, 2012 9:56 AM
    Tuesday, February 21, 2012 4:15 AM
  • HI,

    You can also follow the process from the below link.

    http://office.microsoft.com/en-us/infopath-help/add-a-data-connection-to-a-sharepoint-document-library-or-list-HP010093160.aspx

    Thanks

    Thursday, February 28, 2013 2:51 PM