access value from secondary data source dom in vb - InfoPath Dev
in

InfoPath Dev

access value from secondary data source dom in vb

Last post 04-19-2006 11:19 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-11-2006 08:56 AM

    • Mario
    • Not Ranked
    • Joined on 11-04-2005
    • Posts 15

    access value from secondary data source dom in vb

    Hi, I have an Infopath form that is tied to a sqlserver database for the primary data source.

    I also have the AD web service from infopathdev.

    I would like to get a value from the AD web service without having it tied to a text box.

    the reason I need this is I want to know who is logged on in order to approve the form. If I use a text box, it stores the original creator but is not updated for the current user (approver).

    I can't seem to find many code examples of accessing a value from any secondary data source.

    If anyone has the syntax/example of this in vb.net I would appreciate it.
  • 04-19-2006 11:19 PM In reply to

    Re: access value from secondary data source dom in vb

    Hi Mario,
    Sorry for the delay. In the future, please post these questions in the Premium Donwloads section for faster response.

    If you bound the form to AD Web service, and you are calling it on load (check the data connection settings) then you already have a secondary data source which gets set to the current user.

    Go to data source in the task pane. Click on the drop down and select the AD Web service. Now, expand the nodes to get the username and drag that to your view. You can use rules to set a value into your main data source as needed from this, or to check the user name.
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.