تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2968 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 25
902
2
أكتوبر 24
3912
1
يونيو 19
6214
1
يناير 17
4043
0
مارس 15
5344