<< Click to Display Table of Contents >>

OZUserActionCommand > AddMemo

OZUserActionCommand의 type 중 AddMemo는 보고서에 메모 라벨을 추가할 때 발생하며, 리턴되는 attr은 다음과 같습니다.

attr

설명

compindex

컴포넌트 인덱스(int). One-Based Index

compname

컴포넌트 이름(string)

항상 공백으로 리턴됨

comptype

컴포넌트 타입(string)

항상 "label"로 리턴됨

height

메모 라벨의 높이(float)

pageindex

페이지 인덱스(int). One-Based Index

reportindex

보고서 인덱스(int). Zero-Based Index

reportname

보고서 이름(string)

width

메모 라벨의 너비(float)

xpos

메모 라벨의 X 좌표(float)

ypos

메모 라벨의 Y 좌표(float)

Example

...

function OZUserActionCommand_OZViewer(type, attr) {

   var MyObj = eval('(' + attr + ')');

   if(type == "AddMemo") {

       alert(MyObj.compindex);

       ...

   }

}

...