Elwood: Dynamisches Javascript nach Ajax Aufruf

Beitrag lesen

Teil 4 (Ende):


  array["Budget"]["Definitiv"]["2002"]["Juni"]       ="A2B2002C0002D0001E0012F0006";
  array["Budget"]["Definitiv"]["2002"]["Mai"]        ="A2B2002C0002D0001E0012F0005";
  array["Budget"]["Definitiv"]["2002"]["April"]      ="A2B2002C0002D0001E0012F0004";
  array["Budget"]["Definitiv"]["2002"]["März"]       ="A2B2002C0002D0001E0012F0003";
  array["Budget"]["Definitiv"]["2002"]["Februar"]    ="A2B2002C0002D0001E0012F0002";
  array["Budget"]["Definitiv"]["2002"]["Januar"]     ="A2B2002C0002D0001E0012F0001";
  array["Budget"]["Definitiv"]["2001"]=new Object();
  array["Budget"]["Definitiv"]["2001"]["Dezember"]   ="A2B2001C0002D0001E0012F0012";
  array["Budget"]["Definitiv"]["2001"]["November"]   ="A2B2001C0002D0001E0012F0011";
  array["Budget"]["Definitiv"]["2001"]["Oktober"]    ="A2B2001C0002D0001E0012F0010";
  array["Budget"]["Definitiv"]["2001"]["September"]  ="A2B2001C0002D0001E0012F0009";
  array["Budget"]["Definitiv"]["2001"]["August"]     ="A2B2001C0002D0001E0012F0008";
  array["Budget"]["Definitiv"]["2001"]["Juli"]       ="A2B2001C0002D0001E0012F0007";
  array["Budget"]["Definitiv"]["2001"]["Juni"]       ="A2B2001C0002D0001E0012F0006";
  array["Budget"]["Definitiv"]["2001"]["Mai"]        ="A2B2001C0002D0001E0012F0005";
  array["Budget"]["Definitiv"]["2001"]["April"]      ="A2B2001C0002D0001E0012F0004";
  array["Budget"]["Definitiv"]["2001"]["März"]       ="A2B2001C0002D0001E0012F0003";
  array["Budget"]["Definitiv"]["2001"]["Februar"]    ="A2B2001C0002D0001E0012F0002";
  array["Budget"]["Definitiv"]["2001"]["Januar"]     ="A2B2001C0002D0001E0012F0001";
  array["Budget"]["Definitiv"]["2000"]=new Object();
  array["Budget"]["Definitiv"]["2000"]["Dezember"]   ="A2B2000C0002D0001E0012F0012";
  array["Budget"]["Definitiv"]["2000"]["November"]   ="A2B2000C0002D0001E0012F0011";
  array["Budget"]["Definitiv"]["2000"]["Oktober"]    ="A2B2000C0002D0001E0012F0010";
  array["Budget"]["Definitiv"]["2000"]["September"]  ="A2B2000C0002D0001E0012F0009";
  array["Budget"]["Definitiv"]["2000"]["August"]     ="A2B2000C0002D0001E0012F0008";
  array["Budget"]["Definitiv"]["2000"]["Juli"]       ="A2B2000C0002D0001E0012F0007";
  array["Budget"]["Definitiv"]["2000"]["Juni"]       ="A2B2000C0002D0001E0012F0006";
  array["Budget"]["Definitiv"]["2000"]["Mai"]        ="A2B2000C0002D0001E0012F0005";
  array["Budget"]["Definitiv"]["2000"]["April"]      ="A2B2000C0002D0001E0012F0004";
  array["Budget"]["Definitiv"]["2000"]["März"]       ="A2B2000C0002D0001E0012F0003";
  array["Budget"]["Definitiv"]["2000"]["Februar"]    ="A2B2000C0002D0001E0012F0002";
  array["Budget"]["Definitiv"]["2000"]["Januar"]     ="A2B2000C0002D0001E0012F0001";
  array["Budget"]["Definitiv"]["1999"]=new Object();
  array["Budget"]["Definitiv"]["1999"]["Dezember"]   ="A2B1999C0002D0001E0012F0012";
  array["Budget"]["Definitiv"]["1999"]["November"]   ="A2B1999C0002D0001E0012F0011";
  array["Budget"]["Definitiv"]["1999"]["Oktober"]    ="A2B1999C0002D0001E0012F0010";
  array["Budget"]["Definitiv"]["1999"]["September"]  ="A2B1999C0002D0001E0012F0009";
  array["Budget"]["Definitiv"]["1999"]["August"]     ="A2B1999C0002D0001E0012F0008";
  array["Budget"]["Definitiv"]["1999"]["Juli"]       ="A2B1999C0002D0001E0012F0007";
  array["Budget"]["Definitiv"]["1999"]["Juni"]       ="A2B1999C0002D0001E0012F0006";
  array["Budget"]["Definitiv"]["1999"]["Mai"]        ="A2B1999C0002D0001E0012F0005";
  array["Budget"]["Definitiv"]["1999"]["April"]      ="A2B1999C0002D0001E0012F0004";
  array["Budget"]["Definitiv"]["1999"]["März"]       ="A2B1999C0002D0001E0012F0003";
  array["Budget"]["Definitiv"]["1999"]["Februar"]    ="A2B1999C0002D0001E0012F0002";
  array["Budget"]["Definitiv"]["1999"]["Januar"]     ="A2B1999C0002D0001E0012F0001";
  array["Budget"]["Definitiv"]["1998"]=new Object();
  array["Budget"]["Definitiv"]["1998"]["Dezember"]   ="A2B1998C0002D0001E0012F0012";
  array["Budget"]["Definitiv"]["1998"]["November"]   ="A2B1998C0002D0001E0012F0011";
  array["Budget"]["Definitiv"]["1998"]["Oktober"]    ="A2B1998C0002D0001E0012F0010";
  array["Budget"]["Definitiv"]["1998"]["September"]  ="A2B1998C0002D0001E0012F0009";
  array["Budget"]["Definitiv"]["1998"]["August"]     ="A2B1998C0002D0001E0012F0008";
  array["Budget"]["Definitiv"]["1998"]["Juli"]       ="A2B1998C0002D0001E0012F0007";
  array["Budget"]["Definitiv"]["1998"]["Juni"]       ="A2B1998C0002D0001E0012F0006";
  array["Budget"]["Definitiv"]["1998"]["Mai"]        ="A2B1998C0002D0001E0012F0005";
  array["Budget"]["Definitiv"]["1998"]["April"]      ="A2B1998C0002D0001E0012F0004";
  array["Budget"]["Definitiv"]["1998"]["März"]       ="A2B1998C0002D0001E0012F0003";
  array["Budget"]["Definitiv"]["1998"]["Februar"]    ="A2B1998C0002D0001E0012F0002";
  array["Budget"]["Definitiv"]["1998"]["Januar"]     ="A2B1998C0002D0001E0012F0001";
  array["Budget"]["Provisorisch"]=new Object();
  array["Budget"]["Provisorisch"]["2007"]=new Object();
  array["Budget"]["Provisorisch"]["2007"]["Dezember"]                                                                                                                                                                                     ="A1B2007C0002D0002E0012F0012";
  array["Budget"]["Provisorisch"]["2006"]=new Object();
  array["Budget"]["Provisorisch"]["2006"]["Dezember"]                                                                                                                                                                                     ="A2B2006C0002D0002E0012F0012";
  array["Budget"]["Provisorisch"]["2005"]=new Object();
  array["Budget"]["Provisorisch"]["2005"]["Dezember"]                                                                                                                                                                                     ="A2B2005C0002D0002E0012F0012";
  array["Budget"]["Provisorisch"]["2004"]=new Object();
  array["Budget"]["Provisorisch"]["2004"]["Dezember"]                                                                                                                                                                                     ="A2B2004C0002D0002E0012F0012";
  array["Budget"]["Provisorisch"]["2003"]=new Object();
  array["Budget"]["Provisorisch"]["2003"]["Dezember"]                                                                                                                                                                                     ="A2B2003C0002D0002E0012F0012";
  array["Budget"]["Provisorisch"]["2002"]=new Object();
  array["Budget"]["Provisorisch"]["2002"]["Dezember"]                                                                                                                                                                                     ="A2B2002C0002D0002E0012F0012";
  array["Budget"]["Provisorisch"]["2001"]=new Object();
  array["Budget"]["Provisorisch"]["2001"]["Dezember"]                                                                                                                                                                                     ="A2B2001C0002D0002E0012F0012";
  array["Budget"]["Provisorisch"]["2000"]=new Object();
  array["Budget"]["Provisorisch"]["2000"]["Dezember"]                                                                                                                                                                                     ="A2B2000C0002D0002E0012F0012";
  array["Prognose"]=new Object();
  array["Prognose"]["Definitiv"]=new Object();
  array["Prognose"]["Definitiv"]["2006"]=new Object();
  array["Prognose"]["Definitiv"]["2006"]["Dezember"] ="A2B2006C0003D0001E0012F0012";
  array["Prognose"]["Definitiv"]["2005"]=new Object();
  array["Prognose"]["Definitiv"]["2005"]["Dezember"] ="A2B2005C0003D0001E0012F0012";
  array["Prognose"]["Definitiv"]["2004"]=new Object();
  array["Prognose"]["Definitiv"]["2004"]["Dezember"] ="A2B2004C0003D0001E0012F0012";
  array["Prognose"]["Definitiv"]["2003"]=new Object();
  array["Prognose"]["Definitiv"]["2003"]["Dezember"] ="A2B2003C0003D0001E0012F0012";
  array["Prognose"]["Definitiv"]["2002"]=new Object();
  array["Prognose"]["Definitiv"]["2002"]["Dezember"] ="A2B2002C0003D0001E0012F0012";
  array["Prognose"]["Definitiv"]["2001"]=new Object();
  array["Prognose"]["Definitiv"]["2001"]["Dezember"] ="A2B2001C0003D0001E0012F0012";
  array["Prognose"]["Definitiv"]["2000"]=new Object();
  array["Prognose"]["Definitiv"]["2000"]["Dezember"] ="A2B2000C0003D0001E0012F0012";
  array["Prognose"]["Definitiv"]["1999"]=new Object();
  array["Prognose"]["Definitiv"]["1999"]["Dezember"] ="A2B1999C0003D0001E0012F0012";
