It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Passing values from one form to another

Passing values from one form to another

Postby priyapratheep on Thu Mar 26, 2009 5:01 am

I am calling form ZSOR_zau_R.jsp from the form A.jsp

In A.jsp
Code: Select all
{
  child = open
        (

                "ZSOR_zau_R.jsp?lineno="+line,
                "ZSOR_zau_R",
                "width=400,height=200,scrollbars,resizable"
        );


function keep_child_on_top ()
{
        if (child != null)
                if (child . closed)
                        child = null;
                else
                        child . focus ();
}





In ZSOR_zau_R.jsp I am returning values to text box whose name is dyanamic

Code: Select all
function exit (matnr1,lines)
{
      if (lines=='10')
   opener . document . name1 . zdist10. value = matnr1;
   if (lines=='20')
   opener . document . name1 . zdist20. value = matnr1;

   close ();
}
  </script>


In the above code instead of zdist10,zdist20 i want zdist + lines where lines is comming from parameter.

can anybody help?
priyapratheep
 
Posts: 3
Joined: Thu May 15, 2008 3:21 am

Re: Passing values from one form to another

Postby rangana on Thu Mar 26, 2009 9:22 am

Code: Select all
function exit (matnr1,lines)
{
      if (lines=='10')
   opener . document . name1 . zdist+lines. value = matnr1;
   if (lines=='20')
   opener . document . name1 . zdist+lines. value = matnr1;

   close ();
}


One thing I'm concerned, is that you must ensure that 2nd argument, which is being passed to lines variable is a string to satisfy your else-if statement.

Hope that helps.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 7 guests