Difference between revisions of "Design Options"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
==How Do I Copy Data from a Field in Another Record?== | ==How Do I Copy Data from a Field in Another Record?== | ||
:* If you have a Lookup | :* If you have a Lookup field that targets a record you want to copy from, you can automatically copy the data as part of the Lookup settings. This mechanism works for simple data fields like text, number, and dates. When the user selects a Lookup target, the field data is automatically copied. | ||
:''Learn more:'' [[Lookup#Copy Data]] | ::''Learn more:'' [[Lookup#Copy Data]] | ||
:* If you have more complex data like formula calculations or attachments, you can | :* If you have more complex data like formula calculations or attachments, you can put a Rule in a Rule set, and invoke that Rule Set whenever a record is added or updated. In this case, you define the rules on the object you want to copy from, and then update the record you want to copy to. | ||
:: ''Learn more:'' | :: ''Learn more:'' | ||
:::* | :::* [[Rules and Rule Sets]] | ||
:::* | :::* [[Rule Actions#Update Record]] | ||
:* If you want the data to appear in a form as the user is entering data (rather than waiting until the record is created or updated), you can do it using JavaScript code in a [[Field Script]]. | :* If you want the data to appear in a form as the user is entering data (rather than waiting until the record is created or updated), you can do it using JavaScript code in a [[Field Script]]. |
Revision as of 20:30, 21 May 2014
The platform frequently provides multiple ways to get the job done. This page provides an index of options for common tasks.
How Do I Copy Data from a Field in Another Record?
- If you have a Lookup field that targets a record you want to copy from, you can automatically copy the data as part of the Lookup settings. This mechanism works for simple data fields like text, number, and dates. When the user selects a Lookup target, the field data is automatically copied.
- Learn more: Lookup#Copy Data
- If you have more complex data like formula calculations or attachments, you can put a Rule in a Rule set, and invoke that Rule Set whenever a record is added or updated. In this case, you define the rules on the object you want to copy from, and then update the record you want to copy to.
- Learn more:
- If you want the data to appear in a form as the user is entering data (rather than waiting until the record is created or updated), you can do it using JavaScript code in a Field Script.
- Learn more: JavaScript#Copy Field Data