Charta Software
Back to the base
E-mail:
New user
Forgot password
Password:
Created by on 2008-06-02 09:18:44
Last modified on 2008-06-05 10:19:14

Going deeper

Integrating code and data

If you have data you would probably save it in a spreadsheet or a database. Then you can get some overviews by filtering or sorting, or you can edit your data by simple operations like addition or multiplication. If you want to perform more complicated operations you would probably write a macro or write some code in a suitable programming language. In any case, your data and logic will be saved separately. Unlike Charta. Charta saves everything in one database, charta.data. This means that you can write code that uses or manipulates your data and direclty see the effects. It's all in one screen.

Manual-GoingDeeper-AllInOneScreen.JPG
Click to expand

Charta.data, visible in the explorer on the left, has a DOM structure. It is based on references. In essence every function, every class and every piece of data can be pointed to from every context.

To get a clear (starting) structure charta.data is divided in:

  • Programming: a package structure that contains all the classes and functions
  • Ad hoc functions: a selection of functions with a utility purpose
  • Main functions: custom functions that start a process
  • Classes: custom classes
  • Data objects that can be accessed from every function
Exploring the database
  • Navigate to charta.data with the key combinations Windows+Arrow
  • Expand and collapse the nodes in the tree by using the Left and Right keys.

Lessons learned

  • Everything is saved in one database
  • Everything is based on references

Next steps

Globals

This section shows you how to add and change tables (globals).

Classes

Besides using existing classes and functions you can also create your own.

Custom members

Because Charta is object-oriented you can create members referring to objects from a custom class.

Functions

Use functions to select and edit your data.