Sumbit approved items - InfoPath Dev
in

InfoPath Dev

Sumbit approved items

Last post 06-06-2011 05:42 AM by Latte. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-03-2011 11:25 AM

    • Latte
    • Not Ranked
    • Joined on 05-19-2011
    • Posts 15

    Sumbit approved items

    Hi, how would I go about submitting only the items in a repeating section where approval = Yes (boolean) using qRules SubmitToSharePoint?

    Thanks. 

  • 06-03-2011 11:56 AM In reply to

    You can manually modify the XPath for the repeating group in the mapping.xml. Change this:

    <my:RepeatingGroup>my:myFieldsmy:group1/my:inventory_items/my:item</my:RepeatingGroup>

    To this:

    <my:RepeatingGroup>my:myFieldsmy:group1/my:inventory_items/my:item[my:approval='true']</my:RepeatingGroup>

    Assuming your field is named "approval".... and I see that you say the value is "Yes" but it is boolean, which confuses me -- if your form saves yes or no in the XML, you'll need to use 'yes' instead of true.

    Hilary Stoupa

  • 06-03-2011 02:43 PM In reply to

    • Latte
    • Not Ranked
    • Joined on 05-19-2011
    • Posts 15

    Thanks Hilary, works great but when I add the "id" attribute to the SubmitToSharePointList command gives a "Failed to select node for SharePoint List Id" error and doesn't work. Once I remove the "id" attribute it submits well and only submits the approved items.

    Any ideas? Thanks.

  • 06-03-2011 03:04 PM In reply to

    Euw. I don't think I'll have time to look at this today, but I'll check it out early next week and see what is going on and get you a work around ....

    Hilary Stoupa

  • 06-06-2011 05:42 AM In reply to

    • Latte
    • Not Ranked
    • Joined on 05-19-2011
    • Posts 15

     Thanks Hilary, looking forward to hearing back from you.

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