Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

99 wiersze
4.1 KiB

  1. Using the Administrator Interface
  2. =================================
  3. Applications are built using the web based administrator interface of the framework.
  4. Let us start discuss how to build applications using the basic building blocks
  5. What is an Application?
  6. -----------------------
  7. Let us define a typical web application as being a set of:
  8. #. Users - who use the application
  9. #. Roles - roles assigned to users for various functions
  10. #. Pages - where users navigate and see relevant information
  11. #. Forms - where users enter new data
  12. #. Reports - where users get a tabulated view of their data
  13. #. Permission Rules - that define what each role is allowed to do or not do
  14. #. Logic - Automatic actions that are performed at various events
  15. #. Validations - Checks that ensure the data entered by the users is valid
  16. #. Print Formats - Printable documents based on the data users have entered
  17. #. UI Widgets - Menus, Lists, Dialogs that are used for navigating, entering or displaying information
  18. #. Module - So that you can group Roles, Forms, Pages, Reports for more complex applications
  19. Let us now start building these entities in the wnframework
  20. Administrator Login
  21. -------------------
  22. An application is built via the browser front end. To have the right access to build applications, you must
  23. login as an Administrator.
  24. If you are in a new system that does not have any application, your first login as "Administrator" is the
  25. Administrator login.
  26. Creating Entities
  27. -----------------
  28. To create any entity, you must have the relevant permission. Once you have the relevant permission, you can
  29. create new entities from the top toolbar.
  30. Look out for the "New" button on the top left of the page. Via the "New" dialog box, you can create any
  31. entity you have rights to create.
  32. .. note::
  33. * Entities in wnframework are known by their "name". Name has the same concept as id - its a unique key
  34. for that entity (same as a Primary Key).
  35. * Every entity also has an "owner" - By default this is the user who creates that entity.
  36. Managing Roles
  37. ---------------
  38. Roles are assigned to users so that you can define a group of users and set permission (or other) rules.
  39. #. To create a new role, click "New" on the top toolbar and select "Role"
  40. #. Give the Role name, use descriptive names here like - "Contact Manager"
  41. #. Set the module, (use the standard; if you want create a new module, go ahead!)
  42. #. Click on the green "Save" button
  43. Your new Roles is created! To check, click on the "Search" button on the top toolbar and select "Role"
  44. Click on "Search" and see that your new Role is added to the list of already existing roles:
  45. .. note::
  46. Pre-defined roles. There are 3 basic roles that are pre-defined in the system. It is suggested,
  47. you leave them as it is!
  48. #. Administrator: Role given to the application builder / maintainer
  49. #. All: All logged in users have the role "All"
  50. #. Guest: Users who are not yet logged in.
  51. Creating Users (Profile)
  52. ------------------------
  53. A Profile (=user) has a unique identity in the system and can be tagged as an "onwer" to a data record.
  54. Profiles can also be assigned Roles that restrict what they can do. You can also define custom logic
  55. for a Profile
  56. To create a new Profile:
  57. #. Create a new Profile via "New" on the top toolbar
  58. #. Enter the mandatory "First Name" and "Email" values
  59. #. "Save" the profile via the "Save" button
  60. #. The user will be sent an email with her random-genereated password. You can also set a custom password
  61. by clicking on the "Password" tab and setting the password.
  62. #. *To assign a role, click on the "Roles" tab and add a "Role" in the table.*
  63. Once a Profile is created, the user can login with the login id (email) and password.
  64. .. note::
  65. Profiles are given an id that is the same as their email id. Why did we do this?
  66. * Email Ids are good unique identifiers. Your users may have the same first and last names,
  67. but they would have separate Email Ids
  68. * People usually remember their email ids
  69. * Email Ids are these days the de-facto way to define login-ids