Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3051 มุมมอง

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
913