Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anshuman on Nov 21, 2008 08:08
open dhtmlx forum
Problem in selecting the particular node of tree by using selectItem() method

Hi,

 

We are having one jsp page on which we are calling method linkTree (taskId) which in turn calling the method tree.selectItem (nodeId).

The method linkTree (taskId) is called from a particular html page and it selects the particular node that passed as parameter in the function.

But the selection of node is not happening instead we are using the method linkTree2 ().However I tried the method with an iframe using a source testing.html and from calling the method using parent.linkTree () but it also didn’t work for us. We are using professional edition.

Can you please check that? We are sending the sample code for testing.

The xml to be loaded is tree_amm.xml

//code for jsp

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>DHTMLX Docs Explorer</title>
<link rel="STYLESHEET" type="text/css" href="../../code/css/tree/dhtmlxtree.css">
<link rel='STYLESHEET' type='text/css' href='../../code/css/tree/style1.css'>
<link rel='STYLESHEET' type='text/css' href='../../code/css/menu/context.css'>

</head>

<body onload="loadTree();" onresize="correctSizes();"  style="padding: 0; margin: 0;overflow:hidden;height:100%;">
  <script  src="../../code/js/tree/dhtmlxcommon.js"></script>
  <script  src="../../code/js/tree/dhtmlxtree.js"></script>
  <script  src="../../code/js/menu/dhtmlxprotobar.js"></script>
  <script  src="../../code/js/menu/dhtmlxmenubar.js"></script>
  <script  src="../../code/js/menu/dhtmlxmenubar_cp.js"></script>

 <script>
 var rootPath = "";
 var loopCount=6;

  /* init tree */
function loadTree()
{
   aMenu=new dhtmlXContextMenuObject('120',0,"../js/menu/imgs/");
   aMenu.menu.loadXML("../xml/tree/_context1.xml");
   aMenu.setContextMenuHandler(onButtonClick);
   tree = new dhtmlXTreeObject("doctree_box", "100%", "100%", 0);
   tree.enableSmartXMLParsing(true);
   tree.setImagePath("../../images/tree/");
   tree.setOnClickHandler(
   function(id)
   {
        openPathDocs(id);
   }
   );
   tree.attachEvent("onOpenEnd", updateTreeSize);
   tree.loadXML("../xml/tree/tree_amm.xml");
   tree.enableContextMenu(aMenu);
}

function onButtonClick(menuitemId,treeitemId)
   {
    parent.addChapter(treeitemId);
   }

function linkTree(taskId)
      {
       var subStr = taskId.substring(0,3);
       if(subStr == 'AMM')
       {
 

          tree.selectItem(taskId);
         }
       else
       {
        parent.linkTree(taskId);
       }
}

function linkTree2(taskId)
{
 var subStr = taskId.substring(0,3);
 if(subStr == 'AMM')
 {
               tree.openItem('amm');
               var taskchapter=taskId.substring(0,5);
               tasksection=taskId.substring(0,8);             
               tree.openAllItems(taskchapter);
               tree.focusItem(taskId);
               tree.selectItem(taskId);
               openPathDocs(taskId);
 }
 else
 {
    parent.linkTree(taskId);
 }
}
 
 
/* open path funtion */

function openPathDocs(id)
{
 if(rootPath == "")
 {
  rootPath = tree.getUserData("0", "rootpath");
  
 }
    countid = id;
    var entUrl = "";
    var url = tree.getUserData(id, "url");
    entUrl = rootPath + "/" + url;
    //parent.setURL(entUrl);

    window.frames.sampleframe.location.href = entUrl
}

function openImageNewWindow(imageName)
{
 var htmlContent = "amm_image_viewer.jsp?imageId=" + imageName;
 
 window.open(htmlContent, "newwin", height=400,width=400);
}

function openImagePreview(imageName)
{
 var htmlContent = "amm_image_viewer.jsp?imageId=" + imageName;
 document.disp.location.href=htmlContent;
}

function updateTreeSize()
{
   this.allTree.style.overflow = "hide";
}
</script>

<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td valign="top" width="276">
  //the iframe used for testing 

