Tutorials & ManualsSQL YogaSQL Yoga Table ObjectsFamiliarizing Yourself With The "table objects behavior" Property

Familiarizing Yourself With The "table objects behavior" Property

Each Database object in SQL Yoga has a table objects behavior property. The table objects behavior is a central location where you store the code to create various SQL Yoga objects such as Tables, Scopes and Relationships. It is also a location where you add validation routines and other callbacks.

Before you can create table objects you should assign the table objects behavior property of the Database object to a button in your application. The script of the button will be used to create objects and define certain behaviors.

The dbobject.createTables Message

The dbobject.createTables Message

The only message your behavior script must handle is the dbobject.createTables message. This message is sent whenever SQL Yoga is processing a request to create the table, relationship and scope objects for a Database object. All existing objects are deleted before this message is sent so you are creating the objects from scratch each time.

This message is triggered when a) you set the table objects behavior property of the Database object or b) you call tableobjects_reload.

0 Comments

Add your comment

E-Mail me when someone replies to this comment