vbScript to create row to repeating table - InfoPath Dev
in

InfoPath Dev

vbScript to create row to repeating table

Last post 10-12-2006 03:34 PM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-11-2006 04:43 AM

    • Geraint
    • Not Ranked
    • Joined on 10-10-2006
    • United Kingdom
    • Posts 2

    vbScript to create row to repeating table

    I'm trying to write some vbScript that allows a user to select a value from a drop down list that then adds a row to a repeating table and populates it with the appropriate values.

    When I try to create a refrence to the object using:
    Set oDOM = XDocument.GetDOM("PO")
    I get the error "data object does not exist".

    Under data sources I have the followng structure:
    Main
    PO (group)
    PurchaseOrder (Repeating group)
    Prodct (Field element)
    QTY (Field element)

    Can ayaone help?
  • 10-12-2006 03:34 PM In reply to

    Re: vbScript to create row to repeating table

    Good Day Geraint,

    GetDOM() gets the entire DOM for a specific data source. The parameter should be the name of the data source. In the Data Source taskpane, what is the name displayed there? This is what should be passed into the GetDOM() method.

    Once you have the dom, then you can query it for the PO node. I hope this helps, good luck!
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.