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 6866059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:07:57+00:00 2026-05-27T03:07:57+00:00

this.DataWorkspace.UserData.users = is a WCF Ria table that exposes the list of registered users

  • 0

this.DataWorkspace.UserData.users = is a WCF Ria table that exposes the list of registered users

this.DataWorkspace.SHowroomData.Employees has a field where we have inserted the username from the above Ria table (http://traf-o-data.blogspot.com/2011/08/linking-lightswitch-data-to-logged-in.html)

I’m try to filter the customer records that are returned based on the store that the current user(employee) belongs to.

Here is the query and the error.

My Query ERror

Thanks for any suggestions.

  • 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-27T03:07:58+00:00Added an answer on May 27, 2026 at 3:07 am

    I don’t think, in PreprocessQuery() you can make a direct call on the datasource. You have to design your query without any “intermediate” results. Everything you need in that query has to be passed to the method as a parameter.

    So either, 1) you pass the employee-data of the current user to the method or his ID using a screen property that contains this information and is linked to the query-parameter
    or 2) try to include the currentuser – employee selection into the “query = ” line somehow, which should work, because stores and employees should have relation. You can address both, parent and child tables of any entity in LINQ to Entities.

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

Sidebar

Related Questions

I have following query, var employees = from emp in this.DataWorkspace.v2oneboxData.me_employees where emp.me_is_deleted.Value ==
This question has been asked before but that was three years ago and Microsoft
This code won't compile because there is an illegal reference to a static field.
This is my first time creating a PHP form that will run a MySQL
This has been asked several times, i know, but help me understand something. You
This same installation of Weka has loaded for me in the past. I am
This has been bugging me lately. Say I have a base class Base. If
This is beyond both making sense and my control. That being said here is
This would list numbers 5.0 to 7.0 in a drop select menu: <%= f.select
This is my database table. Now I want to combine Branch_Id, Acc_no and Acc_Type

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.