Program rules expression work in web and don't work in android

the below program rule expression in web system is working perfectly, but in android app no.

!d2:hasValue(#{SSP-studying_class}) || #{SSP-studying_class}!= ‘مهني’

could you please, any one can provide me with correct code, which is correct for both inverionmets(web and android).

Hi @sami.oracle10g,

  1. Try do not use in the variable’s name space or dashes
  2. Put variable name in hasValue function between apostrophes.

Regards, Ulanbek

1 Like

Please use the below expression and write it again
!d2:hasValue(#{SSP-studying_class}) || #{SSP-studying_class}!= ‘مهني’

1 Like

I meant this is the expression I used it,please feel free to update it and return it back to me.

!d2:hasValue(#{SSP-studying_class}) || #{SSP-studying_class}!= ‘مهني’

1 Like

!d2:hasValue(‘SSP-studying_class’) || #{SSP-studying_class} != ‘مهني’

And additionally I believe there might be a problem when compare options value(code) in UTF-8. Therefore would be better all your option’s codes have in Latin.

In my practice I had this problem as have 5 different language translations.

2 Likes

wow! :slight_smile:

Thanks for the help!

1 Like

I had pending to test this and I can get it working in Android (2.7). Which version are you using @sami.oracle10g ?

Android:

1 Like