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

Unable to use Syncfusion JavaScript components in LightSwitch HTML

I have just bought the SyncFusion Essential Studio Enterprise for $599. I am using their LightSwitch Silverlight components with no issues but seem to be having some strange issues when using the JavaScript components. This is all of the content of…
agAus
  • 675
  • 1
  • 7
  • 11
0
votes
1 answer

Access an Entity Query in Linq -- Lightswitch application

I am using lightswitch. Now i have an entity name: Jobs and that entity "Jobs" has a query item name Query1. Now i would like to access Query1 using linq. var qryUser = ds.sspData.Jobs.Where(a => a.UserName.Contains(uName)).FirstOrDefault(); That…
0
votes
1 answer

Data verification when saving with Lightswitch

Right now I have a table I'm entering in spud date and release date. I want to verify that when adding a new row it looks in that current table to see if there is any other spud dates, to make sure the new spud date is later then the previous spud…
Sirus
  • 382
  • 1
  • 8
  • 35
0
votes
1 answer

LightSwitch EventHandlers

Developing my first real LightSwitch App. From the main screen it drills through some hierarchical entities using detail screens until we come to a Browse screen for a particular leaf object (type 'Unit') The chosen Unit has many date stamped…
Bob Clegg
  • 553
  • 2
  • 9
  • 21
0
votes
1 answer

copying one record to another in lightswitch

Does anyone know how to do this. I googled it but it is an old tutorial video for 2010 and doesn't seem to match up proper instructions on how to do it. I'm using 2012. I would like to add a copy button and then click on a record , click copy and…
Sirus
  • 382
  • 1
  • 8
  • 35
0
votes
0 answers

LightSwitch Programmatic Move between screens

First Attempt at LightSwitch. Using HTML Client. Hierarchical data, displayed in screens through Parent->Child relationships using Item Tap. At the last child detail screen (Units Detail) I want to move to a screen showing the 'readings' for the…
Bob Clegg
  • 553
  • 2
  • 9
  • 21
0
votes
1 answer

Best practice on how to store geography

I am using sql server 2008. I attempted to use geography data type. But i'm using lightswitch 2012 and it doesnt' support geography so I have to change the data type for long/lat. Whats the best practice in this case? decimal(9,6) ???
Sirus
  • 382
  • 1
  • 8
  • 35
0
votes
1 answer

WCF RIA in LightSwitch: cardinality of Association

Hello to all (sorry for my bad english), I have a strange problem: I'm using a WCF RIA Service in LightSitch 2012 (LS). The Class Library with the WCF RIA compiles, and I'm able to use it a new Data Source in LS. I'm able to import the tables and…
CodeTheCat
  • 43
  • 1
  • 6
0
votes
1 answer

Navigate back in Lightswitch (HTML5) on iOS 7 devices

i'm having an issue with my Lightswitch (html5) app on iOS7 devices. When i hit the back button all i see is the loading gif and nothing responds. on all other devices (including iOS6) are fine. i had built another app that used jquerymobile and…
0
votes
2 answers

Setting the default value of field to the value of a parameter

I am using lightswitch and i was able to set a default value for a field using the Created() method. Now I can explicitly set this value. My query has a parameter that filters it. I want to set my default value of the field to which ever dynamic…
Maverick1415
  • 113
  • 1
  • 12
0
votes
2 answers

Lightswitch 2012 and Windows XP

i finally finished a proyect i was requested in my university with Lightswitch. Im ready to deploy (publish) next week, and i was JUST told that the people that will recieve the software, are using XP machines. I've read a lot of questions and lots…
0
votes
1 answer

How to call MySQL Stored Procedures from Lightswitch?

I followed the instructions here to try and call a (parameterless) MySQL SP from within a LightSwitch 2012 application. This cited instructions are for SQL Server SPs. Here is the relevant code: using System; using System.Configuration; using…
0
votes
1 answer

LightSwitch Lists Within Lists

I have a browse screen in LightSwitch Html that lists Requests. Each of these Requests contains a list of People. This is a many to many relationship between People and Requests, done using a RequestPerson table. On the screen I would like to…
GlenW
  • 13
  • 1
  • 6
0
votes
2 answers

Server Error in /MyApp Application (Access Denied)?

I've just published my LS app to my host (WinHost) and I used the publish settings provided by my host and setup the database, etc. And when I go to my website address (where the app is located), I get the following page: Server Error in '/MyAPP'…
0
votes
1 answer

Displaying current month unpaid customer in lightswitch

I have created 2 tables, Customer and Payment. A customer can have many payments, where payment have payment date and amount. Now I want to display current month's unpaid customer, I really couldn't figured it out how to create the query. Can anyone…
srisar
  • 1,495
  • 5
  • 18
  • 27