Difference between revisions of "Common:Object Construction"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
Line 1: | Line 1: | ||
To define an object: | |||
# Click '''[Define Fields]''' | # Click '''[Define Fields]''' | ||
#: | #: | ||
Line 8: | Line 9: | ||
# When done defining fields, click '''[Save]''' | # When done defining fields, click '''[Save]''' | ||
For more, click '''[Add additional Object]''' and repeat the process. | |||
Next, establish relationships between the | Next, establish relationships between the objects: | ||
# Click '''[Add a Relationship]''' | # Click '''[Add a Relationship]''' | ||
# Under '''Relationships''' select the objects to fill in the blanks: | # Under '''Relationships''' select the objects to fill in the blanks: |
Revision as of 22:41, 3 July 2013
To define an object:
- Click [Define Fields]
- Define up to 10 fields, to get started. (You can add more later.) For each field, specify:
- Field Label - The label users will see
- Internal Field Name - The internal reference name. (Created for you. Modifiable, but generally best left alone.)
- Field Type - Pick one of the many choices
- Follow the prompts to add additional information, depending on the field type.
- When done defining fields, click [Save]
For more, click [Add additional Object] and repeat the process.
Next, establish relationships between the objects:
- Click [Add a Relationship]
- Under Relationships select the objects to fill in the blanks:
- Between __{baseObject}__ and __{relatedObject}__
- Specify the Relationship Type:
- One to Many - One {baseObject} record can be related to many {relatedObject} records
- For example: One Order can have many OrderItems.
- Many to Many - One {baseObject} record can be related to many {relatedObject} records, and each of the {relatedObject} records can be related to many {baseObject} records
- For example: One Order can have many Tags, and one Tag can be applied to many Orders.
- One to Many - One {baseObject} record can be related to many {relatedObject} records
- The relationships cause Lookup fields to be added to the objects, with names like "related_to_X". For example, the OrderItems object will have a field named related_to_Orders.