DBTreeView - servoy-extra-components

Forum to discuss the new web client version of Servoy.

DBTreeView - servoy-extra-components

Postby huber » Wed Dec 19, 2018 8:27 pm

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:
Code: Select all
startupMenuPath = [2, 201];
elements.dbTreeViewMenu.setSelectionPath(startupMenuPath);


With the following I would like to display an icon, stored in a table column:
Code: Select all
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,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 321
Joined: Mon May 14, 2012 11:31 pm

Re: DBTreeView - servoy-extra-components

Postby huber » Mon Jan 14, 2019 8:52 pm

I could set an icon in the dbTreeView by using

Code: Select all
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
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 321
Joined: Mon May 14, 2012 11:31 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 2 guests