# DBTreeview in WebClient

**URL:** <https://forum.servoy.com/t/dbtreeview-in-webclient/8912>\
**Category:** Classic Servoy\
**Created:** [March 24, 2008, 7:01am UTC](https://forum.servoy.com/t/dbtreeview-in-webclient/8912 "2008-03-24T07:01:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amchtwe](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@amchtwe](https://forum.servoy.com/u/amchtwe)\
**Post date:** [March 24, 2008, 7:01am UTC](https://forum.servoy.com/t/dbtreeview-in-webclient/8912/1 "2008-03-24T07:01:09Z")

</div>

hi all,

here i got a problem with DBTreeView on the web client

i already tested it on smart client, it works well.

I’ve no idea what to do.

anybody, pls help me

if (globals.glb\_didTreeViewInit == 0)  
{  
//set the relation to discover other nodes (when clicked open)  
elements.dbtreeview.setNRelationName(‘country\_to\_region’)//will be in most cases self join relation

//set the method to call and dataprovider value to pass when node clicked  
elements.dbtreeview.setCallBackInfo(globals.glb\_node\_selected,‘country\_id’);

refreshTreeView();  
globals.glb\_didTreeViewInit = 1

elements.dbtreeview.selectionPath = new Array(1,2,3);  
}

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [March 25, 2008, 8:10am UTC](https://forum.servoy.com/t/dbtreeview-in-webclient/8912/2 "2008-03-25T08:10:19Z")

</div>

What is the problem?
