This example adds a relationship, Last 20 transactions, to the user form.
시작하기 전에
Role required: admin
이 태스크 정보
The new relationship creates a list of task records opened by the current
user.
프로시저
-
Navigate to .
-
Click New.
-
Create a relationship with the following values.
| 옵션 | 설명 |
|---|
| Name |
Last 20 transactions |
| Applies to table |
User [sys_user] |
| Queries from table |
Task [task] |
| Queries with |
current.addQuery('opened_by', parent.sys_id);
|
-
Click Submit.
-
Navigate to .
-
Select any user.
For example, select David Loo.
-
Configure the related lists for the user form and add the related list
Last 20 transactions.
-
Navigate to .
-
Select any user.
For example, select David Loo.
-
The Last 20 transactions related list displays all task
records opened by the current user.
다음에 수행할 작업
Notes and limitations:
- This query returns all task records opened by the user. The related list
defaults to displaying 20 task records per page.
- The parent variable refers to the Applies to table. In
this case, it applies to the User [sys_user] table.
- Querying against a record sys_id is a common query method for
relationships.