This simple page will create new Customers
Before we begin designing the page, we need to create a Business Object to which we will create new records.
Fill the business object properties as follows:
Property | Value |
---|---|
Object Name | Customer |
Template Selector | CRM -> Contact |
Next we'll create a page for creating a new record for the Customer Business Object.
Read the Pages document on how to create pages. Create a page with the following information:
Property | Value |
---|---|
Template | General -> Blank |
Page Name | NewCustomer |
Form Type | Modify |
Fill in the following properties:
Property | Value |
---|---|
Data Source Type | Business Objects |
Data Source | Customer |
The pnMain is our starting panel that extends to the entire size of the browser. We're going to configure it so that we can put form elements in it and have it line up nicely. To do this we need to change some of it's properties. On the bottom half of the right panel is a list of properties for pnMain. Find and and set the following properties:
Property | Value | Description |
---|---|---|
AutoScroll | true | In case your have a lot of fields in your form, this will make a scroll bar in your panel. |
Border | false | By default this panel has a gray bolder around it, we don't need it so set this property to false. |
Cls | edit-form | This is a special CSS class that gives the standard AppBase look-and-feel to editable forms. It has some standard colors and other styles. |
Layout | form | This manages how the child elements will look inside this panel. Setting it to "form" puts form elements one under the other with a labels. |
Padding | 20 | This puts a bit of space between the edges of this panel and form elements in it. Just makes it look nice. |
Click on the button on the bottom of this Property panel.
Click on the arrow next to the button and select Button. A row appears, select it. On the right the field Text and Icon are populated. Set the following properties in it:
Property | Value |
---|---|
Text | Save |
Icon | Disk |
You're done!