Change Tree Node Icon

The DBTree I’ve setup works fine except I’d like to change the nodes’s icon. I’ve tried a number of different icons (size issues??) but had no success including the arrow_icon.gif icon from one of the sample solutions
but the node remains as the default. The image below has a dimension of 13 x 13.

Am not sure what I’m doing wrong ?

thanks.

var binding = elements.bn_district.createBinding(controller.getServerName(), controller.getTableName());
binding.setImageURLDataprovider("media:///arrow_open.gif");

Hi.

binding.setImageURLDataprovider()

The expected value is a dataprovider name.
You can try creating a calculation like :

function tree_icon()
{
    return "media:///arrow_open.gif"
}

and when you set the image

binding.setImageURLDataprovider("tree_icon");

Hope this helps