Michael Washington's Blog, page 18

May 8, 2013

Visual Studio LightSwitch Screen Navigation and Advanced JavaScript Examples

image

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 Client
 •  0 comments  •  flag
Share on Twitter
Published on May 08, 2013 20:59

May 5, 2013

Dynamically Creating Records In The LightSwitch HTML Client

image

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 Client
 •  0 comments  •  flag
Share on Twitter
Published on May 05, 2013 21:41

May 4, 2013

Creating a WCF RIA Service for Visual Studio 2012 (Update 2 and higher)

image

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 Service
 •  0 comments  •  flag
Share on Twitter
Published on May 04, 2013 11:29

May 3, 2013

Programmatically Constraining a List In a Popup

image

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 Client
 •  0 comments  •  flag
Share on Twitter
Published on May 03, 2013 07:34

April 29, 2013

Sneak Peek: Wijmo Creates Custom JavaScript In LightSwitch HTML Client

image

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…

 •  0 comments  •  flag
Share on Twitter
Published on April 29, 2013 23:34

April 25, 2013

Walk-thru Examples of Common Visual Studio LightSwitch JavaScript

clip_image002

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 Client
 •  0 comments  •  flag
Share on Twitter
Published on April 25, 2013 20:25

April 23, 2013

Deleting Data In The Visual Studio LightSwitch HTML Client

image

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 Client
 •  0 comments  •  flag
Share on Twitter
Published on April 23, 2013 14:02

April 17, 2013

LightSwitch HTML Picture Manager Using WCF RIA Services

image

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 Service
 •  0 comments  •  flag
Share on Twitter
Published on April 17, 2013 23:28

April 12, 2013

Server Side Search using the LightSwitch HTML Client

image

The LightSwitch HTML Client allows you to easily create a server side search…

Tags: HTML Client
 •  0 comments  •  flag
Share on Twitter
Published on April 12, 2013 07:31

April 11, 2013

Computed Properties With the LightSwitch HTML Client

image

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
 •  0 comments  •  flag
Share on Twitter
Published on April 11, 2013 22:43