İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
2308 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

Hi,
You can write it follows:  

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


Thanks

Avatar
Vazgeç
Üretici

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

Üretici

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

En İyi Yanıt

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


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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Şub 25
777
2
Eki 24
3704
1
Haz 19
5976
1
Oca 17
3811
0
Mar 15
5171