Difference between revisions of "Common:Object Construction"
From AgileApps Support Wiki
imported>Aeric (Created page with "<noinclude>__NOINDEX__</noinclude> # Click '''[Define Fields]''' #: # Define up to 10 fields, to get started. (You can add more later.) For each field, specify: #* '''Field Label...") |
imported>Aeric |
||
Line 4: | Line 4: | ||
# Define up to 10 fields, to get started. (You can add more later.) For each field, specify: | # Define up to 10 fields, to get started. (You can add more later.) For each field, specify: | ||
#* '''Field Label -''' The label users will see | #* '''Field Label -''' The label users will see | ||
#* | #* '''Internal Field Name -''' The internal reference name.<br>This name is created for you. Modify it if you like, but it's generally best left as-is. | ||
#* '''Field Type -''' Pick one of the many many choices | #* '''Field Type -''' Pick one of the many many choices | ||
# Follow the prompts to add additional information, depending on the field type. | # Follow the prompts to add additional information, depending on the field type. |
Revision as of 20:55, 22 October 2012
- 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.
This name is created for you. Modify it if you like, but it's generally best left as-is. - Field Type - Pick one of the many many choices
- Follow the prompts to add additional information, depending on the field type.
- When done defining fields, click [Save]
To add additional objects, click [Add an Object] and repeat the process.
Next, establish relationships between the application 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.
- The objects are now connected by Lookup fields.
(They'll have names like "related_to_Orders". )
- One to Many - One {baseObject} record can be related to many {relatedObject} records