on 07-27-2009 11:30 AM
Hi gurus,
I have 3 fields and submit button - when the user press on submit ,
the data should insert into z table.
i dont success to do submit.
what i did:
in the webdynpro : in the view i created a element type interactive form.
in the event of the element: onsubmit: click
in the form: i put submit from bebdynpro native and change show:click* and language=js.
i know that this subject come up alot here - but i tried and nothing succeed.
thanks in advanced,
Michal.
Edited by: michal_zindorf on Jul 27, 2009 12:58 PM
Hi michal,
Step one: Create an action for the submit button.
Step two: Read all the 3 fields from the context as mentioned below.
DATA LO_ND_EMPLOYEE TYPE REF TO IF_WD_CONTEXT_NODE. " LO_ND_EMPLOYEE => context node
DATA LO_EL_EMPLOYEE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_EMPLOYEE TYPE WD_THIS->ELEMENT_EMPLOYEE.
DATA LV_PERNR LIKE LS_EMPLOYEE-PERNR.
* navigate from <CONTEXT> to <EMPLOYEE> via lead selection
LO_ND_EMPLOYEE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_EMPLOYEE ).
* get element via lead selection
LO_EL_EMPLOYEE = LO_ND_EMPLOYEE->GET_ELEMENT( ).
* get single attribute
LO_EL_EMPLOYEE->GET_ATTRIBUTE(
EXPORTING
NAME = `PERNR` " PERNR is my attribute in my context
IMPORTING
VALUE = LV_PERNR ). " I am reading the value in pernr into 'LV_PERNR'.
After reading all your fields then insert the values into Z-table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
There are few prerequisites for using the Interactive Form.
1. Make the layout type as ZCI Layout
2. And then insert the web dynpro javascript from the utilities tab.
The ZCI script is available on the "Hierarchy" tab page under the
"ContainerFoundation_JS" name. The version must be
800.20080513120641.469612.469346.
3. You can also try to update the form if the version does not match as stated above using SFP_ZCI_UPDATE.
If all these conditions are met then you should be able to get to the method assigned to your submit button.
I would advice to Put the Submit Button in the View Holding the form, not on the form itself and assign a method to it. Put a break-point in the method assigned and see if you get here after you have filled the form and clicked on it.
Thanks,
Abhishek
Hi Abhishek,
I have the symptom like michal_zindorf suffered. After the submit in the adobe form was clicked, nothing happened.
You mentioned the version of the ZCI scripte MUST be 800.20080513120641.469612.469346.
But I just have the version 710.20070621204053.403203.403203, and I can't update the version using the SFP_ZCI_UPDATE.
According to the SAP Note 1042394, I need to apply the Update items in the "ZCI-004 -> ZCI-003 -> ZCI-001 -> ZCI-002" sequence,
but I dont even have the ZCI-004 item.
I'm using Adobe LiveCycle Designer 7.1 patch 3. Does the version of ALD matter a lot?
BTW, here I faced a really weird thing:
I put a button in the view but outside the adobe form. Once I click the button, the browser shows a rounding cycle with text "waiting".
If I right click the mouse at this point, the app. executes the method I written, otherwise, it keeps waiting til timeout.
I have no idea about this. Would you please give some hint?
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.