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
1
vote
2 answers

How can I export to excel when creating an application that works in the browser for Lightswitch?

How can I export to excel when creating an application that works in the browser for Lightswitch?
1
vote
1 answer

Unable to assign a value in LightSwitch 2012 project

I'm trying to implement the following code into a LightSwitch 2012 project. I'm getting an error when I try to assign the this.ExpenseReport to a value. The error reads "Property or indexer…
1
vote
0 answers

System.Text.Encoding is inaccessible due to its protection level

I am trying to deserialize and serialize JSON in a Lightswitch app, and in that procedure I need to use encoding. The problem is that after build I get this error : 'System.Text.Encoding.GetString(byte[])' is inaccessible due to its protection…
1
vote
1 answer
1
vote
0 answers

VS 2012 Lightswitch and MySQL

I'm currently experiencing a problem which I'm not 100% certain about the part which is making the trouble, so I'm just gonna tell you guys what I'm trying to do and actually doing. Its about trying and more or less failing by deploying a…
1
vote
1 answer

Refresh custom control Xaml / lightswitch

I am creating an app in Lightswitch and I used this custom control. The problem is when I change value of the control. It's probably not possible to change control dynamically, it must be refreshed to get new value. So I need to know how can I…
1
vote
1 answer

How can I deploy a Lightswitch application as both a web application and a desktop application?

I want to publish my LightSwitch application as both a 3-tier desktop app and a web app. Is there any way to do this in a synchronized manner? And are there any commands that would allow me to do checks before trying e.g. OOB actions in a web app?…
DTreth
  • 87
  • 5
1
vote
1 answer

LightSwitch: Passing data from one screen to another

Is it possible to pass one information from one screen to another? This is my Main screen: And I want to add one of the users into where "Leiter" is written. Some idea how to manage it? Oh yeah, the data is coming from SharePoint...
Lighter
  • 11
  • 1
  • 3
1
vote
2 answers

When building a lightswitch app I got " Error 11 Could not copy Exceeded retry count of 10

While building a lightswitch app I kept getting this error: Error 11 Could not copy "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\LightSwitch\Client\Microsoft.LightSwitch.dll" to "Bin\Debug\bin\Microsoft.LightSwitch.dll". Exceeded…
Thomas Fonseca
  • 542
  • 4
  • 12
1
vote
3 answers

how to add items to combo box in lightswitch

I'm new to lightswitch and i searched lot, but couldn't find proper solution for this simple question. I need to add items to combo box, based on user selection. ( not from existing table) For example if user select country ,following towns must add…
DevT
  • 4,843
  • 16
  • 59
  • 92
1
vote
1 answer

Lightswitch AddAndEditNew_Execute()

I need to open the dialog which appears after I click the Plus sign in data grid view. Which means, When i press my button, i need it to appear as if i clicked + button. But now i need to open the grid view and then click on the + button.
0
votes
0 answers

Lightswitch Desktop DataGrid "Enter" like "TAB"

I need to override the behavior of the "Enter" key in the DataGrid. I need to TAB with the enter key inside the DataGrid. Thank you in advance!
0
votes
1 answer

LightSwitch Metadata Missing: DataService ApplicationData

I'm not sure if submitting question in right forum (LightSwitch or TFS). In my company we have a solution developed in Visual Studio 2012 LightSwitch and into App.Server layer we consume an ApplicationDataService.svc (OData) and a WCF Service. I…
0
votes
1 answer

Error MSB4184 Microsoft.LightSwitch.Publish.targets when Building project using Team Foundation Build

Company I work to need to implement continous integration. Projects are developed by using Lightswitch with visual studio 2012. We use Team Foundation Server to manage source version. I created a build definition and agent pool to try to run build…
0
votes
1 answer

Lightswitch Get text of textbox control to clipboard

I'm trying to get the text of the textbox control to the clipboard and I ran out of ideas on how to do it. Any ideas on getting the clipboard to work? My code as of now: partial void copy1_Execute() { // Write your code here. …
user3744076
  • 127
  • 6
  • 15