So all those modules leading up to this. Seems anticlimactic eh?
We’ll be creating two screens that will be used for navigation with the new Metro (Modern) tiles.
- In Visual Studio
- Add a new Browse Screen
- Screen Name: Start
- Screen Data: none
- Add a new Data Item to the screen
- Local Property, Boolean, Not required
- Name it: itgReady
- Add a Custom Control under Rows Layout
- Leave the Screen as the data path
- Set the Label Position to None
- Edit Render Code for this Custom Control
- Add the following code to the method
// This will initialize the system, getting user info, permissions, etc // Only needed in your startup screen. Called once. itgLsHelper.init({ readyPropertyName: "itgReady", contentItem: contentItem, element: element, menuName: "Start" });
- Again if you drag over the itgLsHelper.js file to the top of the screen you’ll have Intellisense.
- Also, Set this screen as your Home screen.
We need to create another screen for our Security menu.
- Add a new Browse Screen
- Screen Name: Security
- Screen Data: none
- Add a Custom Control under Rows Layout
- Leave the Screen as the data path
- Set the Label Position to None
- Edit Render Code for this Custom Control
- Add the following code to the method
// Pretty easy... just pass the name of the menu to render itgLsHelper.tileMenu(element, "Security");
Yay! Time for a new part of the process, creating a database project that we can use to prepopulate our data. I can’t imagine anyone not using this feature going forward with LightSwitch, its such a time saver.
Next… Create a Database Project
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
- — You
- Create a database project
- How to deploy successfully
- Wrap up