You are here:   Blog
Register   |  Login

By Michael Washington on 6/13/2013 8:22 PM

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.

Previously, I created examples using techniques I learned from some of my favorite posts that he made. Those articles are:

  • Visual Studio LightSwitch Screen Navigation and Advanced JavaScript Examples
  • HUY Volume II - Visual Studio LightSwitch Advanced JavaScript Examples

In this article, I have created more examples from his latest articles…

By Michael Washington on 6/8/2013 6:46 AM

image

After using the Visual Studio LightSwitch HTML Client, you may wonder, how does it work? How does it turn the program we designed into an actual web application?…

By Michael Washington on 6/2/2013 3:14 PM

image

You can quickly and easily create PhoneGap Android and IOS applications from your Visual Studio LightSwitch HTML Client websites using VS Nomad from Redgate

By Michael Washington on 5/27/2013 11:12 AM

image

Visual Studio LightSwitch team member Huy Nguyen typically provides well explained answers to difficult questions, and usually provides code samples, and in some cases downloadable projects.  Previously, I created examples using techniques I learned from some of my favorite posts that he made. In this article, I have created more examples from his latest articles…

By Michael Washington on 5/26/2013 8:32 AM

image

Microsoft MVP and Visual Studio LightSwitch Insider, Alessandro Del Sole recently released an extension that “provides an easy way to install a number of JavaScript code snippets for the LightSwitch HTML Client created by the LightSwitch Team at Microsoft”. I decided to use it to help you create the code to implement the JQuery Mobile Reflow Table in Visual Studio LightSwitch that was covered in the article: LightSwitch HTML Client For The Desktop Web Browser

By Christopher Finlan on 5/24/2013 2:27 PM
So for a change, I thought I’d share a solution to a question I got around whether it was possible to create an org chart automatically from an Excel upload.  It is, but it’s tricky since you can’t create a parent/child relationship during the upload process, since the parent records don’t actually exist until the record is saved.  So here’s what I ended up putting together -

First, I put together a staging table where the OrgID and ParentID fields are string fields (you could use integer fields as well).  The other fields were simply unique to the spreadsheet I was using as a baseline, so that information can be whatever number of additional fields you’d like to use

image

...
By Michael Washington on 5/23/2013 5:55 AM

image

To maximize performance, all applications must properly manage the flow of data. When dealing with an entity (one row of data), Visual Studio LightSwitch transfers the entire entity from the data layer to the client, the user interface (UI) layer.  When dealing with collections (rows of data) LightSwitch uses Visual Collections, and is very deliberate as to how, and when it places entities in the Visual Collection

By Michael Washington on 5/20/2013 9:31 PM

image

You can easily implement animated help agents in your Visual Studio LightSwitch HTML Client applications…

By Michael Washington on 5/19/2013 9:41 AM

image

An objection many developers have about using Visual Studio LightSwitch HTML Client for their projects, is that they feel they need normal web pages. To many developers, LightSwitch HTML pages look odd when viewed in a normal desktop web browser.

The Reflow table displays data in a desktop web browser like any normal data grid, yet it will dynamically pivot the table when the screen becomes smaller (rather than just squeezing the table smaller). A user can easily view and navigate the table on any sized device…

By Michael Washington on 5/9/2013 6:28 AM

image

The Visual Studio LightSwitch runtime was updated to support JQuery Mobile 1.3. This is a step by step guide to updating the LightSwitch JavaScript Runtime…

By Michael Washington on 5/8/2013 7:59 PM

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…

By Michael Washington on 5/5/2013 8:41 PM

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…

By Michael Washington on 5/4/2013 10:29 AM

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.
By Michael Washington on 5/3/2013 6:34 AM

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…

By Christopher Finlan on 5/2/2013 9:28 PM
Alright, let’s skip the normal chit-chat and jump right in where we left off – remember, we wanted to accomplish the following items in this application.  For the users, it was:

-         Be able to monitor the sales pipeline from the SAP CRM system used by the sales team for their particular partner (SAP Data Source)

-         See if the companies in these opportunities they’ve identified are scheduled for any campaigns or events they have scheduled, or create a new item based on current deals (SQL Azure Data source)

-         Cross-reference this information against a list of potential existing customer references who already own the product identified in the sale (Sharepoint List Data)

-         Add status updates on an ongoing basis to keep the manager informed around what’s happening with upcoming events...
By Michael Washington on 4/29/2013 10:34 PM

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…

By Christopher Finlan on 4/29/2013 4:33 PM
 

Good news, everyone. Not only is my basement finally clean (see my previous post if you are wondering why you would care), but LightSwitch star Michael Washington begged reluctantly agreed to cross-post all of my new items on his blog as well! So for everyone who is viewing this on Michael’s website and is used to his detailed and well-structured posts around LightSwitch, I apologize in advance.

This post, however, is one that I’ve been waiting for almost a year to write – this is the first post where I demonstrate pulling your SAP data into a LightSwitch app using Netweaver Gateway!

Back when I first started this series, I mentioned a few common scenarios I would address. Two of those scenarios were:

- I want...
By Michael Washington on 4/25/2013 7:25 PM

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…

By Michael Washington on 4/23/2013 1:02 PM

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…

By Michael Washington on 4/17/2013 10:28 PM

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.


Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation