Questions tagged [lightswitch-2012]

Microsoft Visual Studio 2012 LightSwitch is a rapid application development tool for creating data centric Silverlight and HTML applications.

LightSwitch is a designer-based addition to Visual Studio 2012 to assist in working with data-centric services and applications. When working with a LightSwitch project, the Visual Studio IDE changes to a development environment with only three main editors (in so-called “Logical mode”): the Entity Designer, the Query Designer and the Screen Designer. These editors focus on getting results quickly by being extremely intuitive, fast and easy to use. This adds some obvious benefits to the life of a LightSwitch developer:

  • First, it hides the plumbing (the repetitive code that’s typically associated with the development of these information systems). Easy-to-use editors mean fast development, fast development means productive developers and productive developers mean more value to the business. Or, as Scott Hanselman would say, “The way that you scale something really large, is that you do as little as possible, as much as you can. In fact, the less you do, the more of it you can do” (see Scott Hanselman's Personal Productivity Tips).

  • Second, and perhaps most important, nontechnical people, ranging from functional analysts to small business owners to Microsoft Access or Microsoft Excel “developers”—often referred to as citizen developers—who know the business inside out, can step in and help develop the application or even develop it entirely. The editors hide technological choices from those who prefer to avoid them and silently guide the application designer to apply best practices, such as encapsulating the domain logic in reusable domain models, keeping the UI responsive by executing business logic on a thread other than the UI thread, or applying the Model-View-ViewModel (MVVM) development pattern in the clients.

  • Finally, these editors actually don’t edit classes directly. Instead, they operate on XML files that contain metadata (LightSwitch Markup Language), which is then used by custom MSBuild tasks to generate code during compilation. This effectively frees the investment made in business logic from any technological choices. For example, a LightSwitch project that was made in version 1.0 would use WCF RIA Services for all communication between client and server, whereas that same project now compiles to use an Open Data Protocol (OData) service instead (more on OData later). This is about as adaptive to the ever-changing IT landscape as an application can get.

Source: Shape Up Your Data with Visual Studio LightSwitch 2012

136 questions
0
votes
1 answer

Users and Employees table

I am in the process of making a database application, using LightSwitch, that tracks paperwork grouped into batches. Each of these Batches has one or more Batch_Status associated with it, and each Batch_Status has an Employee associated with it. I…
jlaverde
  • 338
  • 1
  • 2
  • 16
0
votes
1 answer

Set related entity to current user in HTML Client

I am building a Help Desk ticketing program in Lightswitch, and have been having trouble with one requested feature. I was asked to build a mobile friendly version of the app for End Users to submit tickets from their mobile devices. I built the…
bigelowr
  • 431
  • 2
  • 11
0
votes
1 answer

Predefined Add Dialog not working as expected in Lightswitch 2012

I've created a query to use in an AutoCompleteBox and it works as expected when the user select the AutoCompleteBox in the grid as shown in the picture below However if the user click the plus button to add a new record using the predefined Add…
vcRobe
  • 1,671
  • 3
  • 17
  • 35
0
votes
1 answer

Selected Item of Visuual Collection is not set in LightSwitch while changing the selection in Screen

I created a lightswitch control extension for Silverlight control that bounds to a collection. (like DataGrid) It correctly shows data on a screen, but the underlying query's SelectedItem property is not getting updated when I select a row in the…
Santyy
  • 166
  • 1
  • 12
0
votes
0 answers

Left Join Linq query gives Null reference exception

This is inside a wcf ria service class for my light switch application.i just cannot figure why this exception occurs at run time when running the lightswitch application.how can i get rid of this for this query to run.pls help Both loan and…
Rakon_188
  • 573
  • 2
  • 7
  • 15
0
votes
1 answer

LightSwitch refresh a ComboBox property (list) from an other control

On a SearchScreen, I have some properties to filter my table results. ComboBox for the month. ComboBox for the year. ComboBox for a customer (based on a query with two parameters, DateBegin, DateEnd) The third ComboBox need to be filtered to only…
0
votes
1 answer

Lightswitch V2: Datagrid Columns not auto-resizing

Hi I have noticed that in Lightswitch v2 (Visual Studio 2012), the Auto Size mode for data grid columns doesn't seem to be working. That is, the columns do not re-size to accommodate my content. If I remember correctly, this used to work in Visual…
Omaer
  • 817
  • 1
  • 7
  • 22
0
votes
1 answer

Linq query to get all pending Loans

I have two tables in lightswitch LOANS(Id(default),..) and RELEASES(Id(default),Loan,..).i want to create a screen with all pending loans to be shown in a datagrid.so i created a wcf RIA class library.i wanto return all the loans that have no…
Rakon_188
  • 573
  • 2
  • 7
  • 15
0
votes
1 answer

Change Lightswitch HTML Client language

Is it possible to change the display language and control format to german? So that the datetime control shows the day seletion first instead of month selection or the yes/no toogle the german words. I changed the "Default Language" property in the…
0
votes
1 answer

Adding a property that sums the results of a query in Lightswitch 2012

I have a project using C# in Lightswitch 2012 that has the following tables: Clients Id - Integer CaseID - Long Integer FullName - String Address - String Tracking - TrackingItem Collection Staff Id - Integer PIN - Integer FullName -…
Robert B
  • 3,933
  • 2
  • 13
  • 6
0
votes
1 answer

Using data from 2 different databases in a LightSwitch application

I need to write a LightSwitch application, which displays a grid with data from 2 different tables, which are located in 2 different databases. There is table A with column BankId in one database and table B with columns BankId and BankName. I need…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
0
votes
1 answer

LightSwitch - Query based on a SelectedItem from another table

I have two tables, Customer and Address. One customer can have one or more addresses. My view is a ListDetail with all my customers on the left as a list and the edition on the right. Under the edition I have the "address area" with a list of…
Alex Saesee
  • 129
  • 1
  • 1
  • 11
0
votes
1 answer

Lambda scope for Entity_Filter Method - MS Lightswitch 2012

I am a novice programmer working on a MS Lightswitch application to help others in my company enter purchases. One of the requirements is that users can only see purchases that have been charged to a budget line they're allowed to see. I have a…
Ethan48
  • 241
  • 3
  • 10
0
votes
1 answer

LightSwitch: how to access and change control properties in AddAndEditNew default modal

In LightSwitch, when I open the default modal, calling the AddAndEditNew_Execute method, I want to change properties of the controls inside the modal dialog. For instance: I want to change a TextBox to "Multiline" or change AutoComplete FilterMode…
0
votes
1 answer

"Save operation failed invalid MIME part type" in Lightswitch HTML Client

When trying to save a record in VS Lightswitch HTML Client I get this error pop up. "Save operation failed invalid MIME part type" It does it in the HTML Client but I don't know if it's exclusive to that. This will happen even if i create a new…
Stuart Dobson
  • 3,001
  • 4
  • 35
  • 37