get username for sql data connection - InfoPath Dev
in

InfoPath Dev

get username for sql data connection

Last post 08-27-2012 03:37 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-24-2012 02:26 AM

    • endear
    • Not Ranked
    • Joined on 08-24-2012
    • Posts 3

    get username for sql data connection

    I have a form that is connected with a database. In my DB I have records that contains the username of the user.

    On load, the form has to load the information from the DB. That is working fine, now InfoPath load all the records.

    But I only need the records of the current user.
    How is it possible to do a query where I say that I only need the records where username = currentUser?
    In InfoPath you can use username(), but how do I get it in my sql?

    With in my sql, i mean: under Data > Data connections. modify the connection and click on "edit SQL"

  • 08-27-2012 03:37 PM In reply to

    Re: get username for sql data connection

    We don't have dynamic SQL queries out of the box with InfoPath, unfortunately. Your options are writing code, building or buying a web service (DBXL, for example) or qRules also has commands for this.

    Hilary Stoupa

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