<iframe id="display10" src="testing.html"></iframe>
   <div id="doctree_box" style="width: 275px; height:61%;background-color:#f5f5f5;border :1px solid Silver;">
       <input type="hidden" id="stext">
       <span style="width: 100%;"><a href="#" onclick="tree.findItem(document.getElementById('stext').value)"><img align="right" src="../../images/toolbar/next.gif" border="0" alt="Next" /></a>
       <a href="javascript:nav()" onclick="tree.findItem(document.getElementById('stext').value,1)"><img align="right" src="../../images/toolbar/previous.gif" border="0" alt="Previous" /></a>
       <a href="javascript:void(0)" onclick="navigatepreviousChapter()"><b> Previous Chapter</b></a>&nbsp;&nbsp;&nbsp;&nbsp
       <a href="javascript:void(0)" onclick="navigateChapter()"><b>Next Chapter </b></a></span>
   
   </div>
   
              <iframe id="display" name="disp" width="100%" height="39%">
              </iframe>
   </td>

   <td align="right">
    <iframe id="sampleframe" name="sampleframe" width="100%" height="100%" frameborder="0"            src="../../images/background/jet_logo_bg5.gif" style="border: 0px solid #cecece;">
    </iframe>
   </td>
 </tr>
</table>
</body>
</html>

//code for testing.html

<html>
<head>
</head>
<body>
<script>
function linkTree(taskId){
alert("before");
parent.linkTree(taskId);
alert("after");
}
</script>
<a href="javascript:linkTree('AMM27-65-00-710-801');">Click to Select Node</a>
</body>
</html>

 

