<< Click to Display Table of Contents >>
OZUserActionComamand > 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);
}
}
...