빠른 보기 컨트롤의 구성 요소 컨트롤에 대한 데이터 바인딩이 완료되었는지 여부를 반환합니다.
Syntax
quickViewControl.isLoaded();
반환 값
형식: 부울.
설명: true는 구성 요소 컨트롤에 대한 데이터 바인딩이 완료된 것입니다. false이면 false입니다.
비고
컨트롤이 바인딩된 빠른 보기 폼이 로드되지 않을 수 있으므로 기본 폼 OnLoad 이벤트 중에 빠른 보기 컨트롤의 구성 요소 컨트롤에 대한 데이터 바인딩이 완료되지 않을 수 있습니다. 따라서 구성 요소 컨트롤에서 getAttribute 또는 데이터 관련 메서드를 사용하면 작동하지 않을 수 있습니다. 빠른 보기 컨트롤에 대한 isLoaded 메서드는 빠른 보기 컨트롤에서 구성 요소 컨트롤의 데이터 바인딩 상태를 확인하는 데 도움이 됩니다.
Example
다음 샘플 코드에서는 isLoaded 메서드를 사용하여 바인딩 상태를 확인한 다음 빠른 보기 컨트롤의 구성 요소 컨트롤이 바인딩된 열의 값을 검색하는 방법을 보여 줍니다.
function getAttributeValue(executionContext) {
var formContext = executionContext.getFormContext();
var quickViewControl = formContext.ui.quickForms.get("<QuickViewControlName>");
if (quickViewControl != undefined) {
if (quickViewControl.isLoaded()) {
// Access the value of the column bound to the constituent control
var myValue = quickViewControl.getControl(0).getAttribute().getValue();
console.log(myValue);
// Search by a specific column present in the control
var myValue2 = quickViewControl.getControl().find(control => control.getName() == "<AttributeSchemaName>").getAttribute().getValue();
console.log(myValue2);
return;
}
}
else {
console.log("No data to display in the quick view control.");
return;
}
}