Skip to Content
Menu
This question has been flagged
2 Replies
2006 Views

Hi

Anyone has clue on how to use the AND / OR operator on a treeview color atribute

<?xml version="1.0"?>
<tree string="sdfsd" colors="blue:fielda==True ANDFieldb==True"; red:fielda==True >

                     .... 

                        ....


I tried AND, &, etc and nothing seems to worj.

Regards

David


Avatar
Discard
Best Answer

Your example is wrong because of the quotes, you have this:
<tree string="sdfsd" colors="blue:fielda==True ANDFieldb==True"; red:fielda==True >
and the solution is:

<tree string="sdfsd" colors="blue:fielda==True and fieldb==True;red:fielda==True">


Avatar
Discard
Best Answer

Hi

Can you try this..

<tree fonts="bold:((field_name1!=0)and(field_name2!=0)) or (field_name1!=0) or (field_name2!=0)" colors="purple:(field_name2!=0)and(field_name2!=0);blue:(field_name1!=0);red:(field_name2!=0)  " string="Test" editable="bottom">

Avatar
Discard