AD Service: How-To Query GetUserInfo - InfoPath Dev
in

InfoPath Dev

Now you can find InfoPathDev on YouTube and Twitter!
Find Qdabra on Facebook

AD Service: How-To Query GetUserInfo

Last post 06-02-2010 02:52 PM by texastwo. 11 replies.
Page 1 of 1 (12 items)
Sort Posts: Previous Next
  • 08-08-2005 06:08 PM

    AD Service: How-To Query GetUserInfo

    The AD Service supports two methods: GetMyInfo and GetUserInfo. Here are steps to set up a sample form that queries GetUserInfo with a user-entered username string:

    1. Start InfoPath
    2. Choose Design a Form in left task pane
    3. Choose New Blank Form from the right task pane
    4. Tools->Data Connections->Add
    5. Select Receive Data
    6. Select Web service and click Next
    7. Type in the URL for your ADService, for examplehttp://localhost/ADService/ADUserInfo.asmx) and click Next
    8. Select GetUserInfo method and click Next
    9. Click Next
    10. Uncheck "Automatically retrieve data when form is loaded" and click Finish
    11. Click Close
    12. Navigate to Data Source in the task pane
    13. Change Main in the dropdown to GetUserInfo (secondary)
    14. Expand the queryFields node until you see "username"
    15. Hit enter a couple times in the view
    16. Drag "username" from the data source to the view
    17. Expand dataFields until you see ADProp
    18. Drag the ADProp node into the view and choose repeating table
    19. Put the cursor under the Username label in the view
    20. Navigate to Controls in the task pane
    21. Click Button to add a Button control into the view
    22. Double click the newly added button in the view
    23. Click Rules
    24. Click Add
    25. Click Add Action
    26. Select Query using a data connection from the dropdown
    27. Click OK
    28. Click OK until the dialogs go away
    29. Click Preview
    30. Enter the username for a user in your domain
    31. Click Button

    Voila! The UserInfo from your Active Directory should be displayed.

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    InfoPath MVP
  • 02-01-2010 12:08 AM In reply to

    Re: AD service: How-To Query GetUserInfo

    Hi pat, Thanks for the AdService steps.

     I got a text box where i will be typing the 3 to 4 charaters and click search button to get the search results.

    I am struggling with the rule.

    Please tell me what rule i need to keep to working my button rule to work.

    Please assist urgently. Thanks in advance.

    The problem is

    The Infopath form is working perfectly fetching all the users in the active directory.

    I got like this

     Text box

    Search button

    Dropdown with all active directory users.

     In the button i kept the following action in the rule..

    1. Set a field's value as

    field = datasource is AD_User_Get_Users(Secondary)

    Queryfileds>InputProperties>Name

    Field = Name

    Value = concat(*,TextBoxField,*)

    amd also added a query

    Ad_User_Get_Users

    so i added 2 actions

    one is field value and second is query.

    but when on running, i can see users in the dropdown on loading form, when type something in text box and click search , i see the dropdown users vanish. so it is not searching by the textbox characters.

    Please assist me in configuring correct rule i need to use to get search results in the dropdown.

     Thanks

    Ravi

     

  • 02-01-2010 12:22 AM In reply to

    Re: AD service: How-To Query GetUserInfo

    You cannot use the GetUserInfo webmethod to search for users.  GetUserInfo requires a specific username.

    The web service provides the FindUsersByAlias and FindUsersByName web methods to search for users.  Does your version of ADWS have those methods?

    Jimmy Rishe / Software Developer
    Qdabra Software
  • 02-01-2010 12:34 AM In reply to

    Re: AD service: How-To Query GetUserInfo

    Thanks Jimmy,

    I dont have FindUsersByAlias and FindUsersByName web methods to search for users.

    what should i do now, what alternative you can suggest me.

    Please assist.

    Thanks in advance.

    Ravi

  • 02-01-2010 12:49 AM In reply to

    Re: AD service: How-To Query GetUserInfo

     It sounds like you probably need to upgrade to use those web methods.  Are you using the ADWS built into DBXL, or do you have the standalone version of ADWS?

    Jimmy Rishe / Software Developer
    Qdabra Software
  • 02-01-2010 02:15 AM In reply to

    Re: AD service: How-To Query GetUserInfo

    Hi jimmy,

    Unfortunetly, we had a standalone version on the serve, where we using the AD_User_Get_Users.

     Is there any chance you can send the dll's of those webmethods, which i can add in my folder and access it.

    Please assist.

     thanks

    ravi

  • 02-01-2010 08:50 AM In reply to

    Re: AD service: How-To Query GetUserInfo

    Are you using the standalone Qdabra AD Webservice or the AD webservice as part of Qdabra DBXL?

  • 02-03-2010 01:36 AM In reply to

    Re: AD service: How-To Query GetUserInfo

    Hi Jim,

    I have standalone version of k2 SmartOject AD which i am using as of now.

    I dont HAVE QDABRA AD Webservice or DBXL in my machine.

    So what is alternative please asssist urgently.

    Thanks

    Ravi K dake

  • 02-03-2010 03:43 AM In reply to

    Re: AD service: How-To Query GetUserInfo

    Hi dakesun,

    This board is specifically meant for users of Qdabra's software products.

    Please post your question in the InfoPath section of this forum to see if other community members will reply.

    Thank you.
    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 06-02-2010 12:54 PM In reply to

    Re: AD Service: How-To Query GetUserInfo

    Do I need Qrules to make this work?

  • 06-02-2010 12:59 PM In reply to

    Re: AD Service: How-To Query GetUserInfo

    The intial post in this thread is in regard to Qdabra's Active Directory web service (also part of DBXL) -- do you have DBXL or the AD Web Service installed?

    Hilary Stoupa
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 06-02-2010 02:52 PM In reply to

    Re: AD Service: How-To Query GetUserInfo

    No, But one more hurdle with repeating tables and I'm going to pursue it.

    Infopath has become stable, and work flow is not crashing on its own anymore. IT/IS has figured out how to back up sites, and not the whole server, so things are firming up... 

Page 1 of 1 (12 items)
Copyright © 2003-2010 Qdabra Software. All rights reserved.
View our Terms of Use.