Topic: Treeview and dbsql - dbsqlexecute

Is it possible to use the functions dbsql and dbsqlexecute with treeview ?

i'd like to assign a different parent_id during runtime ... is that possible?


Thanks

Re: Treeview and dbsql - dbsqlexecute

Please describe your question in more details.

Dmitry.

Re: Treeview and dbsql - dbsqlexecute

Sorry for my late reply but i was a little busy

My question was a little misleading sorry for that.

I was wondering if i could change the parent_id in the treeviewcomponent during runtime so i can assign a different Sorting order by using two different Parent_id's.

let's say Parent_id1 is the sortorder where every Person is a basicnode, and Parent_id2 is the sortorder where every Person is shown in the order to which departement (departement is the basicnode) they belong.

Standard view Parent_id1

Person1
Person2
Person3
.....

Switched view by changing the Parent_id to Parent_id2

Departement1
   - Person1
   - Person2
Departement2
   - Person3


Hope this is more clear

Thank you

Re: Treeview and dbsql - dbsqlexecute

Check it out

    Form1.TreeView1.dbFieldParentID := 'Parent_id1';
    Form1.TreeView1.dbUpdate;
Dmitry.