Creating different forms for entry and editing.
For Member object we prefer to have different forms for editing and entry of the object. Indeed, some of the attributes that the object has are only applicable when the existing object is being viewed/edited and are not applicable when the object is being created. For example, lists of loans, reservations, fees or payments are not applicable when the object is being created so there is no point showing them on the form during creation. So we want to have a separate form, which will be used when the object is being created and which will only have the applicable attributes.
To do this we open the Member object for editing and the first thing we do is make some changes to the “Main” form of the object created automatically. We select the form on the “Forms” tab and we change the name of the form to “Editing” in the list of form properties. Then we un-tick the “Object creation” checkbox under the “Use automatic” category in the property list to indicate that the form will not be used by the system when the object is being created. We click on the Save button to save the changes to the form and click on the
icon to create a new form.
In the dialog that appears we enter the name of the new form “Entry and member registration” (this form will be also be used when guests register themselves as library member). In the list of properties of the new form we tick the “Object creation” and “User registration” checkboxes. Then we expand the form and double click on the Main form section underneath it to design it. The “Form Section” designer window appears. In this window we can specify which attributes will be shown on the form and in which order. We delete unnecessary attributes and only leave the following attributes FirstName, LastName, Gender, DateOfBirth, Address, EmailAddress, LoginName, Password. We use arrow buttons to arrange the remaining attributes in the above order. Then we click on the “Save” button to save changes to the form of the Member object. Now the system will automatically use the newly created form when the Member object is being created.
We can also perform similar changes to the Item object only leaving Author, Title, Description, Code, Type, Location and Picture attributes on the Entry form.