cancel
Showing results for 
Search instead for 
Did you mean: 

Checkbox With value from context

Former Member
0 Kudos

Hi,

I have the following situation:

Context of the view(get the date via contextbinding)

I get this context from the Backend via Bapi. In the Backend the value is define as Boolean (this means CHAR1). No I cant map this value to the checkbox checked property, because it is not the Java type Boolean. But this type dosn't know the backend.

My only idea is to create own values type boolean in the context and mapped it manually after geting the data from the backend - this seems a little bit unbeautiful - but is it correct?

Thanks Stefan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You could use a calculated attribute of type boolean.

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Stefan:

You have to do the next way

boolean checked = wdThis.wdGet();

Don´t forget rewards

Josué