cancel
Showing results for 
Search instead for 
Did you mean: 

Negation in annotation @ui.hidden

stano_jozef
Explorer
0 Kudos

Hi,

I tried adding the annotation UI.Hidden. This is working great.

stano_jozef_0-1716464400363.png

But I need the negated value of the property 'TextEvaluat'. I found this:

stano_jozef_1-1716464545281.png

But this does not work. Does anyone know how to negate a property?

View Entire Topic
bknavya
Advisor
Advisor
0 Kudos

Hi,

Try using Bool="true"/"false" like <Annotation Term="UI.Hidden" Bool="true"/>. it might work.

Please refer the link for further clarification

https://sapui5.hana.ondemand.com/#/topic/ca00ee45fe344a73998f482cb2e669bb

Thanks,

Navya

 

stano_jozef
Explorer
0 Kudos

Hi,

I know, but i need dynamic hidden value from atrubute. 

bknavya
Advisor
Advisor
0 Kudos
you can bind the attribute using expression binding as suggested in the documentation
stano_jozef
Explorer
0 Kudos

Hi Andres,

as you can see in screenshot 1, I know how to bind an element to the UI.Hidden annotation. I read the documentation, and it works fine.

However, in the second field, I need to pass the NOT value of the element into the UI.Hidden annotation = negation. I did not find this scenario in the documentation.

I find solution on the screen 2. But it is not work.