LS2013 Core Project – Screens for permissions

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.

  1. In Visual Studio
  2. Open up the properties for the LsCoreProject
  3. Add some application permissions
  4. Add/Edit/Delete
  5. Make sure SecurityAdministration is checked for debug
  6. Now Under the LsCoreProject.App
  7. Create a generic Browse screen
  8. Screen Name: Profile
  9. Screen Data: None
  10. This will just give us a public screen for later
  11. Create a new Browse screen
  12. Screen Name: PermissionsBrowse
  13. Screen Data: LsSecurityData.Permissions
  14. Change the Permissions List to Tile List
  15. Drag the Name field to be before Id
  16. Make this screen your Home Screen
  17. Save and build your solution
  18. Run the app, you should see your 4 permissions

    Pretty cool eh?

  19. Back in Visual Studio
  20. Select the Permissions Tile List
  21. In Properties, select Item Tap
  22. Choose an existing method, viewSelected, New Screen
  23. Screen Name: PermissionView
  24. Screen Data: LsSecurityData.Permission
  25. Additional Data: Permission Details
  26. In Properties for the screen, select Show As Dialog
  27. Adjust your layout to your liking
  28. Save your solution and run to preview

Next… Screens For Role Management

Here are the topics and their logical order:

  1. Create the project
  2. Add external CSS
  3. Add external scripts
  4. Update the default.htm
  5. Add LogIn/LogOut/Register/ChangePassword
  6. Create the security data source
  7. — You
  8. Screens for role management
  9. Screens for user management
  10. Tables for tile menus
  11. Screens for icon management
  12. Screens for menu management
  13. Create a tile menu screen
  14. Create a database project
  15. How to deploy successfully
  16. Wrap up

2 thoughts on “LS2013 Core Project – Screens for permissions

  1. 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?


    Ian MacPherson

  2. Joe Lee says:

    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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: