cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:Using Two Table controls in one screen

former_member197425
Active Participant
0 Kudos

Dear All,

I created two tables in a screen such that both the table fields are of Input fields type .I created first table which will

accept the inputs and below it I created another Table which is also of Input field type.But when I execute the component I am getting only first Table in Input mode and the other Table is in Disable mode.

What can be the problem??

Accepted Solutions (1)

Accepted Solutions (1)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Compare two tables.

1.Since you are able to see the second table in disable mode check if the standard cell property is input field only.If its of text view you see it in disable mode.

2.did u bind to any attribute to enabled or read only property of the input field .

Priya

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

other Table is in Disable mode.

check that u have unticked the READ ONLY property of ur UI

also check if u have binded the ENABLE property of ur table UI to WDY_BOOLEAN in some method

and u r setting it to 'X'

in the OnToggle event of ur Checkbox , set this attribute to 'X to make the checkbox ticked

in the OnToggle event of ur Checkbox , set this attribute to ' ' to make the checkbox un ticked



DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
    DATA ls_cn_node TYPE wd_this->element_cn_node .
    DATA lv_attr  LIKE ls_city-ca_attr.
*   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
    lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
 
*   get element via lead selection
    lo_el_cn_node = lo_nd_cn_node->get_element(  ).
 
*   set single attribute
    lo_el_cn_node->set_attribute(
      EXPORTING
        name =  `CA_ATTR`
 
        value = ' ' ).
// set attribute CA_ATTR under CN_NODE to ' ' 
// this will make the table UI control disabled
// this is a code generated thru code wizard ( control +f7) , read context node/attribute
// use SET_ATTRIBUTE method

regards,

amit

Former Member
0 Kudos

Have you cheked any read only property for other tables..

For teh 2nd table, Input fields are cell editors right....look into this property of table.

Or through programming are you setting this value for readonly...

Edited by: Lekha on Dec 11, 2009 12:00 PM