<< Click to Display Table of Contents >>

OZUserActionCommand > EditComp

OZUserActionCommand의 type 중 EditComp는 메모 또는 라벨의 텍스트를 변경할 때 발생하며, 리턴되는 attr은 다음과 같습니다.

attr

설명

caption

텍스트(string)

compindex

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

compname

컴포넌트 이름(string)

메모는 공백으로 리턴됨

comptype

컴포넌트 타입(string)

메모는 "label"로 리턴됨

pageindex

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

reportindex

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

reportname

보고서 이름(string)

Reference

EditComp는 속성 값을 변경하므로 리턴되는 attr 중 caption은 변경되기 전 값을 나타내는 oldvalue와 변경된 후 값을 나타내는 newvalue로 구성됩니다.

Example

...

function OZUserActionCommand_OZViewer(type, attr) {

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

   if(type == "EditComp") {

       alert("Old Value : " + MyObj.oldvalue.caption + ",  New Value : " + MyObj.newvalue.caption);

       alert("Component Name : " + MyObj.compname);

       alert("Component Type : " + MyObj.comptype);

       alert("Report Name : " + MyObj.reportname);

   }

}

...