트리 » Api
getchilditemex
Description
지정한 키값 아이템의 하위 아이템을 가져오는 API이다.
Parameters
Parameters |
Type |
Description |
strKey |
STRING |
아이템 키값 |
Return Value
Type |
Description |
long |
하위 아이템 중 첫번째 아이템 |
Remark
* Default로 지정된 picklist에는 아이템 키값이 없으므로 setitemkey, insertitemex API 등을 이용하여 키값이 설정된 상태에서 구현 가능하다.
Example
function btn_getchilditemex_on_mouseup()
{
// "treekey"라는 key값을 가지는 addtree node 추가
trTest.insertitemex("addtree", "treekey", 0, 1, "", "");
// "treekey"라는 key값을 가지는 노드의 자식노드(subnode1key, subnode2key) 생성
trTest.insertitemex("subnode1", "subnode1key", 1, 1, "treekey", "");
trTest.insertitemex("subnode2", "subnode2key", 1, 1, "treekey", "");
// 자식노드의텍스트를출력한다.
screen.alert(trTest.getitemtext(trTest.getchilditemex("treekey")));
}
See Also
getchilditem
Viewer Ver.
9.1.1.1
Update Date
20110411