Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6160627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:20:12+00:00 2026-05-23T21:20:12+00:00

I have an InfoPath form which has two data connections: Connection to a SharePoint

  • 0

I have an InfoPath form which has two data connections:

  1. Connection to a SharePoint list
  2. Connection to udcx file which connects to a SQL database and executes a view. This file is located in a “Data Connections Library”.

The query is something like this

select "Ultipro id" as "Ultipro_id","Employee E" as "Employee_E","Anapharm id" as "Anapharm_id","First Name" as "First_Name","Last Name" as "Last_Name","User Name" as "User_Name","Company","CmpCompanyCode","EE Home Country" as "EE_Home_Country","Department Name" as "Department_Name","Department Code" as "Department_Code","Reporting Location" as "Reporting_Location","Rpt Location Code" as "Rpt_Location_Code","EecJobTitle","EecSupervisorID","1st Lvl Supervisor" as "_1st_Lvl_Supervisor","Executive Dept Head" as "Executive_Dept_Head","HR Rep" as "HR_Rep","EecEEtype","2nd Level Supv" as "_2nd_Level_Supv" from "dbo"."EmpDetail" as "EmpDetail"

The view returns 2195 rows and in future this number can increase.

Is there a way to include a where clause in this query? The where clause should filter on the [User Name] column. In my InfoPath form, I have a people picker which should become the parameter of the where clause.

Is there a way to include a where clause without custom coding?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:20:12+00:00Added an answer on May 23, 2026 at 9:20 pm

    I’m afraid this isn’t possible… i’d recommend writing a WebService instead of using the direct connection to the SQL-Server via the udxc file.

    You could create an operation that takes the UserName as parameter, queries the database according to it, and returns the result set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Within my InfoPath form (which has to be loaded within a SharePoint Portal by
I am trying to build an Infopath form which populates fields with data back
I have an InfoPath form in a SharePoint workflow. I'm trying to use a
I have an existing InfoPath 2007 form that has some code-behind developed with VSTA.
I have an Infopath 2007 form with several views, meant to be used in
We have some InfoPath (XSN) forms with code-behind hosted in MOSS that have data
I've got an infopath form for which I am trying to convert the submit
I have an XML document (an InfoPath form) that looks similar to this: <my:ClientMaintenance
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have just started using Visual Studio Professional's built-in unit testing features, which as I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.