//xml file to be loaded<?xml version="1.0" encoding="UTF-8"?>
<tree id="0">
  <userdata name="rootpath">../../Manuals/amm</userdata>
  <item id="AMM12" text="chapter 12">
    SERVICING
    <item id="AMM12-00" text="section 00 - SERVICING">
      SERVICING
      <item id="AMM12-00-00" text="subject 00 - SERVICING">
        SERVICING
        <item id="AMM12-00-00-00" text="SERVICING - DESCRIPTION AND OPERATION">
          SERVICING - DESCRIPTION AND OPERATION
          <userdata name="url">Chapter12/AMM12-00-00-00.html</userdata>
        </item>
        <userdata name="url">Chapter12/AMM12-00-00-00.html</userdata>
      </item>
      <userdata name="url">Chapter12/AMM12-00-00-00.html</userdata>
      <item id="AMM12-00-05" text="subject 05 - HYDRAULIC POWER, EXTERNAL">
        HYDRAULIC POWER, EXTERNAL
        <item id="AMM12-00-05-03" text="HYDRAULIC POWER, EXTERNAL - SERVICING">
          HYDRAULIC POWER, EXTERNAL - SERVICING
          <userdata name="url">Chapter12/AMM12-00-05-03.html</userdata>
          <item id="AMM12-00-05-490-801" text="TASK 12-00-05-490-801- - Connect Ground Hydraulic Power - Hydraulic Systems No. 1 and No. 2">
            Connect Ground Hydraulic Power - Hydraulic Systems No. 1 and No. 2
            <userdata name="url">Chapter12/AMM12-00-05-03.html#AMM12-00-05-490-801</userdata>
          </item>
          <item id="AMM12-00-05-090-801" text="TASK 12-00-05-090-801- - Remove Ground Hydraulic Power - Hydraulic Systems No. 1 and No. 2">
            Remove Ground Hydraulic Power - Hydraulic Systems No. 1 and No. 2
            <userdata name="url">Chapter12/AMM12-00-05-03.html#AMM12-00-05-090-801</userdata>
          </item>
          <item id="AMM12-00-05-490-802" text="TASK 12-00-05-490-802- - Connect Ground Hydraulic Power - Hydraulic System No. 3">
            Connect Ground Hydraulic Power - Hydraulic System No. 3
            <userdata name="url">Chapter12/AMM12-00-05-03.html#AMM12-00-05-490-802</userdata>
          </item>
          <item id="AMM12-00-05-090-802" text="TASK 12-00-05-090-802- - Remove Ground Hydraulic Power - Hydraulic System No. 3">
            Remove Ground Hydraulic Power - Hydraulic System No. 3
            <userdata name="url">Chapter12/AMM12-00-05-03.html#AMM12-00-05-090-802</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-00-05-03.html</userdata>
      </item>
      <item id="AMM12-00-06" text="subject 06 - HYDRAULIC POWER, AIRCRAFT">
        HYDRAULIC POWER, AIRCRAFT
        <item id="AMM12-00-06-03" text="HYDRAULIC POWER, AIRCRAFT - SERVICING">
          HYDRAULIC POWER, AIRCRAFT - SERVICING
          <userdata name="url">Chapter12/AMM12-00-06-03.html</userdata>
          <item id="AMM12-00-06-863-801" text="TASK 12-00-06-863-801- - Pressurize Hydraulic Systems No. 1 and No. 2">
            Pressurize Hydraulic Systems No. 1 and No. 2
            <userdata name="url">Chapter12/AMM12-00-06-03.html#AMM12-00-06-863-801</userdata>
          </item>
          <item id="AMM12-00-06-863-802" text="TASK 12-00-06-863-802- - Release Hydraulic Pressure - Systems No. 1 and No. 2">
            Release Hydraulic Pressure - Systems No. 1 and No. 2
            <userdata name="url">Chapter12/AMM12-00-06-03.html#AMM12-00-06-863-802</userdata>
          </item>
          <item id="AMM12-00-06-863-803" text="TASK 12-00-06-863-803- - Pressurize Hydraulic System No. 3">
            Pressurize Hydraulic System No. 3
            <userdata name="url">Chapter12/AMM12-00-06-03.html#AMM12-00-06-863-803</userdata>
          </item>
          <item id="AMM12-00-06-863-804" text="TASK 12-00-06-863-804- - Release Hydraulic Pressure - System No. 3">
            Release Hydraulic Pressure - System No. 3
            <userdata name="url">Chapter12/AMM12-00-06-03.html#AMM12-00-06-863-804</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-00-06-03.html</userdata>
      </item>
      <item id="AMM12-00-07" text="subject 07 - ELECTRICAL POWER, EXTERNAL">
        ELECTRICAL POWER, EXTERNAL
        <item id="AMM12-00-07-03" text="ELECTRICAL POWER, EXTERNAL - SERVICING">
          ELECTRICAL POWER, EXTERNAL - SERVICING
          <userdata name="url">Chapter12/AMM12-00-07-03.html</userdata>
          <item id="AMM12-00-07-861-801" text="TASK 12-00-07-861-801- - Connect External AC Power">
            Connect External AC Power
            <userdata name="url">Chapter12/AMM12-00-07-03.html#AMM12-00-07-861-801</userdata>
          </item>
          <item id="AMM12-00-07-861-802" text="TASK 12-00-07-861-802- - Remove External AC Power">
            Remove External AC Power
            <userdata name="url">Chapter12/AMM12-00-07-03.html#AMM12-00-07-861-802</userdata>
          </item>
          <item id="AMM12-00-07-861-803" text="TASK 12-00-07-861-803- - Connect External DC Power">
            Connect External DC Power
            <userdata name="url">Chapter12/AMM12-00-07-03.html#AMM12-00-07-861-803</userdata>
          </item>
          <item id="AMM12-00-07-861-804" text="TASK 12-00-07-861-804- - Remove External DC Power">
            Remove External DC Power
            <userdata name="url">Chapter12/AMM12-00-07-03.html#AMM12-00-07-861-804</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-00-07-03.html</userdata>
      </item>
      <item id="AMM12-00-08" text="subject 08 - GROUND AIR, EXTERIOR">
        GROUND AIR, EXTERIOR
        <item id="AMM12-00-08-03" text="GROUND AIR, EXTERIOR - SERVICING">
          GROUND AIR, EXTERIOR - SERVICING
          <userdata name="url">Chapter12/AMM12-00-08-03.html</userdata>
          <item id="AMM12-00-08-490-801" text="TASK 12-00-08-490-801- - Connect Ground Air Supply">
            Connect Ground Air Supply
            <userdata name="url">Chapter12/AMM12-00-08-03.html#AMM12-00-08-490-801</userdata>
          </item>
          <item id="AMM12-00-08-090-801" text="TASK 12-00-08-090-801- - Remove Ground Air Supply">
            Remove Ground Air Supply
            <userdata name="url">Chapter12/AMM12-00-08-03.html#AMM12-00-08-090-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-00-08-03.html</userdata>
      </item>
    </item>
    <userdata name="url">Chapter12/AMM12-00-00-00.html</userdata>
    <item id="AMM12-10" text="section 10 - REPLENISHING, SYSTEMS AND COMPONENTS">
      REPLENISHING, SYSTEMS AND COMPONENTS
      <item id="AMM12-10-00" text="subject 00 - REPLENISHING, SYSTEMS AND COMPONENTS">
        REPLENISHING, SYSTEMS AND COMPONENTS
        <item id="AMM12-10-00-00" text="REPLENISHING, SYSTEMS AND COMPONENTS - DESCRIPTION AND OPERATION">
          REPLENISHING, SYSTEMS AND COMPONENTS - DESCRIPTION AND OPERATION
          <userdata name="url">Chapter12/AMM12-10-00-00.html</userdata>
        </item>
        <userdata name="url">Chapter12/AMM12-10-00-00.html</userdata>
      </item>
      <userdata name="url">Chapter12/AMM12-10-00-00.html</userdata>
    </item>
    <item id="AMM12-11" text="section 11 - REPLENISHING, FUEL SYSTEM">
      REPLENISHING, FUEL SYSTEM
      <item id="AMM12-11-00" text="subject 00 - FUEL SYSTEM REPLENISHING">
        FUEL SYSTEM REPLENISHING
        <item id="AMM12-11-00-00" text="FUEL SYSTEM REPLENISHING - DESCRIPTION AND OPERATION">
          FUEL SYSTEM REPLENISHING - DESCRIPTION AND OPERATION
          <userdata name="url">Chapter12/AMM12-11-00-00.html</userdata>
        </item>
        <userdata name="url">Chapter12/AMM12-11-00-00.html</userdata>
      </item>
      <userdata name="url">Chapter12/AMM12-11-00-00.html</userdata>
      <item id="AMM12-11-28" text="subject 28 - REPLENISHING, FUEL TANK">
        REPLENISHING, FUEL TANK
        <item id="AMM12-11-28-03" text="REPLENISHING, FUEL TANK - SERVICING">
          REPLENISHING, FUEL TANK - SERVICING
          <userdata name="url">Chapter12/AMM12-11-28-03.html</userdata>
          <item id="AMM12-11-28-910-801" text="TASK 12-11-28-910-801- - Safety Precautions">
            Safety Precautions
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-910-801</userdata>
          </item>
          <item id="AMM12-11-28-650-801" text="TASK 12-11-28-650-801- - Automatic Pressure Refueling">
            Automatic Pressure Refueling
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-650-801</userdata>
          </item>
          <item id="AMM12-11-28-650-806" text="TASK 12-11-28-650-806- - Automatic Pressure Hot-Refueling">
            Automatic Pressure Hot-Refueling
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-650-806</userdata>
          </item>
          <item id="AMM12-11-28-650-802" text="TASK 12-11-28-650-802- - Manual Pressure Refueling">
            Manual Pressure Refueling
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-650-802</userdata>
          </item>
          <item id="AMM12-11-28-650-807" text="TASK 12-11-28-650-807- - Manual Pressure Hot-Refueling">
            Manual Pressure Hot-Refueling
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-650-807</userdata>
          </item>
          <item id="AMM12-11-28-650-803" text="TASK 12-11-28-650-803- - Gravity Refueling">
            Gravity Refueling
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-650-803</userdata>
          </item>
          <item id="AMM12-11-28-650-804" text="TASK 12-11-28-650-804- - Suction Defueling">
            Suction Defueling
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-650-804</userdata>
          </item>
          <item id="AMM12-11-28-650-805" text="TASK 12-11-28-650-805- - Gravity Defueling">
            Gravity Defueling
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-650-805</userdata>
          </item>
          <item id="AMM12-11-28-750-802" text="TASK 12-11-28-750-802- - Water Contamination Check">
            Water Contamination Check
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-750-802</userdata>
          </item>
          <item id="AMM12-11-28-280-801" text="TASK 12-11-28-280-801- - Microbial Growth Test">
            Microbial Growth Test
            <userdata name="url">Chapter12/AMM12-11-28-03.html#AMM12-11-28-280-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-11-28-03.html</userdata>
        <item id="AMM12-11-28-06" text="FUEL - INSPECTION/CHECK">
          FUEL - INSPECTION/CHECK
          <userdata name="url">Chapter12/AMM12-11-28-06.html</userdata>
          <item id="AMM12-11-28-750-804" text="TASK 12-11-28-750-804- - Fuel Level Check with Magnetic Level Indicators (MLIs)">
            Fuel Level Check with Magnetic Level Indicators (MLIs)
            <userdata name="url">Chapter12/AMM12-11-28-06.html#AMM12-11-28-750-804</userdata>
          </item>
          <item id="AMM12-11-28-750-805" text="TASK 12-11-28-750-805- - Fuel Check for Particle Contamination">
            Fuel Check for Particle Contamination
            <userdata name="url">Chapter12/AMM12-11-28-06.html#AMM12-11-28-750-805</userdata>
          </item>
        </item>
      </item>
    </item>
    <item id="AMM12-12" text="section 12 - REPLENISHING, AIR DRIVEN GENERATOR">
      REPLENISHING, AIR DRIVEN GENERATOR
      <item id="AMM12-12-24" text="subject 24 - REPLENISHING, AIR DRIVEN GENERATOR (ADG)">
        REPLENISHING, AIR DRIVEN GENERATOR (ADG)
        <item id="AMM12-12-24-03" text="REPLENISHING, AIR DRIVEN GENERATOR (ADG) - SERVICING">
          REPLENISHING, AIR DRIVEN GENERATOR (ADG) - SERVICING
          <userdata name="url">Chapter12/AMM12-12-24-03.html</userdata>
          <item id="AMM12-12-24-610-801" text="TASK 12-12-24-610-801- - Level Check of the ADG Hydraulic Fluid">
            Level Check of the ADG Hydraulic Fluid
            <userdata name="url">Chapter12/AMM12-12-24-03.html#AMM12-12-24-610-801</userdata>
          </item>
          <item id="AMM12-12-24-611-801" text="TASK 12-12-24-611-801- - Servicing of the ADG Turbine Assembly">
            Servicing of the ADG Turbine Assembly
            <userdata name="url">Chapter12/AMM12-12-24-03.html#AMM12-12-24-611-801</userdata>
          </item>
          <item id="AMM12-12-24-611-802" text="TASK 12-12-24-611-802- - Servicing of the ADG Ejection/Restow Assembly">
            Servicing of the ADG Ejection/Restow Assembly
            <userdata name="url">Chapter12/AMM12-12-24-03.html#AMM12-12-24-611-802</userdata>
          </item>
          <item id="AMM12-12-24-611-803" text="TASK 12-12-24-611-803- - Servicing of the ADG Ejection/Restow Assembly">
            Servicing of the ADG Ejection/Restow Assembly
            <userdata name="url">Chapter12/AMM12-12-24-03.html#AMM12-12-24-611-803</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-12-24-03.html</userdata>
      </item>
      <userdata name="url">Chapter12/AMM12-12-24-03.html</userdata>
      <item id="AMM12-12-29" text="subject 29 - HYDRAULIC SYSTEM">
        HYDRAULIC SYSTEM
        <item id="AMM12-12-29-03" text="SERVICING - HYDRAULIC SYSTEMS - REPLENISHING">
          SERVICING - HYDRAULIC SYSTEMS - REPLENISHING
          <userdata name="url">Chapter12/AMM12-12-29-03.html</userdata>
          <item id="AMM12-12-29-611-803" text="TASK 12-12-29-611-803- - Replenish the Reservoirs of the Hydraulic Systems">
            Replenish the Reservoirs of the Hydraulic Systems
            <userdata name="url">Chapter12/AMM12-12-29-03.html#AMM12-12-29-611-803</userdata>
          </item>
          <item id="AMM12-12-29-614-802" text="TASK 12-12-29-614-802- - Replenish the Accumulators of the Hydraulic Systems">
            Replenish the Accumulators of the Hydraulic Systems
            <userdata name="url">Chapter12/AMM12-12-29-03.html#AMM12-12-29-614-802</userdata>
          </item>
          <item id="AMM12-12-29-680-801" text="TASK 12-12-29-680-801- - Drain the Overflow Containers of the Hydraulic Systems">
            Drain the Overflow Containers of the Hydraulic Systems
            <userdata name="url">Chapter12/AMM12-12-29-03.html#AMM12-12-29-680-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-12-29-03.html</userdata>
      </item>
      <item id="AMM12-12-32" text="subject 32 - REPLENISHING, LANDING GEAR">
        REPLENISHING, LANDING GEAR
        <item id="AMM12-12-32-03" text="REPLENISHING, LANDING GEAR - SERVICING">
          REPLENISHING, LANDING GEAR - SERVICING
          <userdata name="url">Chapter12/AMM12-12-32-03.html</userdata>
          <item id="AMM12-12-32-220-801" text="TASK 12-12-32-220-801- - Extension Check and Adjustment (with Nitrogen) of the MLG Shock Strut">
            Extension Check and Adjustment (with Nitrogen) of the MLG Shock Strut
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-220-801</userdata>
          </item>
          <item id="AMM12-12-32-610-801" text="TASK 12-12-32-610-801- - Servicing (Oil and Nitrogen) of the MLG Shock Strut -  Aircraft on the Ground">
            Servicing (Oil and Nitrogen) of the MLG Shock Strut -  Aircraft on the Ground
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-610-801</userdata>
          </item>
          <item id="AMM12-12-32-610-802" text="TASK 12-12-32-610-802- - Servicing (Oil and Nitrogen) of the MLG Shock Strut -  Aircraft on Jacks">
            Servicing (Oil and Nitrogen) of the MLG Shock Strut -  Aircraft on Jacks
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-610-802</userdata>
          </item>
          <item id="AMM12-12-32-220-802" text="TASK 12-12-32-220-802- - Extension Check and Adjustment (with Nitrogen) of the NLG Shock Strut">
            Extension Check and Adjustment (with Nitrogen) of the NLG Shock Strut
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-220-802</userdata>
          </item>
          <item id="AMM12-12-32-610-803" text="TASK 12-12-32-610-803- - Servicing (Oil and Nitrogen) of the NLG Shock Strut - Aircraft on the Ground">
            Servicing (Oil and Nitrogen) of the NLG Shock Strut - Aircraft on the Ground
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-610-803</userdata>
          </item>
          <item id="AMM12-12-32-610-804" text="TASK 12-12-32-610-804- - Servicing (Oil and Nitrogen) of the NLG Shock Strut - Aircraft on Jacks">
            Servicing (Oil and Nitrogen) of the NLG Shock Strut - Aircraft on Jacks
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-610-804</userdata>
          </item>
          <item id="AMM12-12-32-610-807" text="TASK 12-12-32-610-807- - Servicing (Oil and Nitrogen) of the MLG Shock Strut -  Aircraft on Jacks">
            Servicing (Oil and Nitrogen) of the MLG Shock Strut -  Aircraft on Jacks
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-610-807</userdata>
          </item>
          <item id="AMM12-12-32-610-808" text="TASK 12-12-32-610-808- - Servicing (Oil and Nitrogen) of the NLG Shock Strut -  Aircraft on Jacks">
            Servicing (Oil and Nitrogen) of the NLG Shock Strut -  Aircraft on Jacks
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-610-808</userdata>
          </item>
          <item id="AMM12-12-32-610-806" text="TASK 12-12-32-610-806- - Servicing of the Tires">
            Servicing of the Tires
            <userdata name="url">Chapter12/AMM12-12-32-03.html#AMM12-12-32-610-806</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-12-32-03.html</userdata>
      </item>
    </item>
    <item id="AMM12-13" text="section 13 - REPLENISHING, OIL SYSTEM">
      REPLENISHING, OIL SYSTEM
      <item id="AMM12-13-00" text="subject 00 - OIL SYSTEM REPLENISHING">
        OIL SYSTEM REPLENISHING
        <item id="AMM12-13-00-00" text="OIL SYSTEM REPLENISHING - DESCRIPTION AND OPERATION">
          OIL SYSTEM REPLENISHING - DESCRIPTION AND OPERATION
          <userdata name="url">Chapter12/AMM12-13-00-00.html</userdata>
        </item>
        <userdata name="url">Chapter12/AMM12-13-00-00.html</userdata>
      </item>
      <userdata name="url">Chapter12/AMM12-13-00-00.html</userdata>
      <item id="AMM12-13-21" text="subject 21 - REPLENISHING, AIR CYCLE MACHINE (ACM)">
        REPLENISHING, AIR CYCLE MACHINE (ACM)
        <item id="AMM12-13-21-03" text="REPLENISHING, AIR CYCLE MACHINE (ACM) - SERVICING">
          REPLENISHING, AIR CYCLE MACHINE (ACM) - SERVICING
          <userdata name="url">Chapter12/AMM12-13-21-03.html</userdata>
          <item id="AMM12-13-21-610-801" text="TASK 12-13-21-610-801- - Servicing of the Oil Level of the ACM">
            Servicing of the Oil Level of the ACM
            <userdata name="url">Chapter12/AMM12-13-21-03.html#AMM12-13-21-610-801</userdata>
          </item>
          <item id="AMM12-13-21-612-801" text="TASK 12-13-21-612-801- - Oil Change of the ACM">
            Oil Change of the ACM
            <userdata name="url">Chapter12/AMM12-13-21-03.html#AMM12-13-21-612-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-13-21-03.html</userdata>
      </item>
      <item id="AMM12-13-24" text="subject 24 - INTEGRATED DRIVE GENERATOR (IDG)">
        INTEGRATED DRIVE GENERATOR (IDG)
        <item id="AMM12-13-24-03" text="INTEGRATED DRIVE GENERATOR (IDG) - SERVICING">
          INTEGRATED DRIVE GENERATOR (IDG) - SERVICING
          <userdata name="url">Chapter12/AMM12-13-24-03.html</userdata>
          <item id="AMM12-13-24-610-801" text="TASK 12-13-24-610-801- - Servicing of the IDG">
            Servicing of the IDG
            <userdata name="url">Chapter12/AMM12-13-24-03.html#AMM12-13-24-610-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-13-24-03.html</userdata>
      </item>
      <item id="AMM12-13-49" text="subject 49 - AUXILIARY POWER UNIT (APU)">
        AUXILIARY POWER UNIT (APU)
        <item id="AMM12-13-49-03" text="AUXILIARY POWER UNIT (APU) - SERVICING">
          AUXILIARY POWER UNIT (APU) - SERVICING
          <userdata name="url">Chapter12/AMM12-13-49-03.html</userdata>
          <item id="AMM12-13-49-612-801" text="TASK 12-13-49-612-801- - Servicing of the APU">
            Servicing of the APU
            <userdata name="url">Chapter12/AMM12-13-49-03.html#AMM12-13-49-612-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-13-49-03.html</userdata>
      </item>
      <item id="AMM12-13-79" text="subject 79 - REPLENISHING, ENGINE OIL SYSTEM">
        REPLENISHING, ENGINE OIL SYSTEM
        <item id="AMM12-13-79-03" text="REPLENISHING, ENGINE OIL SYSTEM - SERVICING">
          REPLENISHING, ENGINE OIL SYSTEM - SERVICING
          <userdata name="url">Chapter12/AMM12-13-79-03.html</userdata>
          <item id="AMM12-13-79-612-801" text="TASK 12-13-79-612-801- - Servicing of the Engine Oil System at the Engine">
            Servicing of the Engine Oil System at the Engine
            <userdata name="url">Chapter12/AMM12-13-79-03.html#AMM12-13-79-612-801</userdata>
          </item>
          <item id="AMM12-13-79-612-802" text="TASK 12-13-79-612-802- - Servicing of the Engine Oil System With the Remote Replenishing System">
            Servicing of the Engine Oil System With the Remote Replenishing System
            <userdata name="url">Chapter12/AMM12-13-79-03.html#AMM12-13-79-612-802</userdata>
          </item>
          <item id="AMM12-13-79-680-801" text="TASK 12-13-79-680-801- - Drain the Engine Oil System">
            Drain the Engine Oil System
            <userdata name="url">Chapter12/AMM12-13-79-03.html#AMM12-13-79-680-801</userdata>
          </item>
          <item id="AMM12-13-79-617-801" text="TASK 12-13-79-617-801- - Flushing of the Engine Oil System">
            Flushing of the Engine Oil System
            <userdata name="url">Chapter12/AMM12-13-79-03.html#AMM12-13-79-617-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-13-79-03.html</userdata>
      </item>
      <item id="AMM12-13-80" text="subject 80 - AIR TURBINE STARTER">
        AIR TURBINE STARTER
        <item id="AMM12-13-80-03" text="AIR TURBINE STARTER - SERVICING">
          AIR TURBINE STARTER - SERVICING
          <userdata name="url">Chapter12/AMM12-13-80-03.html</userdata>
          <item id="AMM12-13-80-610-801" text="TASK 12-13-80-610-801- - Servicing of the Air Turbine Starter">
            Servicing of the Air Turbine Starter
            <userdata name="url">Chapter12/AMM12-13-80-03.html#AMM12-13-80-610-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-13-80-03.html</userdata>
      </item>
    </item>
    <item id="AMM12-16" text="section 16 - CREW OXYGEN SYSTEM">
      CREW OXYGEN SYSTEM
      <item id="AMM12-16-35" text="subject 35 - CREW OXYGEN SYSTEM">
        CREW OXYGEN SYSTEM
        <item id="AMM12-16-35-03" text="CREW OXYGEN SYSTEM - SERVICING">
          CREW OXYGEN SYSTEM - SERVICING
          <userdata name="url">Chapter12/AMM12-16-35-03.html</userdata>
          <item id="AMM12-16-35-614-801" text="TASK 12-16-35-614-801- - Crew Oxygen System - Servicing">
            Crew Oxygen System - Servicing
            <userdata name="url">Chapter12/AMM12-16-35-03.html#AMM12-16-35-614-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-16-35-03.html</userdata>
      </item>
      <userdata name="url">Chapter12/AMM12-16-35-03.html</userdata>
    </item>
    <item id="AMM12-18" text="section 18 - REPLENISHING, WATER/WASTE">
      REPLENISHING, WATER/WASTE
      <item id="AMM12-18-00" text="subject 00 - WATER/WASTE REPLENISHING">
        WATER/WASTE REPLENISHING
        <item id="AMM12-18-00-00" text="WATER/WASTE REPLENISHING - DESCRIPTION AND OPERATION">
          WATER/WASTE REPLENISHING - DESCRIPTION AND OPERATION
          <userdata name="url">Chapter12/AMM12-18-00-00.html</userdata>
        </item>
        <userdata name="url">Chapter12/AMM12-18-00-00.html</userdata>
      </item>
      <userdata name="url">Chapter12/AMM12-18-00-00.html</userdata>
      <item id="AMM12-18-38" text="subject 38 - WATER/WASTE SYSTEM">
        WATER/WASTE SYSTEM
        <item id="AMM12-18-38-03-02" text="WATER/WASTE SYSTEM - SERVICING">
          WATER/WASTE SYSTEM - SERVICING
          <userdata name="url">Chapter12/AMM12-18-38-03-02.html</userdata>
          <item id="AMM12-18-38-600-803" text="TASK 12-18-38-600-803- - Servicing of the Galley Water System">
            Servicing of the Galley Water System
            <userdata name="url">Chapter12/AMM12-18-38-03-02.html#AMM12-18-38-600-803</userdata>
          </item>
          <item id="AMM12-18-38-600-804" text="TASK 12-18-38-600-804- - Servicing of the Lavatory Water System">
            Servicing of the Lavatory Water System
            <userdata name="url">Chapter12/AMM12-18-38-03-02.html#AMM12-18-38-600-804</userdata>
          </item>
          <item id="AMM12-18-38-600-806" text="TASK 12-18-38-600-806- - Servicing of the Waste Water System">
            Servicing of the Waste Water System
            <userdata name="url">Chapter12/AMM12-18-38-03-02.html#AMM12-18-38-600-806</userdata>
          </item>
          <item id="AMM12-18-38-110-801" text="TASK 12-18-38-110-801- - Chemical cleaning of the Galley Drain Line">
            Chemical cleaning of the Galley Drain Line
            <userdata name="url">Chapter12/AMM12-18-38-03-02.html#AMM12-18-38-110-801</userdata>
          </item>
        </item>
        <userdata name="url">Chapter12/AMM12-18-38-03-02.html</userdata>
        <item id="AMM12-18-38-06-02" text="WATER/WASTE SYSTEM - INSPECTION/CHECK">
          WATER/WASTE SYSTEM - INSPECTION/CHECK
          <userdata name="url">Chapter12/AMM12-18-38-06-02.html</userdata>
          <item id="AMM12-18-38-670-803" text="TASK 12-18-38-670-803- - Sanitization of the Galley Potable Water System">
            Sanitization of the Galley Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-670-803</userdata>
          </item>
          <item id="AMM12-18-38-670-804" text="TASK 12-18-38-670-804- - Sanitization of the Galley Potable Water System">
            Sanitization of the Galley Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-670-804</userdata>
          </item>
          <item id="AMM12-18-38-600-805" text="TASK 12-18-38-600-805- - Sanitization of the Lavatory Potable Water Distribution System">
            Sanitization of the Lavatory Potable Water Distribution System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-600-805</userdata>
          </item>
          <item id="AMM12-18-38-670-805" text="TASK 12-18-38-670-805- - Sanitization of the Lavatory Potable Water System">
            Sanitization of the Lavatory Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-670-805</userdata>
          </item>
          <item id="AMM12-18-38-610-801" text="TASK 12-18-38-610-801- - Demineralization of the Galley Potable Water System">
            Demineralization of the Galley Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-610-801</userdata>
          </item>
          <item id="AMM12-18-38-610-803" text="TASK 12-18-38-610-803- - Demineralization of the Galley Potable Water System">
            Demineralization of the Galley Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-610-803</userdata>
          </item>
          <item id="AMM12-18-38-610-804" text="TASK 12-18-38-610-804- - Demineralization of the Galley Potable Water System">
            Demineralization of the Galley Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-610-804</userdata>
          </item>
          <item id="AMM12-18-38-610-805" text="TASK 12-18-38-610-805- - Demineralization of the Galley Potable Water System">
            Demineralization of the Galley Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-610-805</userdata>
          </item>
          <item id="AMM12-18-38-610-806" text="TASK 12-18-38-610-806- - Demineralization of the Galley Potable Water System">
            Demineralization of the Galley Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-610-806</userdata>
          </item>
          <item id="AMM12-18-38-610-807" text="TASK 12-18-38-610-807- - Demineralization of the Galley Potable Water System">
            Demineralization of the Galley Potable Water System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-610-807</userdata>
          </item>
          <item id="AMM12-18-38-610-802" text="TASK 12-18-38-610-802- - Demineralization of the Lavatory Potable Water Distribution System">
            Demineralization of the Lavatory Potable Water Distribution System
            <userdata name="url">Chapter12/AMM12-18-38-06-02.html#AMM12-18-38-610-802</userdata>
          </item>
        </item>
      </item>
    </item>
    <item id="AMM12-20" text="section 20 - SCHEDULED SERVICING">
      SCHEDULED SERVICING
      <item id="AMM12-20-00" text="subject 00 - SCHEDULED SERVICING">
        SCHEDULED SERVICING
        <item id="AMM12-20-00-00" text="SCHEDULED SERVICING - DESCRIPTION AND OPERATION">
          SCHEDULED SERVICING - DES

Answer posted by Support on Nov 21, 2008 08:35
While item with such ID exists - ther must not be any problem to select item in tree. It doesn't really  matter is command was called from the same frame or from one of sub-frames. 
Beware that selectItem command just selects item and not adjusting scroll state of the tree control to move selected element in active view. ( you may need to use focusItem in addition )