on 05-29-2011 11:57 PM
Hi,
On button click, we want to call Java script function, and if the Java function result is true, in the same event as continuation we want to call ABAP FM.
Went through couple of posts and blog by Thomas jung.
We can make use of HTMLB event onClientClick and onClick, but not sure, how can i take the result of Javascript button press and based on which my ABAP FM to be called.
Pls suggest.
Warm Regards,
Ashwin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you.
That helps. But my actual requirement is i need to pass runtime generated value from my javascript to OnInputProcessing ABAP code.
Flow: Click on a button in page: should execute Jscript Function and this gives some return value.
In the same event it should pass this value to OnInputProcessing ABAP variable where i want to pass this value to ABAP FM and update Z-table.
Tried various ways, somehow not successfull.
Kindly suggest.
Warm Regards,
Ashwin.
Hi,
you´ll have to rethink your problem and a possible solution. What you pretend cannot be done: you say you work with events OnClick and OnClientClick for triggering OnInputProcessing and JS-code respectively. Think of it in this way: you follow now to different roads at the same time, 1 goes left and the other one goes right .... and you want that the left road turns at a certain point to the right.
What do you do with the JS-code ??? can´t you write some programme or function that processes the same in your OnInputProcessing event ??
Either you write all the code in JS or in ABAP but not both.
Hi Jorge,
This JS calls a function of JAVA BASED 3rd party interfacing software which verifies the digital signature and returns back signed value to a java script variable.
Function to Sign RFx Text Form data
function_to_formSign()
{
varlcertstr=signText("<%= lv_rfx_id%>");
__alert(lcertstr);
}
Note: Replacing space with underscore "_" as unable to paste java script code here...
My Requirement: Need to save this "lcertstr" into ABAP table. Am able to get value into lcertstr which is a JavaScript variable. But how to further proceed.
Pls suggest any solution feasible. We want to meet this requirement.
Warm Regards,
Ashwin.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.