Page 1 of 1

Verifying Image in Tree Node

Posted: Sun Dec 09, 2012 12:19 pm
by Rakesh123
Hi,

I have a scenario where I need to verify an image before a tree node.

Here is the scenario..

There is a Tree object which several Tree Nodes and each & every node is having an image before it & all the tree nose are having the same image as shown below.

----Parent Node
---- i1 Child Node1
---- i1 Child Node2
---- i1 Child Node3
|
|
|
|
---- i1 Child Node n
So here I need to verify an image before Child Node2.I am trying to do this but the problem is before every TreeItem same image is present.So even the Child node doesn't contain the particular Image and other tree nodes containing the image the result will pass.

So pls provide me the code to verify this scenario.

Thanks,
Rakesh

Re: Verifying Image in Tree Node

Posted: Mon Dec 10, 2012 10:31 am
by Support Team
Hello Rakesh,

Which technology is used in your application (web, winforms, flex, ...)?
Could you please send us a snapshot file to see how your tree is organized?
Thank you!

Regards,
Bernhard

Re: Verifying Image in Tree Node

Posted: Wed Jan 09, 2013 1:38 pm
by Rakesh123
Hi,

The application is developed using Delphi and its a windows application

Please find the attached snap shot.

Thanks,
Rakesh

Re: Verifying Image in Tree Node

Posted: Wed Jan 09, 2013 4:53 pm
by Support Team
Hello Rakesh,

Thank you for the snapshot file!
You can try to use the attribute 'childindex' to verify the correct image of the list item.

E.g. The value of attribute 'childindex' from the item 'Problem List/Past Medical' is 5 and the value of the corresponding image has the value 4.
With this value you can check if an image for a given list entry is available.

Regards,
Bernhard