Delete / add rows to the repeating table - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Delete / add rows to the repeating table

Last post 02-25-2013 07:42 AM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-24-2013 02:47 PM

    Delete / add rows to the repeating table

    Hi,

     I am trying to figure out how to delete / add rows from the repeating table without a code;

    I saw Patrick's example where he apparently has no code, has a field called command in his secondary data source and his two buttons have 2 actions that updat the value of the Command field with either:

    Delete /xpath=/my:items/my:item

    or

    Insert /parent=/my:items /child=my:item /count=5

    I cannot replicate this approach.

    These 2 are not functions, so how does it work? 

     

  • 02-24-2013 06:05 PM In reply to

    Re: Delete / add rows to the repeating table

    Hi again,

    I think that example has qRules. Insert and Delete are both qRules commands. qRules is a common library. It's cheap. After you get the trial to work with the above commands send us a 2-3 sentence testimonial and we'll give you a handsome discount. :)

    Cheers!

    Patrick Halstead
    Project Manager at Qdabra
  • 02-25-2013 03:05 AM In reply to

    Re: Delete / add rows to the repeating table

    Hi,

    One more thing: what is the difference in the following XPaths:

    xdXDocument:GetDOM("items")/items/item/b[../id = xdXDocument:GetDOM("viewdata")/viewdata/count]

    xdXDocument:GetDOM("items")/items/item/b[xdXDocument:GetDOM("items")/items/item/id = xdXDocument:GetDOM("viewdata")/viewdata/count]

  • 02-25-2013 07:42 AM In reply to

    Re: Delete / add rows to the repeating table

    In the first one, id is relative - ../id will get you the id for the same item as b. In the second one, id is absolute - I'd anticipate the second XPath wouldn't do what you need it to.

    Hilary Stoupa

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