Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
protogrid:proto [2018-02-07 10:32] – 31.17.252.102 | protogrid:proto [2021-12-21 22:58] (current) – dru |
---|
====== Proto ====== | ====== Proto ====== |
| |
A Proto defines some type of [[protogrid:card|Card]] in your Application. A Proto can be seen as a template for Cards. Every proto has a name and a plural name for the [[protogrid:proto#Overview Proto|Overview Proto]]. The Proto defines the [[protogrid:field|fields]] and [[protogrid:widget|widgets]] on the card. In addition, one can specify [[protogrid:access_rights|access rights]] for all Cards based on this Proto and which [[protogrid:script_library#Server-side Script Library|Server-ScriptLibrary]] belongs to this Proto. | A Proto defines some type of [[protogrid:card|Card]] in your Application. A Proto can be seen as a template for Cards. Every proto has a name and a plural name for the [[protogrid:proto#Overview Proto|Overview Proto]]. The Proto defines the [[protogrid:field|fields]] and [[protogrid:widget|widgets]] on the card. In addition, one can specify [[protogrid:access_rights|access rights]] for all Cards based on this Proto and which [[protogrid:script_library#Server_ScriptLibrary|Server ScriptLibrary]] belongs to this Proto. |
| |
===== Comparison with relational databases ===== | ===== Comparison with relational databases ===== |
In relational databases, the data model is represented by the table schema. A table for "books" may define the attributes "ID", "name", "author", such that each data entry has to define a value for each of these attributes. In Protogrid, a Proto takes the role of the table in such a way that it defines the data schema for all cards which are based on this Proto. | In relational databases, the data model is represented by the table schema. A table for "books" may define the attributes "ID", "name", "author", such that each data entry has to define a value for each of these attributes. In Protogrid, a Proto takes the role of the table in such a way that it defines the data schema for all cards which are based on this Proto. |
| |
==== Find the Proto Key ==== | ===== Find the Proto Key ===== |
To get the Protokey of a Card, first open the relative Proto by clicking onto "This Card -> Open Proto" in the bottom left corner: | To get the Protokey of a Card, first open the relative Proto by clicking onto "This Card -> Open Proto" in the bottom left corner: |
| |