<< Click to Display Table of Contents >>
OZUserActionCommand > SelectComp
OZUserActionCommand의 type 중 SelectComp는 마우스 클릭 또는 드래그 & 드롭 동작으로 컴포넌트를 직접 선택한 경우에만 발생하며, 리턴되는 attr은 다음과 같습니다.
attr |
설명 |
changeable |
속성 변환 가능 여부(string) |
compindex |
컴포넌트 인덱스(int). One-Based Index |
compname |
컴포넌트 이름(string) 메모는 공백으로 리턴됨 |
comptype |
컴포넌트 타입(string) 메모는 "label"로 리턴됨 |
editable |
편집 가능 여부(string) |
height |
높이(float) |
movable |
이동 가능 여부(string) |
pageindex |
페이지 인덱스(int). One-Based Index |
reportindex |
보고서 인덱스(int). Zero-Based Index |
reportname |
보고서 이름(string) |
selecttype |
선택 타입(string) |
width |
너비(float) |
xpos |
X 좌표(float) |
ypos |
Y 좌표(float) |
Reference
찾기 또는 목차 선택 등으로 컴포넌트가 선택된 경우에는 SelectComp가 발생하지 않습니다.
드래그 & 드롭 동작으로 여러 컴포넌트가 한꺼번에 선택된 경우에는 컴포넌트가 페이지에 추가된 순서 기준으로 OZUserActionCommand가 한꺼번에 발생합니다.
Example
...
function OZUserActionCommand_OZViewer(type, attr) {
var MyObj = eval('(' + attr + ')');
if(type == "SelectComp") {
alert(MyObj.changeable);
...
}
}
...