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

Implementing audit trail using multiple tables

In my previous applications i have successfully set up an audit trail using Paul Van Bladel's approach. His approach worked perfectly and was extremely easy to follow. However, he's only using a single table to store the audited records. I need to…
HiTech
  • 913
  • 1
  • 16
  • 34
0
votes
1 answer

Eliminate Circular Recursion in Lightswitch

I am new to lightswitch development, so far I immensely dislike it. I have the following problem: I have a table called employees, each employee has a boss which is also an employee. I would like to present a user with a choice of bosses which does…
Morgoth
  • 4,935
  • 8
  • 40
  • 66
0
votes
1 answer

Combine fields from two tables into one autocompletebox

I have two tables "Services and Projects". Both tables have a "Name" field. I would like to take both fields from both the tables and put them into a single autocompletebox in one of my screens. I searched around and found different methods of doing…
0
votes
1 answer

Hide/Disable Fields in Default Modal Window

I have a table with a many to many to many relashionship. I'm using this table as my screen data in a "New Data screen". When a user press the default add button (+), a dialog box pops up with 3 autocompleteboxes. I would like to hide/disable one of…
HiTech
  • 913
  • 1
  • 16
  • 34
0
votes
1 answer

Lightswitch Deployment Issues

I am trying to deploy a lightswitch app via web deployment. This will be a web application. It seems to publish just fine, and after a long period of troubleshooting, a coworker and I were able to finally get an admin user added, but now the site…
shawleigh17
  • 1,147
  • 4
  • 22
  • 42
0
votes
1 answer

How to manage images with image database field?

In the LightSwitch 2012 HTTP Client solution, How to manage images within forms?. I want to upload/Edit images fields from sql database but this fields only shows blank space and nothing Action when I tap over them. Only I want to do is when I tap…
jcamacho
  • 818
  • 2
  • 12
  • 25
0
votes
1 answer

LightSwitch app design

I’m currently working on a LightSwitch (LS) app that will be use for tracking project workload across multiple departments in my organization. I intend on using Windows Authentication (Allow only user and AD sec groups) for my access control. I’ve…
HiTech
  • 913
  • 1
  • 16
  • 34
0
votes
1 answer

Filter query from many to many relationship, doesn't seem possible in Lightswitch?

I'm trying to implement this many to many relationship query as exemplified here. I have an employees table, a "zone" table, and an employee xref zone table. One employee can belong to many zones, and one zone can have many employees. Coming at this…
tpcolson
  • 716
  • 1
  • 11
  • 27
0
votes
1 answer

Lightswitch: Stop Windows Service

I have a small desktop application built in LightSwitch that allows remote Sales Staff to log and work with customer data locally on their laptops as the customer sites don't always have internet/VPN access. As such, each client application has a…
VBAddict
  • 23
  • 3
0
votes
1 answer

Use Search box for AutoCompleteBox in LightSwitch

I want to use LightSwitch Search Data Screen for display my tables value and use the search box for find some value from my tables. My first table is "TBCompany", and the second table is "TBNode". I also have a table "TBNodeCompanies" that contains…
Soheila Hg
  • 569
  • 2
  • 7
  • 25
0
votes
1 answer

Lightswitch app publishing to Azure is failing on service configuration line

In publishing a Lightswitch app to Azure (for the first time) I get to the Service Configuration line and the "Select a web site to host your application". I have created the website on Azure as well as a SQL database and linked them. I have…
Mark
  • 520
  • 1
  • 6
  • 18
0
votes
2 answers

Error while publishing Lightswitch application remotely from Windows 7 PC to Windows 2003 Server having IIS 6.0

I am trying to publish a Light Switch 2012 application as Web Application from Windows 7 PC to Windows 2003 IIS server, .Net Framework 4.0 The publish Summary as follows Application Name - User Test Application Version - 1.0.6.0 Application Type :…
0
votes
2 answers

Lightswitch Time Control

I have a time field that i would like to represent on a lightswitch screen. They only offer a date time picker and viewer. Does anybody know a work around for this? I do not want the date, just time. In my database the column is defined as time(7).…
0
votes
1 answer

Lightswitch - how to customize create user screen

I need to customize create user screen in Lightswitch application. Like I need an additional field in user creation screen, the purpose is to store user location. Is it possible in lightswitch or any workaround there? Please suggest.
M_Idrees
  • 2,080
  • 2
  • 23
  • 53
0
votes
1 answer

How to add a lightswitch property based on related table custom query?

This is probably a simple solution but I am just trying out LightSwitch for the first time. The problem that I am running into is that I have a table called Job that needs 2 employees tied to it. There are 2 types of employees, Operators and…
Landon Hammond
  • 138
  • 2
  • 11