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

Lightswitch Multiple filtered tabs

Im using lightswitch and is it possible to represent data with this kind of layout? The files im trying to show in the list are filtered into Types which are QSS, Installers and Updaters. I managed to put some filtering query but I dont know what to…
user3744076
  • 127
  • 6
  • 15
0
votes
1 answer

Clear searchbox (textbox text) after query

Using HTML Lightswitch The application I'm working on is for our inventory team to scan barcode's off devices. I have a Browse screen with a local string property used as my search box (textbox) that's binded to a query. This search box is where a…
HiTech
  • 913
  • 1
  • 16
  • 34
0
votes
0 answers

Flipswitch in lightswitch is going in an infinite loop

I got this piece of code for rendering and using Flipswitch as a custom control in lightswitch application. function createBooleanSwitch(element, contentItem, trueText, falseText, optionalWidth) { var $defaultWidth = '5.4em'; var $defaultFalseText =…
0
votes
1 answer

Lightswitch load all data or run a async method synchronously

I have a grid with data in Lighswitch application. Grid has on every column posibility to filter column. Thanks to lsEnhancedTable Right now I am sending an ajax request to the web api controler with the list of ids of the Customers that I want to…
0
votes
1 answer

Consume data returned from a WCF Service Application in HTML Lightswitch

I have a WCF Service Application hosted in IIS. This service queries clients on our network for WMI data on demand. I would like to consume this data in my Lightswitch HTML application which is also hosted in IIS on the same server. Do i need to use…
HiTech
  • 913
  • 1
  • 16
  • 34
0
votes
0 answers

MS Lightswitch Application, add temporary fields in data table

I have a requirement to add a temporary field in a data table. There are two types of fields you can add in data table. One is DATA fields which are actual fields, and Second is COMPUTED fields which have some limitations (not discussing here). Let…
M_Idrees
  • 2,080
  • 2
  • 23
  • 53
0
votes
1 answer

How can I select the year in each row

I am trying to get list of Dates of the year of manufacture for determining the age of vehicles. My column looks like this: and my code looks like this partial void Reports_InitializeDataWorkspace(List saveChangesTo) { //…
0
votes
1 answer

How Does the Silverlight Client Talk to the Server in a 3 Tier Lightswitch Application?

I've picked up a legacy 3 tier Lightswitch application, and need to deploy it to a new server in my work. The client is a Silverlight application deployed to a file server where my clients can access it, and the Server is hosted on an IIS…
0
votes
2 answers

Display Distinct values in LightSwitch browse screen

i have one browse screen which is fetching value from one entity(Attached to SQL datasource), the entity will look like the below snapshot. So in the browse screen its coming with all row values (1,2,3 and 4) even though i removed the Role field…
0
votes
3 answers

Cannot assign to foreign keys in Lightswitch - Property or indexer cannot be assigned to -- it is read only

I looked at other similar questions, but I cannot figure this out on my own. I am currently using Lightswitch 12.0.3 Update 4 version of Lightswitch and I previous versions of Lightswitch I could do these kind of things with ease... So I don't…
lapadets
  • 1,067
  • 10
  • 38
0
votes
1 answer

How do I include/show data from a child table in a Modal Window?

How do I show data from a child table in a Modal Window? I have an application where each customer might have multiple addresses and phone numbers which are stored in child tables. When I show the customer in a record on a screen I can place a…
0
votes
1 answer

Updating a TextBox control's binding targets as PropertyChanged (keydown) in LightSwitch HTML clients

We're working with the Visual Studio LightSwitch HTML client and, in certain cases, we'd like to update the binding targets as the text is entered in the TextBox control rather than on the LostFocus of the control. This would work in a similar…
0
votes
2 answers

Lightswitch - Publish Greyed out in Configuration Manager

I am attempting to publish my Migrated VS2012 -> VS2013 lightswitch application. I had to upgrade my project after 2012 decided that auto-generating my new tables code was just too hard for it. 2013 worked the charm, everything went back up and I…
0
votes
2 answers

Custom Silverlight Control Binding Issue Lightswitch

I've been fighting with a certain issue with custom control binding i cant seem to be able to solve. I'm trying to bind a wizard control i downloaded from the web to one of my screens, but for some reason the bindings wont pull through. I have…
0
votes
1 answer

Entity saved successfully but still showing "Save operation failed ok"

Basically, I have an AddEdit screen (loaded from a browse screen) from which am saving an entity. On clicking on the save Icon, the entity was actually saved but am still getting a "save operation failed Ok" message popping up which was preventing…