on 08-24-2009 10:22 AM
Hi experts,
I created interactive forms that bring personal details (id number, name,address etc).
The interface type is: xml schema-based interface
and the xml schema source : file.
I need to fill a table - i saw an examples in the internet the problem is that all the examles was with
interface type diferent -
how can i fill a table with my interface?
thanks in advanced(hope i was clear)
Michal.
anyone???pls help me.
thanks.
Michal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you very much for reply.
I did created in the web dynpro a table and filled it.
i dont know how can i show it in the form - i drill and down and change the pallete->object to flowed
and i see nothing there.
1. do i need to do loop in the method when i set the attribute?
2. what do i need to do in the form?
3. in the interface it not let me to change it.
i really apreciate your help.
Michal.
You should have a data view in your form that represents the context from WD that you bound to the form. You can just drag and drop the 1:n or 0:n context node onto your form designer and it will create a table in the form. For questions about creating the form itself, consider the Interactive Form forum instead of the WDA Forum.
What should i write in the method?
how do i send the data of the table to the form?
i tried to write:
1) lo_el_ls0021->set_attribute(
exporting
va;ue = it_0021
name = 'IT_0021').
and i got dump.
2) lo_el_ls0021->set_attribute(
exporting:
value = it_002-yy_id
name = 'YY_ID')
and i got dump too.
i dont know how to send the table's data in the method to the form.
i really apreciate your help.
Michal.
You need to use the bind_table method.
Something like this:
Say, I have declared my context node which is to be passed to ITF like this:
Header (1..1)
- f1
- f2
Item (0..n)
- f3
- f4
fill the structure (ls_header) for header i.e fill the values for f1,f2
fill the table (lt_items) for items f3, f4
*get the reference to the header node and pass the structure ls_header
lo_nd_header = wd_context->get_child_node( wd_this->wdctx_material ).
lo_nd_header->bind_structure( new_item = ls_header ).
*get the reference to the item node and pass the table lt_items
lo_nd_item = lo_nd_material->get_child_node( 'ITEM' ).
lo_nd_item->bind_table( new_items = lt_items ).
Thanks,
Abhishek
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.