SetRoot in new dbtreeview bean (3.5.3)

Hi all,

the new dbtreeview bean in Servoy 3.5.3 has a lot new features.
One of them is that a new foundset can be added to the dbtreeview.
Cool, but I do not always want the new found be added, but also replaced!

So I was looking for a function for that, but could’nt find it.
I’m really missing now a function: .removeRoots or .clear

Because this way the bean is not compatible anymore with the older versions.

Hello Harjo

There is (already) a thread with this topic. I very much wish Servoy would better comment on these sort of changes and let us know about what is replaced, enhanced, deprecated etc. Otherwise we loose lot’s of time to figure out, often just by accident and/or at a productive app.

http://forum.servoy.com/viewtopic.php?t … dbtreeview

Best regards, Robert

HJK:
Hi all,

the new dbtreeview bean in Servoy 3.5.3 has a lot new features.
One of them is that a new foundset can be added to the dbtreeview.
Cool, but I do not always want the new found be added, but also replaced!

So I was looking for a function for that, but could’nt find it.
I’m really missing now a function: .removeRoots or .clear

Because this way the bean is not compatible anymore with the older versions.

Hi to all,

Startig with v.3.5.3 it is possible to have multiple foundsets associated with
a dbtreeview; because of this, the way bindings are defined for foundsets has
been changed, and some methods were marked as deprecated (see below).
Bindings for a foundset are defined by creating a Binding object for the (servername, tablename)
of the foundset, and then setting the binding info, the same way as in 3.5.2.

dbtreeview changes from 3.5.2 → 3.5.3

deprecated
setRoots(Object vargs);
replaced by
addRoots(Object foundSet);
Binding.setTextDataprovider(String textDataprovider);
removeAllRoots(); (from 3.5.4)

deprecated
setMRelationName(String name);
setNRelationName(String name);
bindNodeFontTypeDataProvider(String dp);
bindNodeImageMediaDataProvider(String dp);
bindNodeImageURLDataProvider(String dp);
bindNodeTooltipTextDataProvider(String dp);
setCallBackInfo(Function f, String returndp);
bindNodeChildSortDataProvider(String dp);
replaced by
Binding.setMRelationName(String name);
Binding.setMRelationDataprovider(String dataprovider);
Binding.setNRelationName(String name);
Binding.setNRelationDataprovider(String dataprovider);
Binding.setFontTypeDataprovider(String fontTypeDataprovider);
Binding.setImageMediaDataprovider(String imageMediaDataprovider);
Binding.setImageURLDataprovider(String imageURLDataprovider);
Binding.setToolTipTextDataprovider(String toolTipTextDataprovider);
Binding.setMethodToCallOnClick(Function methodToCallOnClick, String returnDataprovider);
Binding.setChildSortDataprovider(String childSortDataprovider);

new functions
addRoots(Object foundSet);
removeAllRoots(); (from 3.5.4)
createBinding(String servername, String tablename);

Binding.setTextDataprovider(String textDataprovider);
Binding.setMRelationName(String name);
Binding.setMRelationDataprovider(String dataprovider);
Binding.setNRelationName(String name);
Binding.setNRelationDataprovider(String dataprovider);
Binding.setFontTypeDataprovider(String fontTypeDataprovider);
Binding.setImageMediaDataprovider(String imageMediaDataprovider);
Binding.setImageURLDataprovider(String imageURLDataprovider);
Binding.setToolTipTextDataprovider(String toolTipTextDataprovider);
Binding.setMethodToCallOnClick(Function methodToCallOnClick, String returnDataprovider);
Binding.setChildSortDataprovider(String childSortDataprovider);

Binding.setCheckBoxValueDataprovider(String checkBoxValueDataprovider);
Binding.setHasCheckBoxDataprovider(String hasCheckBoxDataprovider);
Binding.setMethodToCallOnCheckBoxChange(Function methodToCallOnCheckBoxChange, String returnDataproviderOnCheckBoxChange);

Hello Gabi

Thanks a lot for your prompt reply and all the listing - it is very much appreciated!

Best regards, Robert

Hi All

Is there a way to add an individual colour to dbTreeView entries (rows)? I use the setFontTypeDataprovider for this and I have for example ‘LucidaGrande,1,11’ in the corresponding font type dataprovider? Can this info somehow be enhanced with colour information?

Regards, Robert