cancel
Showing results for 
Search instead for 
Did you mean: 

how to edit a table field in webdyne pro ?

former_member498821
Participant
0 Kudos

hi ,

i am creating a one table . i set that table propartise are aditabule . but in runtime it will show normal table . i want editabule fields . how can i . what proparty i want to set .

Regards

venkat

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Pradeep,

You can use below code to set the table as editable.

*Appending Work Area to Internal table.

Do 8 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_<contextname>)

<Refere the context node >->bind_table( new_items = <Internal table> set_initial_elements = abap_true ).

It will solve your issue.

Former Member
0 Kudos

Use 'Input Field' or 'Text Edit' as the UI element inside the table. It will allow you to edit the text.

Former Member
0 Kudos

Hi Pradeep

1.Create Node with elements

2.GO to WDDOINIT()

data: node1 type ref to if_wd_context_node,

lt_testdrop type if_main=>elements_testdrop,

ls_testdrop type if_main=>element_testdrop.

node1 = wd_context->get_child_node( 'TESTDROP' ).

DO 20 TIMES.

APPEND ls_testdrop TO lt_testdrop.

ENDDO.

node1->bind_table( new_items = lt_testdrop

set_initial_elements = abap_true ).

Thanks and Regards

Tulasi Palnati

0 Kudos

Hello,

In the column the ui element should be input field and there should be records in the table then only there will be editable option.

and if you dont have a records in the table then populate empty records so that it till allow you to enter the values in the table.

former_member498821
Participant
0 Kudos

hi ,

tnx for replaying to me . that how to populate empty records ?

Regards

venkat

0 Kudos

define a counter field in the table and put some 10 records in it and bind the same before displaying the table on the screen.