printing repeating table with vbscript - InfoPath Dev
in

InfoPath Dev

printing repeating table with vbscript

Last post 09-11-2006 12:38 AM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-08-2006 11:07 AM

    printing repeating table with vbscript

    I'm trying to output the contents of a repeating field to a txt file. I can get the first record of the table to appear, but i am unsure how to get any other records. Below is a snippet of the code I have:


    iItemCount = XDocument.DOM.selectNodes("//dfs:dataFields/d:Table1/@TestField1").length

    iRow=0

    do while iRow < iItemCount
    nodeValue = XDocument.GetNamedNodeProperty(XDocument.DOM.selectSingleNode("dfs:dataFields/d:Table1/@TestField1"), "TestField1", "wrong")

    oTempFile.Write nodeValue
    iRow = iRow + 1
    loop




    This code is outputting 'wrong' (the value associated with a null field or no return?)

    Any idea on how I can output the contents of a repeating section or table?

    Thanks
  • 09-11-2006 12:38 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: printing repeating table with vbscript

    Hi trufooser,

    Change your code as below

    XDocument.GetNamedNodeProperty(XDocument.DOM.selectSingleNode("dfs:dataFields/d:Table1/@TestField1"), "TestField1", "wrong")

    You need to specify repeating section control like “CTRL22” in the place of “Testfield1”.

    From below this link you can get more information:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdmthGetNamedNodeProperty_HV01103978.asp
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.