cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a input field input enable in table

Former Member
0 Kudos

Hi all,

How to make a input field input enable in a table. Please suggest.

Thanks

Sanket

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If u r populating the data in the table then only the fields of the table will be in editable mode, those fields which have the data.

If U r having a table with no data in it then u need to initialize the table first, for having the fields in editable mode.

DATA lo_nd_cn_try TYPE REF TO if_wd_context_node.
  DATA lo_el_cn_try TYPE REF TO if_wd_context_element.
  DATA ls_cn_try TYPE wd_this->element_cn_try.
  DATA ls_cn_try1 TYPE wd_this->elements_cn_try.
* navigate from <CONTEXT> to <CN_TRY> via lead selection
  lo_nd_cn_try = wd_context->get_child_node( name = wd_this->wdctx_cn_try ).

do 5 times.
clear ls_cn_try.
append ls_cn_try to ls_cn_try1.
lo_nd_cn_try->bind_table( ls_cn_try1 ).
enddo.

Bind the empty rows with the table.

Regards,

Pankaj Aggarwal

Former Member
0 Kudos

Hi Pankaj,

Where to place this code?

Thanks,

Kiran

Former Member
0 Kudos

Hi Kiran,

You need to place this code either in the WDDOINIT method or in the supply functiion of the Node. Hope it helps you.

Former Member
0 Kudos

Hi,

place the code in doinit method

Answers (3)

Answers (3)

Former Member
0 Kudos

hi ,

u insert the table UI in root element container and right click to choose Create binding with a context node of cardinality 0..n

this node is having the attributes of type string which are table columns

change the Standard Cell Editor from Textview which will come as default to Input Field

ur table is input enabled & user can enter data in it..I hope this is wht u wanted

regards,

amit

Former Member
0 Kudos

Hi amit,

I have selected the standard cell editor as input field but I don't find the table column as input enable.

Former Member
0 Kudos

Just check if the input field element inside each of table columns is not set to disabled and not read only.

Also check table read only and enabled property.

Former Member
0 Kudos

Hi Sanket,

Can you elaborate ur question..in your table cell editor have u selected cell editor as Input field UI element..

Former Member
0 Kudos

Actually I bind a table with a context node and set the field as Input field. But I do not able to set these input fields as input enable. I also check the Readonly and enable property. But I am still facing the same issue.

Please suggest if there is any property for this.