Interacting with Content Items on the Screen with the LightSwitch API (Kevin Mehlhaff)

A LightSwitch application at its core is built by adding data to screens and creating a tree of content items to display and interact with this data. LightSwitch provides a JavaScript API over these content items so that you can interact with them programmatically. What is a Content Item? If you open a screen designer… Read more

A Tour of the LightSwitch HTML Client APIs (Elizabeth Maher)

LightSwitch generates a custom API set based on project assets that developers can use when writing custom code in the HTML client. Each data source, table, query and screen causes various items to be created in the API. Even actions on each of the LightSwitch designers can have affect. This article will enumerate what actions… Read more

Promises in LightSwitch (Justin Anderson)

In previous posts, we’ve mentioned that the HTML client runtime uses promises to perform asynchronous execution. In this post, we’ll briefly explain what a promise is and show you where promises are provided in your LightSwitch application to allow you to asynchronously react to state changes in the application. What Is A Promise? A promise… Read more

Introduction to jQuery for App Customization (Kevin Mehlhaff)

JQuery is a popular JavaScript library that is used by many websites. LightSwitch employs jQuery to make it easy for developers to customize their applications. JQuery enables you to easily select, manipulate, and traverse HTML elements in the document object model, or DOM. You can think of the DOM as being a tree of elements,… Read more

Customizing the Table Control: Sortable by Column (Kevin Mehlhaff)

The Table control is a new way to display a collection of data in the LightSwitch HTML Client as of Visual Studio 2013. Like all controls in the LightSwitch HTML client, you can take over the rendering and write your own custom code. Today we will be leveraging the power of the LightSwitch middle tier… Read more

New Navigation Features in LightSwitch HTML Client (Chris Rummel, Rohit Agrawal)

Today we’ll be exploring two new features added to LightSwitch HTML Client – global navigation and default details screens. With global navigation you can navigate to any Browse screen from any other screen throughout the LightSwitch application. Default detail screens let you jump directly to the details page of a given entity. We added these… Read more

Using the Person Business Type (Karol Zadora-Przylecki, Ravi Eda)

The Person business type is a new LightSwitch feature introduced in Visual Studio 2013. Its goal is to make it easy to add and manage people-related data in your application. In this post we will show you how to use the Person type and what it can do for you. Getting Started Suppose you are… Read more

How To Build an Office 365 Cloud Business App with Visual Studio 2013 (Andy Kung)

Office 365 is an ideal business app platform providing a core set of services expected in today’s business apps and a central location for installing, discovering, and managing apps. Office 365 makes these business apps available where users already spend their time – in SharePoint and Office. Visual Studio 2013 streamlines modern business app development… Read more

HTML Upload Control For LightSwitch SharePoint Apps (Matt Sampson)

Matt Sampson, Senior Tester on the LightSwitch Team, wrote an HTML Upload Control available on NuGet that you can use in your SharePoint-enabled apps. The control will upload any file to a document library. He wrote a post on his blog showing how to upload images with just a few lines of JavaScript code that… Read more

Drag and Drop with LightSwitch HTML Client (Rohit Agrawal)

While the built-in controls and features provided by LightSwitch are optimized for smaller form factors, it is possible to take advantage of the mouse events available on desktop browsers to enable drag and drop when then situation calls for it. With HTML5 it is possible to grab an object with a mouse click from one… Read more