VBScript proc to read data from doc tree - InfoPath Dev
in

InfoPath Dev

VBScript proc to read data from doc tree

Last post 11-16-2006 11:10 AM by tcarnahan_rei. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 11-16-2006 11:10 AM

    VBScript proc to read data from doc tree

    I am new to InfoPath. I am using 2003 version. I need to create a button on my form with code procedure behind it(I know how to do this part) written in VBScript (my background is in VB) that when the user fills out the form and clicks on it, it will:

    - Find the root of the internal datastore (What I mean is I am notconnected to a database or webservice.
    - Traverse down the document tree visiting every child node
    - At every node, read the name of the node, it's data type, and the value the user just typed into it.
    - Return the same to the calling procedure

    What I need to do with this data is not relevant to the discussion, but I need a generic procedure that can be used in any InfoPath form(i.e. does not assume to know any nodes in advance).

    I have found a couple of articles where people have done this with JScript, Javascript, or Java from a HTML document to do this but I am having difficulty converting it to my preference, VBScript.

    Would anyone have an example of how to do something like this in VBScript?

    Thank you ahead of time for any help you can provide!
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.