Jam.py documentation

New catalogΒΆ

Let’s go back to the Application builder page and create a “Customers” catalog.

Now we select the “Catalogs” group in the project tree and and click on the New button at the bottom right corner of the page

Catalogs

In the Item Editor dialog, fill in the caption and name of the new catalog

New customes catalog

and click the New button in the bottom right corner of the dialog to add a new field. The Field Editor dialog appears. Type the caption and name of the “Firstname” field, select its type and click OK button.

New journal tasks

Similarly, add the “Lastname” and “Phone” fields.

Customers fields

Now, to save the changes, click the OK button. When saving, the Application builder created the CRM_CUSTOMERS table in the ctm.sqlite database:

Table created

Go to the Project page and press F5 to refresh it and click on the New button

Customers page

Go back to the Application builder, double-click the “Clients” catalog, and then, the “Lastname” field and set the “Required” and “Default” attributes. For catalogs whose “Default” attribute is set, the default code supports searching.

Customers page after attributes are set