on 2007 Aug 01 1:01 PM
I have to create a table which will take input from user. I have created the context and binded it to the table. At the time of biniding with table i mentioned that these will be input field. But the problem is as the node has no value the table becomes uneditable.I have to give user 5 rows for editing. Can any one tell me the steps of creating this.
<b>If possible please provide the detail step & Sample code.
Points will be rewarded.</b>
Thanks,
Prosun
Hi Prosun,
If you want five empty rows in the beginning Insert 5 empty lines in an Internal table and bind it to the context. You can see 5 empty rows in ur table.
Also if u want to add an intial line to ur table when you press add button in the toolbar of ur table.
Provide a Add button linked wit action add
In Action :On action add
DATA: lo_new TYPE REF TO if_wd_context_element,
ls_employee TYPE zemployee,
lo_node type ref to if_wd_context_node.
lo_node = wd_context-get_child_node( 'NODENAME' ).
lo_new ?= lo_node->create_element( ).
lo_new->set_static_attributes( ls_employee ).
do_main_node->bind_element( new_item = lo_new
set_initial_elements = abap_false ).
Regards,
Ismail.
Message was edited by:
Ismail Basha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to bind empty WA to the context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.