Jump to content
과거의 기술자료(읽기 전용): https://tech.devgear.co.kr ×
과거의 기술자료(읽기 전용): https://tech.devgear.co.kr

[DocWiki 번역] 영속 필드(Persistent Field) 컴포넌트(들)


Recommended Posts

Docwiki에 있는 "Persistent Field Components"를 번역한 글 (번역일: 2022년 2월 28일)

위로 가기: Go Up to Working with Field Components Index

(역자 주: "Persistent Field""영속 필드"라고 번역했다.  아래 설명에도 있지만, 데이터셋에서 사용할 필드를 개발자가 직접 지정하면 "Persistent Field"가 되는데, 개발자가 설정한 그대로 애플리케이션 안에 영속적으로 필드 설정이 유지된다. 즉, 데이터베이스 구조가 바뀐다고 해서 영향을 받지 않고 지속되기 때문에 영속 필드라고 번역했다) 

By default, dataset fields are dynamic. Their properties and availability are automatically set and cannot be changed in any way. To gain control over a field's properties and events you must create persistent fields for the dataset. Persistent fields let you:

데이터셋에는 필드(들)이 들어가는데, 기본 작동은 동적 필드(dynamic Field)이다. 즉, 데이터셋에 있는 모든 필드와 해당 프로퍼티가 자동으로 다 들어가며, 개발자는 손대지 않고 변경하지 못한다. 개발자가 필드의 프로터피와 이벤트를 통제하려면 반드시 데이터셋에 영속 필드(Persistent Field)를 생성해야 한다.영속 필드(Persistent Field)를 만들면 다음과 같은 것을 할 수 있다.

Set or change the field's display or edit characteristics at design time or runtime.
개발 시 또는 실행 시에, 필드를 자신이 원하는 대로 표현할 수 있고, 필드의 특성을 편집할 수 있다.

Create new fields, such as lookup fields, calculated fields, and aggregated fields, that base their values on existing fields in a dataset.
데이터셋 안에 원래 포함되어 있는 필드의 값을 반영하여 새 필드를 만들어 추가할 수 있다. 여기에는 필드 즉 룩업(lookup) 필드, 계산되는(calculated) 필드, 조합되는(aggregated) 필드 등이 포함된다.

Validate data entry.
데이터 입력을 검증할 수 있다.

Remove field components from the list of persistent components to prevent your application from accessing particular columns in an underlying database.
영속 필드 컴포넌트 목록에서 특정 필드 컴포넌트(들)을 제거할 수 있어서, 애플리케이션에서 데이터베이스에 있는 특정 컬럼(들)을 접근하는 것을 방지할 수 있다. 

Define new fields to replace existing fields, based on columns in the table or query underlying a dataset.
새 필드를 정의하고, 테이블 안에 있는 컬럼(들) 또는 데이터셋의 쿼리 결과를 기반으로 하는 기존 필드(들)을 대체할 수 있다. 

At design time, you can - and should - use the Fields editor to create persistent lists of the field components used by the datasets in your application. Persistent field component lists are stored in your application, and do not change even if the structure of a database underlying a dataset is changed. Once you create persistent fields with the Fields editor, you can also create event handlers for them that respond to changes in data values and that validate data entries.
영속 필드를 만들려면, 개발 시에 필드 에디터(Fields Editor)를 사용해야 한다. 필드 에디터를 사용하면, 당신의 애플리케이션 안에 있는 데이터셋이 사용하는 필드 컴포넌트의 영속 필드 목록(들)을 생성하게 된다. 영속 필드 컴포넌트 목록(들)은 당신의 애플리케이션 안에 저장된다. 따라서 애플리케이션에서 사용하는 데이터셋의 바탕이 되는 데이터베이스의 구조가 변경되어도, 데이터셋의 필드 목록은 영향을 받지 않고 그대로 유지된다. 필드 에디터를 사용하여 영속 필드를 일단 생성하고 나면, 생성된 필드에 이벤트 핸들러를 생성할 수 있으므로, 데이터 값을 변경하고 데이터 입력을 검증할 수 있다.

Note: When you create persistent fields for a dataset, only those fields you select are available to your application at design time and runtime. At design time, you can always use the Fields editor to add or remove persistent fields for a dataset.
참고: 개발자가 데이터셋에 영속 필드를 생성하면, 그 애플리케이션은 해당 데이터셋을 다룰 때, 개발 시와 실행 시 모두, 개발자가 선택하여 넣은 영속 필드(들)만 사용되며, 포함되지않는 필드(들)은 사용되지 않는다. 개발자는 언제든 필드 에디터를 사용하여 원하는 데이터셋에 영속 필드를 추가/삭제 할 수 있다.

All fields used by a single dataset are either persistent or dynamic. You cannot mix field types in a single dataset. If you create persistent fields for a dataset, and then want to revert to dynamic fields, you must remove all persistent fields from the dataset. For more information about dynamic fields, see Dynamic Field Components.
각 데이터셋 단위로 영속 필드와 동적 필드중 하나만 적용된다. 즉 특정 데이터셋에 있는 필드(들)은 모두가 영속 필드이거나 또는 모두가 동적 필드이다. 따라서 데이터셋 하나에 영속 필드와 동적 필드가 함께 섞여 있을 수 없다. 만약 어느 데이터셋에 영속 필드를 생성하고 나서, 다시 이것을 동적 필드로 되돌리고 싶다면, 그 데이터셋에 있는 영속 필드를 모두 제거해야 한다.동적 필드에 대한  더 자세한 내용은 [DocWiki 번역] 동적 필드 컴포넌트(들)를 보자.

Note: One of the primary uses of persistent fields is to gain control over the appearance and display of data. You can also control the appearance of columns in data-aware grids. To learn about controlling column appearance in grids, see Creating a Customized Grid.
참고: 영속 필드는 개발자가 데이터를 자신이 원하는 모습과 내용으로 표현하고 싶을 때 주로 사용된다. 데이터-인식 그리드 안에 있는 컬럼의 표현 역시 개발자가 통제할 수 있다. 그리드 안에 있는 컬럼 표현 통제하기에 대해서는 Creating a Customized Grid를 보자.

The following topics describe how to use the Fields editor to create or modify the persistent fields in a dataset, and how to work with persistent fields:
아래 주제(들)은 필드 에디터를 사용하여 데이터셋 안에 영속 필드를 생성하고 변경하는 방법과 영속 필드를 가지고 작업하는 방법 등을 설명한다.  

기타 참고

이 댓글 링크
다른 사이트에 공유하기

이 토의에 참여하세요

지금 바로 의견을 남길 수 있습니다. 그리고 나서 가입해도 됩니다. 이미 회원이라면, 지금 로그인하고 본인 계정으로 의견을 남기세요.

Guest
이 토픽(기고/질문)에 답하기

×   서식있는 텍스트로 붙여넣기.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   이전에 작성한 콘텐츠가 복원되었습니다..   편집창 비우기

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

중요한 정보

이용약관 개인정보보호정책 이용규칙 이 사이트가 더 잘 작동하기 위해 방문자의 컴퓨터에 쿠키가 배치됩니다. 쿠키 설정 변경에서 원하는 설정을 할 수 있습니다. 변경하지 않으면 쿠키를 허용하는 것으로 이해합니다.