Programmatically add a row at the end of a repeating table - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Programmatically add a row at the end of a repeating table

Last post 11-12-2009 06:29 AM by Jimmy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-10-2009 10:57 AM

    Programmatically add a row at the end of a repeating table

    Greetings,

    I am using InfoPath 2007 and VBScript. I have an optional section where I have placed a repeating table whose xCollection name is group6_22.  My Data source looks like

    RepTable

         filed1

         filed2

    OptSection

     

    I am trying to add a row at the end of the repeating table.  When I used the code

              XDocument.View.ExecuteAction "xCollection::insert", "group6_22"

    I received a debugger error message "The specified bstrAction value for the View.ExecutionAction call is not applicable for the current selection"

    I appreciate if someone can tell me what is wrong specially if you know that the above code works if the repeating table is not placed inside an optional section.

     

    Thanks in advance for the help.

    Filed under: , ,
  • 11-11-2009 03:29 AM In reply to

    Re: Programmatically add a row at the end of a repeating table

    Patrick Halstead
    Project Manager at Qdabra
  • 11-12-2009 03:19 AM In reply to

    Re: Programmatically add a row at the end of a repeating table

    Thank you for the advice.  After reviewing the article, it looks that the method I have used has some limitations (e.g., the repeating table should not be inside an optional section).  Is there another method that can work in my case?

     

  • 11-12-2009 06:29 AM In reply to

    Re: Programmatically add a row at the end of a repeating table

     The Insert command in Qdabra's qRules is capable of doing this.  Please give that a try and let us know if it does the trick.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.