adempiere

Adempiere Multiple Display Logic


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?


Solution

  • 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