cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro/abap

Former Member
0 Kudos

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 !!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Your checkbox must be bound to an attribute of type wdy_boolean,

Now go to each columns cell editor and bind the visiblity property of each cell editor to the same attribute which is bound to your checkbox column value.

Hope this helps..

Regards

Manas Dua

Former Member
0 Kudos

Thanks a lot for Help

But what i want realy it's to hide the current line of the table.

I m using ur solution but its hide all of the columns, by the way we can create a lot of WDYBOOLEAN varaibles But we dont know how much records on the database table !

Best regards

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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