Skip to Content
0
Mar 25, 2015 at 10:34 PM

How to

30 Views

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 ?