</SCRIPT>
<BR />
<SELECT class="inpselect" onchange="fRefresh('00000001')" size="1" name="V_JKVPP000000002">
  <OPTION value="Ist">Ist</OPTION>
  <OPTION value="Budget">Budget</OPTION>
  <OPTION value="Prognose">Prognose</OPTION>
</SELECT>
<BR />
<BR />
<SELECT class="inpselect" onchange="fRefresh('00000002')" size="1" name="V_JKVPP000000003">
  <OPTION value="Definitiv">Definitiv</OPTION>
  <OPTION value="Test">Test</OPTION>
</SELECT>
<BR />
<BR />
<SELECT class="inpselect" onchange="fRefresh('00000003')" size="1" name="V_JKVPP000000004">
  <OPTION value="2007">2007</OPTION>
  <OPTION value="2006">2006</OPTION>
  <OPTION value="2005">2005</OPTION>
  <OPTION value="2004">2004</OPTION>
  <OPTION value="2003">2003</OPTION>
  <OPTION value="2002">2002</OPTION>
  <OPTION value="2001">2001</OPTION>
  <OPTION value="2000">2000</OPTION>
  <OPTION value="1999">1999</OPTION>
  <OPTION value="1998">1998</OPTION>
  <OPTION value="1997">1997</OPTION>
  <OPTION value="1996">1996</OPTION>
  <OPTION value="1995">1995</OPTION>
  <OPTION value="1994">1994</OPTION>
