on 04-01-2010 10:41 PM
Hi all,
In webdynpro/ABAP :
I want to create a table that retrieves data, which I could modify the data by typing in text.
With a column where I can put check boxes that can hide the current line.
Any Help or indication Please !!
Thank U a lot Smiling man for reply !
I want to hide the current row of the table by checking the checkbox ! How can I do?
I'm stuck on this
Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be binding the attribute to table column visible property. Thats why columns are becoming invisible.
Delete that binding and instead bind the attribute to Table Cell Editor Visible Property ( Expand each column and you will see underlying table cell editor UI element apart from the Header UI element ).
We dont need to create any extra attribute for your scenario.
You must have bound your checkbox value to an attribute of type wdy_boolean which is present inside context node bound to table. Use the same attribute and bind it to visible property as mentioned above.
Regards
Manas Dua
Smiling Man !
I m grateful for ur answers Thank u very mutch !!
I found an other solution -> i ve create a bouton that can hide the selected ligne from table.
and the action of the bouton :
method ONACTIONHIDE .
DATA lo_nd_DBTABLE TYPE REF TO if_wd_context_node.
DATA lo_el_DBTABLE TYPE REF TO if_wd_context_element.
DATA ls_DBTABLE TYPE wd_this->element_NODEDBTABLE.
DATA: it_tab type table of wd_this->element_NODEDBTABLE.
lo_nd_DBTABLE = wd_context->get_child_node( name = wd_this->wdctx_NODEDBTABLE ).
* get element via lead selection
lo_el_DBTABLE = lo_nd_DBTABLE->get_element( ).
lo_el_DBTABLE->get_static_attributes(
IMPORTING
static_attributes = ls_DBTABLE ).
lo_nd_DBTABLE->get_static_attributes_table(
importing
table = it_tab ).
DELETE it_tab where id_DBTABLE eq ls_DBTABLE-id_DBTABLE.
lo_nd_DBTABLE->bind_table( it_tab[] ).
endmethod.
Best Regards
Hi,
For creation of table and other functionalities related to it refer sample WD component WDR_TEST_TABLE.
By default standard cell editors of table is TextView, to make your table editable chose your cell editor as Input Field.
Similarly for field containing checkbox cell editor should be chosen as checkbox.
Refer to this [help doc |http://help.sap.com/saphelp_nw04s/helpdata/EN/6e/0048413e466e24e10000000a155106/frameset.htm]for table control.
For creating checkbox inside one of table column check following thread:
For creating input fields follow this thread:
Hope this helps
regards
Manas Dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.