Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2957 Visualizzazioni

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
Abbandona
Risposta migliore

Hi,
You can write it follows:  

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


Thanks

Avatar
Abbandona
Autore

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

Autore

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

Risposta migliore

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


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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
feb 25
901
2
ott 24
3911
1
giu 19
6212
1
gen 17
4039
0
mar 15
5343