Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by TW van den Berg on Mar 25, 2008 08:23
open dhtmlx forum
Get [Object Error] on getParentId

On calling getParentId on IE 6 a popup appears with the message "[Object Error]". The itemId exists.

What does this error mean?
Are there other ways to debug this further?

Thanks!
-- Tom

Answer posted by Support on Mar 25, 2008 09:34
Such error may occur only if itemId which you specified as incoming parameter not exists in grid
Please doublecheck that you are using correct value as incoming parameter.

>>Are there other ways to debug this further?
This is depend on which component you are using
In case of treegrid collection of all elements { hash id=>item }can be checked as
    grid._h2.get
In case of dhtmlxteee
    tree._idpull

Answer posted by TW van den Berg on Mar 25, 2008 09:43
I am using DhtmlxTree.  It would be useful to have an API function to test if an itemId exists in the tree.
I'll check out the tree._idpull.  Thanks so far.

-- Tom