<< Click to Display Table of Contents >>

OZUserActionCommand > RemoveComp

OZUserActionCommand의 type 중 RemoveComp는 메모, 콜아웃 도형, 이미지가 삭제될 때 발생하며, 리턴되는 attr은 다음과 같습니다.

attr

설명

compname

컴포넌트 이름(string)

메모는 공백으로 리턴됨

comptype

컴포넌트 타입(string)

메모나 이미지인 경우 "label"로 리턴됨

reportname

보고서 이름(string)

Example

...

function OZUserActionCommand_OZViewer(type, attr) {

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

   if(type == "RemoveComp") {

       alert(MyObj.compname);

       ...

   }

}

...