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: 349
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: 349
Joined: Mon May 14, 2012 11:31 pm

Re: DBTreeView - servoy-extra-components

Postby huber » Tue Aug 13, 2019 11:44 am

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

Re: DBTreeView - servoy-extra-components

Postby Gabi Boros » Tue Aug 13, 2019 12:39 pm

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
Gabi Boros
Servoy
Gabi Boros
 
Posts: 346
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: DBTreeView - servoy-extra-components

Postby huber » Mon Aug 19, 2019 2:45 pm

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


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest

cron