DBTreeView - servoy-extra-components

From servoy-extra-components I implemented the DBTreeView. Unfortunately, I tried the following two properties but with no success.

This one does not select the DBTreeView node:

startupMenuPath = [2, 201];
elements.dbTreeViewMenu.setSelectionPath(startupMenuPath);

With the following I would like to display an icon, stored in a table column:

var dataSource = controller.getDataSource();
elements.dbTreeViewMenu.setImageURLDataprovider(dataSource, 'media:///icon');

The form is based on the table containing the icon.

Is it supposed that this DBTreeView also works in Smart Client or do I have to use two different DBTreeView beans for Smart and NG Client?

Thanks and regards,

I could set an icon in the dbTreeView by using

elements.dbTreeView.setImageURLDataprovider(dataSource, 'url');

where url is a table column containing an url like ‘media:///btnHistoryBack.png’ which must exist in the Media (Node) of the module.

Is there also a possibility to access an image which is stored in a table column as image?

Regards, Robert

Hi all

I would like to ask once more if anyone has been able to load an icon stored as image in the table the dbTreeView servoy-extra-component is based on? Or is it really only possible with an URL pointing to the image in the media node? Which means all images must be stored in the media node of the solution.

I would very much appreciate a hint about the possibilities.

Thanks and regards, Robert

Hi,

I think you want setImageMediaDataprovider from the old bean, but that has not been ported to the ng tree bean from extra. You may create a case in our support system to add that,
then we can check/see how to do it.

Regards

Hi Gabi

You are absolutely right with what you assume. After rethinking our implementation concerning this aspect, we decided to go with setImageURLDataprovider() instead of setImageMediaDataprovider and moved the menu icons (images) to the Media node. So it is working in Smart and NG Client.

Gabi Boros:
Hi,

I think you want setImageMediaDataprovider from the old bean, but that has not been ported to the ng tree bean from extra. You may create a case in our support system to add that,
then we can check/see how to do it.

Regards

Thanks for your reply and best regards.