You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Preface

SimpleOne comprises of the back-end server and front-end server.

Back-end server responsibility is interaction with the database, it handles all the queries received from the frontend server. By results, it forms a JSON object and returns it to a front-end server via API.

Back-end and front-end interaction scheme

The front-end server works as a SPA (Single Page Application). It means that the page is loaded only once, and then, when changed, or when any button clicked, the query to the back-end server is sent to process the changes. The back-end server processes this query and returns the answer in JSON format. After that, the changes are applied and displayed in the interface.

SPA functionality scheme


Tables and Columns

As mentioned before, SimpleOne stores its data and business logic in tables. In fact, SimpleOne comprises of a lot of tables, which, in turn, are made up of columns.

When new table is created, the following happens:

  1. The table structure forms;
  2. The table description and properties (business-rules, access rules, and so on) are recorded into the sys_db_table table;
  3. Similarly, if a column added, it's description and properties are recorded into the sys_db_column and sys_db_column_type tables.

Table Creation Scheme

Interface Behaviour

One of the major concepts in the SimpleOne interface is form. It is used for most of the user purposes along with the lists.

In SimpleOne, form is a container for the elements. Usually, it's a fields of a various types (input fields, checkboxes, drop-down lists, and so on). Fields can be grouped by sections, for a rational and visual separation.

Form displaying scheme

  1. User requests the form displaying;
  2. The form performs requests to appropriate ACL rules, corresponding with the user and his group, if he is permitted to view this form. For more information about ACL, please refer to the ACL article;
  3. After performing ACL checks, the result containing this current user access rights set returns to the form;
  4. The form is displayed (or not shown. if access is denied) to the user in line with his access rights.

  • No labels