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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:01:59+00:00 2026-06-15T14:01:59+00:00

I am new to VS-Lightswitch 2012 and also new to silverlight. In a lightswitch

  • 0

I am new to VS-Lightswitch 2012 and also new to silverlight.
In a lightswitch database I want to store tables of measured values.
Each table of MeasuredValues has a certain Unity.
So I have a table of Unities (like “m”, “mm”, “°C”) and each Unity has a table of possible UnityConversions (like “mm to m”, “mm to cm”). e.g. the Unity “m” has no conversion “m to °C” because this makes no sense at all. Each UnityConversion has a Unity it ConvertsTo.
A Unityconversion e.g. is: 0.00112m = 1.12mm

So when the user creates or edits the table of measured values he should be able to select the unity out of all existing Unities.
But when the Unity has to be converted it should only be possible to convert the value into the suitable Unity out of the table of UnityConversion of the current Unity.
So far so good all tables are defined. But how to do the UnityConversion thing?
I guess the easiest way would be to create a button below the Unity of the MeasuredValue that brings up a “Modal Window Picker” where the user can select the UnityConversion.

But how to fill a “Modal Window Picker” with the UnityConversions of the current Unity?
I have tried the “Modal Window Picker” it shows all existing Unities, but instead it should show the possible UnityConversions.

that’s where I stick, any idea is welcome thank you in advance

Oops
++++ Edit 14.Dec.2012 ++++

MValue
+-Id: Integer
+-Value: Double
+-Unity: Unity (relationship)
Unity:
+-Id: Integer
+-Name: String
+-ShortName: String
+-Conversions: collection of UnityConversion (relationship)
+-Converts     collection of UnityConversion (relationship)
+-MValues      collection of MValue (relationship)
UnityConversion:
+-Id: Integer
+-Name: String
+-Factor: Double
+-ConvertTo: Unity (relationship)
+-Unities:   Unity (relationship)
the relationship between Unity and UnityConversion is doubly so it looks like:
Unity                        UnityConversion
+-Conversions(visible) -------> +-Unities    (invisi.)
+-Converts   (invisi.) <------- +-ConvertsTo (visible)

My question: the double relationship is possible to do, but is it allowed to do it?
if it is allowed, why does the screendesigner, when creating a new screen for MValuesListDetail, not show the details UnityConversions?

  • 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-06-15T14:02:00+00:00Added an answer on June 15, 2026 at 2:02 pm

    It’s easy to do, but a bit lengthy to explain. You’ll need to add a parametrised query, with an integer parameter, based on the UnityConversion table (see Creating a Parameterized Query).

    In the screen designer:

    • Click on Add Data Item Select Query, then the name of the parametrised query that you created
    • Click on the added query, & expand Query Parameters (see
      Provide a Value to a Query Parameter)
    • Click on the name of the integer parameter that you added earlier
    • In the Properties pane, enter the binding value (Me.MeasuredValueProperty.ID)
    • Click on the ACB control (AutoCompleteBox) & in its properties, change the Choices value from Auto to the name of your parametrised query

    This should restrict the values in the UnityConversion property to values that are appropriate for the selected Unity.

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

Sidebar

Related Questions

Has somebody already evaluated the new MS Silverlight RAD tool Lightswitch ? Is it
I am fairly new to Lightswitch (2012) and am confused on how the membership
I've just found out about Visual Studio LightSwitch, Microsoft's new Silverlight-centric RAD tool. Does
New to Python and Databases I have a database table set up with a
new on ruby and using windows xp and rails 3, i want to send
New to Regex. I want to validate to this format: Any character allowed, except
New to spring. I'm getting the following exception being caught: 2012-06-14 16:20:57,719 [http-8080-6] ERROR
New to Ruby and ROR and loving it each day, so here is my
I've been playing around with Lightswitch (c#) on Visual Studio 2012. The project I
I would like to create a new lightswitch shell(because I need another layout than

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.