This is a major rewrite and will break the previous code. Blog has been udpated. Click here to see how to upgrade existing projects.
We are now utilizing external js code for most of the functionality. We've also moved to a namespace of itgLsHelper so that we don't collide with others.
http://localhost:port/register.aspxHere are a few of the functions included in this file:
init - initializes the system: gets user name & permissions, imports menus
passwordValidator - setup a visual field for password entry and validation
confirmPasswordValidator - setup a visual field for password entry and validate against the password field
screens - returns an array of your screens, name, display name and methods to show them
changeButtonIcon - changes the icon class of a button
colorPicker - setup a visual field as a color picker
iconPicker - setup a visual field as an icon picker
screenPicker - setup a visual field as a screen picker
userHasPermission - does the current user have the permission assignment
userHasRole - does the current user have the role assignment
tileMenu - setup a screen/container for a predefined MetroUI type tile menu
exportTileMenusToJson - export/return a JSON object representing all the tile menus
importJsonTileMenus - import a JSON object representing a set of menus and their tiles
importIconClassList - import a csv list of icon class list
urlParameterByName - get a URL parameter by its name
fixMetadataHandlerForEtag - a fix for a known ETag issue
fixJsonHandlerForEtag - a fix for a known ETag issue
internalHelpers - bunch of functions for internal use
=============
=============LightSwitch 2013 Core Project with User Mgt, Tle Menus and Self Registration
As noted in the title, this tutorial will show you how to setup a core LightSwitch 2013 project. Not just any LightSwitch project, but one that will allow User Management natively vs. having to use Web API. We'll also show you how to implement a highly configurable system that supports creating MetroUI style tile menus. Finally, it doesn't do any good if you can't deploy the application, so we will show you how with Microsoft Azure.
I know that this is a huge tutorial, again. I did try to make it a bit more manageable by breaking it up into pages vs. one humongous post. I encourage you to go through the tutorial (at least read it) rather than just downloading and running the code, there are some items that you should understand in order to have a successful deployment. Or Not :)
Here are the topics and their logical order:
- Create the project
- Add external CSS
- Add external scripts
- Update the default.htm
- Add LogIn/LogOut/Register/ChangePassword
- Create the security data source
- Screens for permissions
- Screens for role management
- Screens for user management
- Tables for tile menus
- Screens for icon management
- Screens for menu management
- Create a tile menu screen
- Create a database project
- How to deploy successfully
- Wrap up