> For the complete documentation index, see [llms.txt](https://help.smallbuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.smallbuilder.com/ko/smallbuilder-line-items/builder/setup/relate-objects.md).

# 1. 개체 연결

**Line-item Configurator를 구현하기 위해서는 먼저 Parent 개체, Line-item 개체, Lookup 개체를 지정합니다.**

{% hint style="info" %}
참고로 기회에서 제품 Line-item Configurator를 구현하는 경우 Parent Object는 기회 개체로 Line-item 개체는 기회 제품으로 설정하며 제품(Product)을 Lookup 개체로 설정합니다.
{% endhint %}

<figure><img src="https://3985481653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA2fSsDo5KsIVkUoDIV1b%2Fuploads%2FFfASOhmy7vbqFTwWfzBj%2Fimage.png?alt=media&amp;token=5906231f-ff35-4463-a4c8-ab522e16245f" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="197">항목</th><th width="453">설명</th><th>필수</th></tr></thead><tbody><tr><td>Parent Object</td><td>기회, 견적, 출장 등 Line-item Configurator를 추가할 개체를 의미합니다.</td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Line-item Object</td><td>기회 제품, 견적 행아이템, 출장 목적지 등 Parent Object의 자식 개체를 의미합니다.</td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Lookup Object</td><td>제품, 거래처 등 Line-item이 참조하는 개체를 의미합니다.<br><br>💡 <strong>Tip</strong><br>Line-Item Editor만 사용하고 싶은 경우 <strong>Block adding items</strong>를 선택하시면 됩니다.<br>조건에 따라 제어하려면 바로 아래에 보이는 입력란에 Parent 필드의 API 명을 기재하면 됩니다. (필드값은 <code>true</code> 또는 <code>false</code>여야 합니다.)</td><td><mark style="color:red;">✔️</mark></td></tr></tbody></table>

### Line-item Object Advanced Setting

Line-Item Editor에서 저장된 레코드 불러올 시 정렬 지정 및 삭제 제어 등 설정합니다.

<figure><img src="https://3985481653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA2fSsDo5KsIVkUoDIV1b%2Fuploads%2FyKRKIIFZraua3I0nSLjI%2Fimage.png?alt=media&amp;token=6af9fce6-ae26-4e6b-b899-7cfe2f72d572" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="202">항목</th><th>설명</th></tr></thead><tbody><tr><td>Order By</td><td><p>저장된 Line-Item의 레코드를 불러올 시 정렬을 설정합니다.</p><p>SOQL의 <code>ORDER BY</code> 절을 기재합니다.<br><br>예를 들어 최근에 생성된 날짜(<em>필드: CreatedDate</em>) 순으로 내림차순 정렬하고 싶은 경우 <code>CreatedDate DESC</code>로 기재하면 됩니다.</p></td></tr><tr><td>Delete Controller Field</td><td>지정한 필드 값에 따라 Line-Item 레코드 삭제를 제어합니다. Line-Item 필드여야 하고, 해당 필드값은 <code>true</code> 또는 <code>false</code> 여야 합니다.<br><br>예를 들어 Parent 또는 Lookup의 상태 값에 따라 Line-Item 레코드 삭제를 제어하고 싶은 경우, Line-Item 개체에 Boolean형 수식 필드를 만들어 활용할 수 있습니다.</td></tr></tbody></table>

### Lookup Object Filter

Lookup Selector 검색 시 키워드 매칭 방법 및 필터 등 설정합니다.

<figure><img src="https://3985481653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA2fSsDo5KsIVkUoDIV1b%2Fuploads%2FFCNLZTqa9aB1eXB2S007%2Fimage.png?alt=media&amp;token=ea9cc4d1-74b8-4d9e-bfea-a684b8faf68f" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="205">항목</th><th width="445">설명</th><th>필수</th></tr></thead><tbody><tr><td>Keyword Field</td><td>Lookup 레코드 검색 키워드로 사용할 필드를 선택합니다.</td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Match Condition</td><td><p>키워드 검색 방식을 선택합니다.</p><ul><li>Contains - 키워드가 포함된 값을 검색합니다.</li><li>Start with - 키워드로 시작하는 값을 검색합니다.</li></ul><p>기본값 : Contains</p></td><td><mark style="color:red;">✔️</mark></td></tr><tr><td>Order By</td><td><p>Lookup 검색 시 정렬을 설정합니다.</p><p>SOQL의 <code>ORDER BY</code> 절을 기재합니다.<br><br>예를 들어 제품 코드(<em>필드: ProductCode</em>) 순으로 오름차순 검색하고 싶은 경우 <code>ProductCode ASC</code>로 기재하면 됩니다.</p></td><td></td></tr><tr><td>Advanced Condition</td><td>검색 조건을 미리 지정합니다.<br>SOQL의 <code>WHERE</code> 절을 기재합니다.<br><br>예를 들어 활성화(<em>필드: IsActive</em>)된 레코드만 조회하고 싶은 경우<br><code>IsActive = true</code>로 기재하면 됩니다.<br><br>💡 <strong>Tip</strong><br>Parent의 필드값을 조건문에 지정하고 싶은 경우 <code>{$Parent.필드명}</code>를 이용해 바인딩할 수 있습니다.<br>예) Lookup Selector 검색 시 기준을 Parent의 통화와 일치한 레코드만 조회하고 싶은 경우 아래와 같이 작성합니다.<br><code>CurrencyIsoCode = {$Parent.CurrencyIsoCode}</code></td><td></td></tr></tbody></table>
