cancel
Showing results for 
Search instead for 
Did you mean: 

Visible/blank/none element in UI Table column

Former Member
0 Kudos

Dear All,

I have the following problem:

I have created a column in my table with a button

and under some condition I want this button

to be not visible (blank) in a row. I know how to deal

with ReadOnly (just created a boolean variable

in dictionary and create calculation methods for this alement and assign it to ReadOnly attribute)

but now I have no idea how and where can I set dynamicly

visible attribute I have create a variable in dictionary with 3 enumeration blank/none/visible but when I tried to assing it to my new-defined type the system

does not allow to assing it, I thouth that I should proceed like for ReadOnly but I was wrong

If somebody could helpe me? Thank you in advance

Bogusia

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Bind the "visible" property of the button to a context attribute of local DDIC type "com.sap.ide.webdynpro.uielementdefinitions.Visibility".

At runtime, use the constants from class WDVisibility to assign values to this attribute.

Addition: From an ergonomic point of view, I would rather enable/disable the button (property "enabled") than switch its visibility.

Armin

Message was edited by: Armin Reichert

Former Member
0 Kudos

Hello Thank you

1. I have created the Simple Type in Local Dictionary with a Base Type: com.sap.ide.webdynpro.uielementdefinitions.Visibility

2. Created a context value attribute assing a simple

type created in p.1

3. Went to the column attribute and when I try to bind

my new value attribute to the column visible property I have the message 'Select an attribute of type 'Visibility'

Where could be the problem?

Thank you

Former Member
0 Kudos

You don't need to create your own DDIC type, use the predefined one!

Armin

Former Member
0 Kudos

Yes you are right I have done it such way)

Thank You Bogusia

Former Member
0 Kudos

Hello Bogumila Wendt,

Create a value attribute of "Type" com.sap.ide.webdynpro.uielementdefinitions.Visibility under the view context and assign the same value attribute to the column visible property. This should work..

Bala

Please consider rewarding points to helpful answers in SDN

Answers (0)