2 Replies Latest reply on Aug 24, 2016 9:34 AM by Hellyson Lima

    Open different views of same form using Web Report

      Share This:

      Hi,

       

      I need to open different views of same form using Web Report. I am using Open Window action on button click in which one button would open report console which on clicking of Hyperlink in first field should open form in View A whereas the other button should open form in View B. Currently it always takes default view even if I speacify the View name. Can anyone please help me on this.

       

      Regards

      Nivedita

        • 1. Re: Open different views of same form using Web Report
          Ganesh Gore

          I guess, for web report, It always takes a default view of the form. Can you test same functionality for AR System type report??

          • 2. Re: Open different views of same form using Web Report
            Hellyson Lima

            You can do that using the BIRT tool:

             

            Open the rpt file in BIRT and edit the script adding the view, for example:

             

            if(params["midTierURL"]!=null && params["midTierURL"].value!=null)return;var request = reportContext.getHttpServletRequest();

            var urlValue = null;

             

             

            if (request != null) {

              var session = request.getSession();

              if (session != null) {

              urlValue = session.getAttribute("midTierURL");

              }

            }

             

            var strId = new String(urlValue);

            urlValue = strId.replace ("HPD%3AHelp+Desk","HPD%3AHelp+Desk&view=Default+User+View");

             

             

            if (urlValue != null) {

              params["midTierURL"].value = urlValue;

            } else {

              params["midTierURL"].value = null;

            }