Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: problem: Opening an .irpt page from the link with parameters

$
0
0

Hi Anuj,

 

Here's the link:

http://localhost:XXXXX/XMII/CM/AngloMA/Security/EstimateReport/Main.irpt?Period=01-Mar-2013%20to%2031-Mar-2013&Stream=BM_MCP_PM_PMR_FIC

 

Javascript function:

 

  function DirectAccess()
  {
   var theURL = unescape(location.href);
   Stream= ParameterValue(theURL,"Stream");
   var theDate = ParameterValue(theURL,"Period");
   if(Stream != "unknown")
   {
    StreamTagBrowser.getBrowserObject().setSelectedItem(Stream);
    setTimeout('updateStreamDescription();',200);
  
    var SDate = theDate.substr(0,11);
    var StrDate = new Date.parse(SDate);

 

    Start_Month.setMonth(StrDate.toString('MM'));
    Start_Month.setYear(StrDate.toString('yyyy'));

 

    thePeriod = theDate;


    document.PeriodBrowser.getQueryObject().setParam(1,Stream);
    document.PeriodBrowser.getQueryObject().setParam(2,theDate);
    document.PeriodBrowser.getQueryObject().setStartDate(SDate);
    document.PeriodBrowser.updateBrowser(true);

 

    setTimeout('UpdateResults(thePeriod);',300);
   }
  }

 

The page opens but from time to time it does not open proparly you need to refresh sometimes if it did open correctly first time.


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>