Infopath and Sharepoint Forms - InfoPath Dev
in

InfoPath Dev

Infopath and Sharepoint Forms

Last post 03-02-2012 11:41 AM by OrlCraig. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-24-2012 06:30 AM

    Infopath and Sharepoint Forms

    Hello,

    I have an Infopath form that hides/shows containers and selects check boxes based on parameters in the contains() function. I use an external data source to draw in the first parameter string and use a choice box to fill the second parameter. Since Infopath does not allow filtering of the first parameter with the selection boxes I have to edit the Xpath and build a custom expression. The expression that I build will work sucessfully in the Infopath preview but when I publish the form to the sharepoint site the logic always evaluates to true. Here is an example of the expression used for the logic:

    contains(xdXDocument:GetDOM("DataSource")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Templates_Clean[../d:ID = 2], string(.))

    This rule is applied to the choice box so when the box contains a template the "string(.)" and if this string is contained in the string from the external data source the box is checked. Why does this not transfer to SharePoint?

    I have tried a connection to a site library of UDC files to avoid any persissions to the list in SharePoint and this still does not work.

    Thanks in advance!

  • 02-29-2012 02:31 PM In reply to

    Re: Infopath and Sharepoint Forms

    Are you publishing to a SharePoint 2007 server?  If so, filters are not supported in 2007 on the browser.
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 03-02-2012 11:41 AM In reply to

    Re: Infopath and Sharepoint Forms

     No, I am publishing to SharePoint 2010.

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