So… We now have a fancy connection to our security tables. Lets create some screens. We were hoping that AIDE would have support for VS2013, but not as of this writing, so we’ll have to go thru this the tedious way. Hopefully it will be compatible soon and then we’ll update the tutorial with those steps.
- In Visual Studio
- Open up the properties for the LsCoreProject
- Add some application permissions
- Add/Edit/Delete
- Make sure SecurityAdministration is checked for debug
- Now Under the LsCoreProject.App
- Create a generic Browse screen
- Screen Name: Profile
- Screen Data: None
- This will just give us a public screen for later
- Create a new Browse screen
- Screen Name: PermissionsBrowse
- Screen Data: LsSecurityData.Permissions
- Change the Permissions List to Tile List
- Drag the Name field to be before Id
- Make this screen your Home Screen
- Save and build your solution
- Run the app, you should see your 4 permissions
Pretty cool eh?
- Back in Visual Studio
- Select the Permissions Tile List
- In Properties, select Item Tap
- Choose an existing method, viewSelected, New Screen
- Screen Name: PermissionView
- Screen Data: LsSecurityData.Permission
- Additional Data: Permission Details
- In Properties for the screen, select Show As Dialog
- Adjust your layout to your liking
- Save your solution and run to preview
Next… Screens For Role Management
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
- — You
- 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
Hi Dale, I’m getting the exact same issue as Joe. Really scratching my head over this! The problem is on the screen UserRegistrationView (tab – RoleAssignments) – they are just not showing, but if you add a role, the system does report if that user is in that role already with a verbose, nasty looking error message!
I’d made a few mods so just to be sure I went back to your base project, sure enough same issue. Really odd since the screen design is all linked entity and collection wise correctly as far as I can make out. Promise I’ve checked many things before leaving this message!
Hopefully you could shed some light?
Cheers,
Ian MacPherson
I followed up to this point, just notices that I do not get any RolePermissions and RoleAssignments even though I doubled checked they are in databases tables abo.RolePermissions. Any help will be appreciated.