Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2996 Переглядів

Hello, I not sure how to code this where it need to be invisible base on either of 2 conditions:

attrs="{'invisible': ['|', ('load', '=', True), ('project_name', 'not in', 'Field Service')]}"/>


Version = 17.0 enterprise

Can any please help?

Thank you very much!!

Аватар
Відмінити
Найкраща відповідь

Hi,
You can write it follows:  

invisible="load == True or project_name not in 'Field Service'"


Thanks

Аватар
Відмінити
Автор

Perfect! thank you!!!

This is wrong, it should be (according to you old condition)

Niyas Raphy (Walnut IT)
1 giờ trước
Câu trả lời hay nhất
Hi,
You can write it follows:

invisible="load == True or project_name not in 'Field Service'"

ah i have wrongly written as and, changed to or

Автор

Thank all, Yes, I realized it should be "or" and make the adjustment. Very much appreciate your help.

Найкраща відповідь

Previous answer is wrong, it should be (according to you old condition)


invisible="load == True or project_name not in 'Field Service'"

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
жовт. 25
1
0
жовт. 25
2
0
вер. 25
2
0
вер. 25
1
0
лют. 25
905