on 09-16-2008 4:10 PM
Hi,
I have placed a Button on the ADOBE Form. How to Handle the event on this button. When i click this button, i want to save the details of the form into a Custom table.
Hi Manjunath,
Pl update/close the thread.
Regards,
Reema.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Majunath.
Create an event say, SUB_EVTin the view in WD where you have the Interactive Form UI element.
Bind this event to the onSubmit of the Form.
Now check the display type of the form. It will be either ActiveX or Native.
Now go to the form designer and open Library palette. Navigate to Webdynpro ActiveX or Native Library(Depending on the form display Type in WD).
Drag and Drop Submit button.
On click of the button, the event handler in WD view namely, onActionsub_evt will be invoked. You can write your code in this handler.
Now in order to read data from the form. Go to the form and go to Properties tab. Check the form layout type. If it is not ZCI, run transaction SFP_ZCI_UPDATE and convert the form to ZCI type.
Now back to the event handler.
as an example... I will use the following context node definitions
PDF_DATA 1..1
ACTUAL_DATA 0..n
ATTRIB01
ATTRIB02
Assume the the node PDF_DATA is bound to the data source of your form.
Now in the event handler write the foll code
data: lo_node type ref to if_wd_context_node,
lt_data type wd_this->elements_actual_data.
lo_node = wd_context->get_child_node( name = wd_this-.wdctx_pdf_data ).
lo_node = lo_node->get_child_node( name = wd_this-.wdctx_actual_data ).
lo_node->get_static_attributes_table(
importing
table = lt_data ).
This will get all the form data in the internal table lt_data.
Now you can process the data the way you want and save it in your custom tables.
Regards,
Reema .
Edited by: Reema Shahbazkar on Sep 16, 2008 11:39 PM
Hope this helps!!
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.