コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2959 ビュー

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
9月 25
1
0
2月 25
902
2
10月 24
3912
1
6月 19
6212
1
1月 17
4040