1

I have column called Name and it shows up when

1. Column ISADMIN = Y AND AD_User_ID = 1000002
2. Column ISADMIN = Y AND AD_User_ID = 1000003
3. Column ISADMIN = N

So, when column ISADMIN = Y but AD_User_ID is not equal to 1000002 nor 1000003, column Name can't be shown.

I have tried @ISADMIN@=Y&@#AD_User_ID@=1000002| @ISADMIN@=Y&@#AD_User_ID@=1000003 | @ISADMIN@=N but it still won't work

Any alternatives?

Jedi Codestar
  • 189
  • 2
  • 14

2 Answers2

1

The Display Logic in Adempiere can be tricky because there is, to my knowledge, no syntax for grouping logic tests (with brackets for example) just the basic left to right evaluation. So you have to create the tests carefully sometimes using expressions that are not immediately obvious.

So maybe

@ISADMIN@=N | @#AD_User_ID@>1000001 & @#AD_User_ID@<1000004
Colin Rooney
  • 439
  • 7
  • 15
0

Yes, Colin Rooney is right there is no grouping available with bracket. Keep in the mind that adempiere execute this condition from left to right. So you should right condition according to it.

So according to me it is right.

parthivrshah
  • 634
  • 2
  • 7
  • 14