cancel
Showing results for 
Search instead for 
Did you mean: 

How to

prabhu_s2
Active Contributor
0 Kudos

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 ?

Accepted Solutions (0)

Answers (2)

Answers (2)

prabhu_s2
Active Contributor
0 Kudos

used onload event

lisa_miller3
Participant
0 Kudos