Creating and using data in your web service
The Data Manager is a powerful data tool that lets you create one or more data tables to store user or system-generated data from your web service. The tool is based on MySQL and allows you to define your data types with all of the flexibility you would expect from this powerful database, but does so in a easy to use interface.
HammerKit follows conventions on the naming of objects in the data manager. We use data classes, attributes and objects to define the tables you store data in, the fields you would like to use and the data rows themselves. Once you are familiar with classes, attributes and objects you can quickly create new classes to store your data using forms and retrieve it dynamically using lists or HammerScript.

Data Classes, Attributes and Objects
If you are familiar with database structures, you might have heard of these concepts described as tables, fields and data.
Creating a Data Class
+ open the data manager by selecting ʻDataʼ from the start button menu

+ click the ʻ+ʼ sign in the Data Classes tray a properties box will appear. Type a name for your data class and then click ʻSaveʼ

+ This will create the data class, but it is completely empty. We now need to add some attributes to the data class.
Adding Attributes to a Data Class
+ double-click the data class to open it on the data manager canvas
+ click the ʻ+ʼ sign above the canvas next to the ʻidʼ field. ʻidʼ is an automatically generated field that adds a reference to each row of your database
+ a properties box will appear. Type a name for your data class and select a data type using the select box
+ click ʻSaveʼ to add the attribute
+ You can continue to add as many attributes as you need to store the data you want to keep. The data types can be text, numbers, dates, etc. and you can choosethe correct type for the data you expect in that field.




Removing an Attributes

+ right-click on the attribute name shown in the data grid
+ select ʻRemoveʼ from the menu. A box will appear prompting you to confirm your selection
+ click ʻOKʼ to remove the attribute. NB - this will also remove ALL of the data that attribute contained.