on 06-10-2011 1:21 PM
Hi ,
i want to display the data in normal table and want to update the data to database.
now my query is
i am able to fetch and display the data in table. ( table with input field cells )
but in order to update the data the cells are non editable. Please suggest me how to achieve update functionality..
Thanks and Regards
Farroq
Hi,
If you use inputfields by default table is input enable only. no need to do anything. I think you use textviews.
Go to view-select Table-right click - you find create binding-> there you can change cell editor from text veiw to input field.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
But iam getting in edit mode.
Try like this..
You need to set the rows as input inable for the first tme. Write down the code to make the fields as input enable in WDDOINIT method of your View. Please refer to the below code:
Do 3 times.
Append <work area> to <internal table>.
enddo.
"Binding the table
<Refere the context node > TYPE REF TO if_wd_context_node.
<Refere the context node > = wd_context->get_child_node( name = wd_this->wdctx_<contextNodeName>)
<Refere the context node >->bind_table( new_items = <Internal table> set_initial_elements = abap_true ).
cheers,
Kris.
Hi kissnas
I do the same but it is overwriting.. means
if i first bind the work area to node then bind the data to node.... table will display only data... in non editable mode.
if i first bind the data to node.... then bind the work area to node ... table will dsiplay blank rows with editable cells ... but data is not showing this time..
help me...in this
Regards
farooq
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.