Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
2259 Представления

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


Аватар
Отменить
Лучший ответ

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">


Аватар
Отменить
Лучший ответ

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">

Аватар
Отменить