title: QTP: Setting WebEdits within a WebTable using ChildItem method is not working for rows other than first row
body: <p>I am using Webtable ChildItem method in QTP to set the WebEdit and WebCheckbox and has following issues</p>
  
  <ol>
  <li><p>In First row it sets the value for 2nd Column (WebEdit) and 4th column (WebCheckbox) properly but for 3rd Column (WebEdit) it sets the value and as soon as it moves to fourth column resets it to old value.</p></li>
  <li><p>Also for second row onwards it gives error as </p>
  
  <blockquote>
    <p>Object required: 'WebTable(...).ChildItem(...)'</p>
  </blockquote></li>
  </ol>
  
  <p>Please guide me in this matter.<br>
  Here is the code I am using:</p>
  
  <pre><code>Set objFrame = Browser("Browser").Page("Page").Frame("Frame")
  If objFrame.WebTable("WebTable").Exist(0) Then
      rowct = objFrame.WebTable("WebTable").RowCount
  isFound = 0
  
   For i= 2 To rowct
      strText = objFrame.WebTable("WebTable").GetCellData(i,1)
      index = i-2
      If Instr(strText,strType) &gt; 0 Then
          objFrame.WebTable("WebTable").ChildItem(i,2,"WebEdit",index).Set strNumber
      objFrame.WebTable("WebTable").ChildItem(i,3,"WebEdit",index).Set strNumber2
      objFrame.WebTable("WebTable").ChildItem(i,4,"WebCheckBox",index).Set strPreferred
  
         isFound = 1
     Exit For
   End If
     Next
  
     If isFound = 0 Then
         rowct = objFrame.WebTable("WebTable").RowCount
     row= rowct + 1
     index = row - 2
     objFrame.WebButton("Button").Click
  
         objFrame.WebTable("WebTable").ChildItem(row,1,"WebList",index).Select strType
         objFrame.WebTable("WebTable").ChildItem(row,2,"WebEdit",index).Set strNumber
         objFrame.WebTable("WebTable").ChildItem(row,3,"WebEdit",index).Set strNumber2
         objFrame.WebTable("WebTable").ChildItem(row,4,"WebCheckBox",index).Set strPreferred
  
  End If
  End If
  </code></pre>