</SELECT>
<BR />
<BR />
<SELECT class="inpselect" size="1" name="V_JKVPP">
  <OPTION value="A1B2007C0001D0001E0012F0003">März</OPTION>
  <OPTION value="A1B2007C0001D0001E0012F0002">Februar</OPTION>
  <OPTION value="A2B2007C0001D0001E0012F0001">Januar</OPTION>
</SELECT>
<BR />
<SCRIPT language="javascript" type="text/javascript">
  function initSel(){selectItem("V_JKVPP000000002","Ist");fRefresh("000000001");
  selectItem("V_JKVPP000000003","Definitiv");fRefresh("000000002");
  selectItem("V_JKVPP000000004","2007");fRefresh("000000003");
  selectItem("V_JKVPP","A2B2007C0001D0001E0012F0001");}
  initSel();
  function selectItem(src,item){
    var e1 = document.getElementById(src);
    var eo1 = e1.options;
    for(var i=0;i <  eo1.length;i++){
      if(eo1[i].selected){
        eo1[i].selected = false;
      }if(eo1[i].value == trim(item)){
        eo1[i].selected = true;
      }
    }
  }
  function selectV_JKVPP(pVar){
    var params ='IBIF_ex=MISI014&'+'V_KAT='+pVar.substr(8,4)+'&'+'V_VER='+pVar.substr(13,4)+'&'+'V_YEAR='+pVar.substr(3,4)+'&'+'V_PERIOD='+pVar.substr(23,4);
    var xhri = xhrRequest();
    xhr[xhri].open('POST','/ibi_apps/WFServlet',false);
    xhr[xhri].onreadystatechange=function() {
      if (xhr[xhri].readyState==4 && xhr[xhri].status == 200) {
        response = xhr[xhri].responseText.split(',');
        selectItem('V_JKVPP000000002',response[0]);
        fRefresh('000000001');
        selectItem('V_JKVPP000000003',response[1]);
        fRefresh('000000002');
        selectItem('V_JKVPP000000004',pVar.substr(3,4));
        fRefresh('000000003');
        selectItem('V_JKVPP',pVar);
        xi[xhri]  = 1;
        xhr[xhri] = null;
      }
    }
    xhr[xhri].setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
    xhr[xhri].setRequestHeader('Content-length', params.length);
    xhr[xhri].setRequestHeader('Connection', 'close');
    xhr[xhri].send(params);
  }

</SCRIPT>
</TD>
</TR>
<TR>
<TD>| <A href="javascript:updateParm('MIS_4100','V_JKVPP','Test','/ibi_apps/WFServlet','POST');">Speichern</A> |</TD>
<TD>| <A href="javascript:hideParmView();">Abbrechen</A> |</TD>
</TR>
</TBODY>
</TABLE>