Articles → Light Switch 2011 → Choice List In Light Switch 2011

Choice List In Light Switch 2011






Software Requirement




  1. Visual studio 2010 is installed on your machine.
  2. Visual Studio 2010 service pack 1 is installed on your machine.
  3. Microsoft Visual Studio Light switch 2011 is installed on your machine.

Prerequisite Knowledge




  1. What is lightswitch?
  2. What are screens and entities in lightswitch?
  3. How to create an entity in lightswitch?
  4. How to create a screen in lightswitch?

What Is Choicelist





Creation Of Sample Entity




Picture showing the sample table in the lightswitch
Click to Enlarge


Add Choice List




  1. Click on the field name.
  2. On the property window click on the link Choice List….
  3. A new window appears, enter the options and click Ok.
Picture showing converting the column to the choice list in lightswitch
Click to Enlarge


Remove Choice List




  1. Click on the cross icon.
  2. A confirmation window will appear.
  3. Click Yes.
Picture showing a link to remove choice list from the column in lightswitch
Click to Enlarge


Creation Of Sample Screen




  1. Right click on the Screens folder
  2. Click Add Screen….
  3. A window will appear, select the screen type.
  4. Enter the screen name
  5. Select entity.
  6. Click Ok.
Picture showing creating the new Add data screen in lightswitch
Click to Enlarge


Output




Picture showing the output of choicelist in lightswitch
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, January 16, 2012

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250