Charta Software
Back to the base
E-mail:
New user
Forgot password
Password:
Created by on 2005-11-09 17:47:11
Last modified on 2008-06-05 15:54:23

Functions

Charta has a built in programming language. With it you can make selections of or perform manipulations on your data. In the previous example we added a Note to a Weekly task. We will show you some basic techniques to use functions on these notes and tasks. But before we do so, we start with showing you how to evaluate or run functions and help you create a function that doesn't use any data so that you can get acquainted with the different features on a function control.

Prepare for coding

Up till now we have only looked at the data part within the demo. Now we are going to add functionality. To be able to get into the code you have to press Alt+d. This gets the application into developer mode.

Function evaluation

An example that uses a standard function.

A straight forward function

An example to create, edit and evaluate a function.

Data selection and manipulation functions

An example of a function that uses data from our time registration.

Lessons learned

  • evaluating available functions in two different ways
  • creating and opening new functions
  • setting a functions return value
  • adding parameters to a function
  • adding local variables to a function
  • editing in the Charta code editor
  • using the code completion drop down box while editing
  • switching between different views of the code