Michael Washington's Blog, page 18
May 8, 2013
Visual Studio LightSwitch Screen Navigation and Advanced JavaScript Examples
Visual Studio LightSwitch team member Huy Nguyen is a good person to follow on the Visual Studio LightSwitch forums. He typically provides well explained answers to difficult questions and usually provides code samples, and in some cases downloadable projects. In this article, I have created examples using techniques I learned from some of my favorite posts that he made…
Tags: HTML ClientMay 5, 2013
Dynamically Creating Records In The LightSwitch HTML Client
You may have situations where you need to dynamically create records. Typically you will want to do this when you don’t want to navigate away to a new page to add a record…
Tags: HTML ClientMay 4, 2013
Creating a WCF RIA Service for Visual Studio 2012 (Update 2 and higher)
The primary reason you may want to use WCF RIA Services with Visual Studio LightSwitch 2012 is to:
Combine more than one entity into a single entity. Eliminate unneeded columns in an entity to improve performance (otherwise large amounts of data, for example pictures, will be transmitted even when they are not shown). Implement calculated fields that allow the resulting values to be searchable and sortable. Tags: WCF RIA ServiceMay 3, 2013
Programmatically Constraining a List In a Popup
LightSwitch will allow you to easily create a popup to allow a user to select an item from a list in an associated table and to set a value. What is more difficult, is constraining that list of items presented based on business rules…
Tags: HTML ClientApril 29, 2013
Sneak Peek: Wijmo Creates Custom JavaScript In LightSwitch HTML Client
ComponentOne allowed me to play with their upcoming Wijmo controls for the Visual Studio LightSwitch HTML Client. The thing that makes them special is that they work as plug-ins in the LightSwitch HTML Client designer and allow you to create custom JavaScript with a click of a button. At the same time they give you full control over the controls as you can easily alter the rendered code…
April 25, 2013
Walk-thru Examples of Common Visual Studio LightSwitch JavaScript
The Microsoft Visual Studio LightSwitch Team recently posted example JavaScript code to accompany the MSDN documentation: How to: Modify an HTML Screen by Using Code. In this article, we will look at some of the examples they posted and provide a step-by-step walk-thru…
Tags: HTML ClientApril 23, 2013
Deleting Data In The Visual Studio LightSwitch HTML Client
You have multiple options when you programmatically delete data in the Visual Studio LightSwitch HTML Client. Unlike the insert and update tasks, there is no wizard to allow you to easily create a button to allow a user to delete data. You must write a bit of code…
Tags: HTML ClientApril 17, 2013
LightSwitch HTML Picture Manager Using WCF RIA Services
This article describes a Visual Studio LightSwitch HTML Picture File Manager that uses WCF RIA Services to upload and view files on the web server.
Tags: WCF RIA ServiceApril 12, 2013
Server Side Search using the LightSwitch HTML Client
The LightSwitch HTML Client allows you to easily create a server side search…
Tags: HTML ClientApril 11, 2013
Computed Properties With the LightSwitch HTML Client
The current version of the LightSwitch HTML Client does not expose the computed properties created at the Entity level. Here are a few methods you can use…
Tags: HTML Client