on 2015 Mar 25 10:34 PM
Hi
I have page2 called from a default page1 and want to pass the value from java script to abap event. to do this i created a hidden variable in bsp page and in java script i mapped the hidden value. Now the question is how can i explicitly trigger an event without clicking any button as i do not have any?
below is the snapshot of my code:
page 2 |
---|
<htmlb:content> <head> <script language=javascript> function getURLParam() { var url_imp = this.location.href; var url_exp = document.getElementById("url_hdn"); url_exp.value = url_imp; alert(url_exp.value); } function raiseAlert(msg) { alert(msg); } </script> </head> <htmlb:form> <htmlb:page onLoad="getURLParam()" > <htmlb:inputField id = "url_hdn" visible = "FALSE" /> </htmlb:page> </htmlb:form> </htmlb:content> |
Please can anyone help on how to trigger a event which would help me to read the data in "url_hdn". This helps me to read a config table to create a table view for 'n' rows and cols. any inputs ?
used onload event
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out: http://scn.sap.com/thread/173374
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
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.