cancel
Showing results for 
Search instead for 
Did you mean: 

Table issue

Former Member
0 Kudos

Hello all,

My problem could be easy..however, I am having difficulty finding documentation. I'll start with a simple question, leaving out some of the complexities, in the hopes of getting right to the gist of the problem.

I would like to make a single cell in a standard web dynpro table UI control read only. This is at cell level, not column. I would like, for instance, in a column the ability to pick 1 cell from 1 row in that column and make it read only while the other cells in that column are editable.

Hopefully this is clear enough to get us started

Edited by: ROBERT BAGGETT on Apr 20, 2008 10:57 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hI,

if there is a node general_data and subnode user_entities and table is bound to user_entities node and user_entity is an attribute of node then user_entities.Bind the property of a column

to an attribute 'DISABLE' which is of type WDY_BOOLEAN.

data: lo_set TYPE wdr_context_element_set,

lr_result_table TYPE REF TO cl_wd_table,

lo_nd_general_data TYPE REF TO if_wd_context_node,

lo_nd_user_entities TYPE REF TO if_wd_context_node.

FIELD-SYMBOLS :

<ls_element> TYPE REF TO if_wd_context_element.

lo_nd_user_entities = lo_nd_general_data->get_child_node( name = wd_this->wdctx_user_entities ).

lo_set = lo_nd_user_entities->get_elements( ).

IF lo_set IS NOT INITIAL.

LOOP AT lo_set ASSIGNING <ls_element>.

<ls_element>->get_attribute(

EXPORTING name = 'user_entity'

IMPORTING value = lv_user_entity ).

IF lv_user_entity EQ 'User Group'.

  • If the User Entity is a User Group then the UI element to be shown as read only

<ls_element>->set_attribute(

EXPORTING value = 'X'

name = 'DISABLE' ).

ENDIF.

Former Member
0 Kudos

Thanks, this solved it and I have rewarded points.

Answers (0)