Parameter Value passing issue to Web i report from Design Studio APP

Hi all,
I am trying to pass values to 2 parameters in a web I report called DIM1_REPORT and DIM2_REPORT. The values with space for example, Computer Sciences Corporation is getting passed as Computer\Sciences\Corporation Looks like the space is getting replaced with \ and as the values doesn't match the database values, no results are being retrieved. I tried using Convert.urlEncode function as well. But no luck still having same issue. Below is the URL,
"http://servername:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AWD5NloJ4rVKoi2Y8m89GY0"+
"&lsMDIM1_REPORT=" + GLOBAL_SCRIPTS_1.DIM1_FILTER_SCRIPT() +
"&lsMDIM2_REPORT=" + GLOBAL_SCRIPTS_1.DIM2_FILTER_SCRIPT()
Has any one faced this issue and have a solution for this? Appreciate any help on this
Thanks
Nithin

Hi Mustafa,
Thanks for the response.
I tried to replace the \ with %20 using the following code
Convert.replaceAll(GLOBAL_SCRIPTS_1.DIM1_FILTER_SCRIPT(), "\ ", "%20");
But getting error in the script editor saying
I think \ is causing this issue. If I use any other character other than \ in search expression its not throwing any error in script editor. Any idea is \ considered as delimiter/break in design studio?
Any other way to fix this issue in design studio?
Thanks,
Nithin

Similar Messages

  • Passing parameters from Design Studio to Explorer

    Is it possible to pass parameters (filter selections) from Design Studio to BO Explorer?
    Thanks,
    Anders

    Hi Andres,
    I could figure out the solution for all these options.
    I used if-esle statement to handle the blank parameter values
    To pass multiple values for the parameter, I converted the "; " separator to _]_ so as to convert the list in the format recognized by Explorer. Note that there is a space after ;
    To pass multiple parameters, I used the syntax "_;_" to include the second parameter in the url (refer to the last else statement in the below mentioned code)
    Hope this helps in case you haven't found any solution yet.
    //specify global variables for each filter and capture the filter selections in them
    var1=DS_1.getFilterText("Dim1");
    var2=DS_1.getFilterText("Dim2");
    //Use below mentioned code for the On Click event of the button
    if (var1.length <= 0 && var2.length <= 0)
        APPLICATION.openNewWindow("http://xxxx:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=Aecg_Tff_55Oon3UKgf2BZ0");
    else if(var1.length <= 0 && var2.length > 0)
            APPLICATION.openNewWindow("http://xxxx:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=Aecg_Tff_55Oon3UKgf2BZ0&fans=Dim2(Text)_:_" + Convert.replaceAll
    (DS_1.getFilterText("Dim2"), "; ", "_]_"));
        else if(var1.length > 0 && var2.length <= 0)
                 APPLICATION.openNewWindow("http://xxxx:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=Aecg_Tff_55Oon3UKgf2BZ0&fans=Dim1(Text)_:_" +
    Convert.replaceAll(DS_1.getFilterText("Dim1"), "; ", "_]_"));
            else
                    APPLICATION.openNewWindow("http://xxxx:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=Aecg_Tff_55Oon3UKgf2BZ0&fans=Dim1(Text)_:_" +
    Convert.replaceAll(DS_1.getFilterText("Dim1"), "; ", "_]_") +
                    "_;_Dim2(Text)_:_" + Convert.replaceAll(DS_1.getFilterText("Dim2"), "; ", "_]_"));
    Thanks & Regards,
    Tushar

  • Parameter passing for custom web service reports

    <p>Hi,</p><p>I created a report file and published it as a .Net web service. I was able to set the web service to a report viewer in my windows application. I am using Crystal Reports Version 11 R2 and Visual Studio 2005 for my development.</p><font size="2" color="#008080">ReportWebService</font><font size="2"> service = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#008080">ReportWebService</font><font size="2">(); </font><font size="2"><p>crystalReportViewer1.ReportSource = service;</p></font><p>Now, my question is how do I pass a parameter from the windows application to the custom report web service. It does not seem to accept any paramters through constructors or other custom web methods.</p><p>If I need to change my design or approach, I am welcome to that as long as I am able to host the report file on a central location. The .rpt file (exposed by the web service) does not have any parameters but the data population logic inside the web service might be based on some conditions which I need to pass as parameter.</p><p>Thanks in advance.Regards, Gulzar</p>

    <p>When using a Report Web Service, you must use the Viewer&#39;s SDK to interact with the report. So in your case, if you want to pass parameters to the report, the viewer exposes a ParameterFieldInfo property that you can set. You can download samples on how to do this or check out the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm" target="_blank">DevLibrary</a> for more details.</p><p>However, one of your last statements you said your report does not have any parameters but your web service does.....could you elaborate on that?  Did you modify the .asmx that is autogenerated to add/modify the web service methods?  If so, then you will not be able to pass parameters to the new/modified web service.  The autogenerated web service for the report cannot be modified in this way since the viewer is designed to use the web services methods as-is.   In other words, the viewer is the only client/consumer of the Report Web Service so any interaction you want with the report must be done through the viewer, if the viewer exposes the functionality.  </p><p>In general, because the viewer is the only supported consumer of the Report Web Service, there are many limitations to interacting with the report.  Depending on how much control you want over the report at runtime, you may not want to use Report Web Services.  If you want to centralize reports for a Windows application, your best option is to load the reports from a network share using a UNC path when loading the report.  Of course, this assumes your application is running from some kind of internal network.  Any other kind of solution to centralized reports would require a web-based solution.</p><p>If you must use a Windows application, then you could host a IE control on your form that accesses a web page that displays reports but then you would have to develop and support a web application in addition to your windows application.  It&#39;s not the best solution but it&#39;s an option!  :-)</p><p>-MJ</p>

  • VO Substitution : JBO-25006 : Invalid parameter value passed for source

    Hello All,
    I want to add 2 new fields (attribute columns) to an existing VO for which I am trying to use VO substitution. I have followed these steps.
    1.     Downloaded all the class files from server to local machine
    2.     Opened an OA project and extended the VO by changing sql query to add 2 attribute columns
    3.     Added 2 transient VO attributes to map them to the added fields in sql query
    4.     Create a BC4J substitution and imported jpx file using jpximporter
    While opening the page which consisted the original VO that I extended (creditRequestsVO), I am getting below error. Appreciate if anyone can throw any light on this.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Edited by: Bhavesh J Shah on Feb 22, 2010 1:58 AM

    Hi Rama,
    Parameter being passted to LeadHeaderDetailsVO is not right. Check the parameter values that are being passed,wether there are right or not
    Thanks
    Sandeep

  • Binding parameter value pass to VO's query which contain IN clause

    Dear All,
    This based on "IN" clause of VO's query
    ex: Following query contain in a VO
    SELECT DISTINCT d.dep_id, d.dep_name, e.emp_name from Department d, Employee e where
    d.dep_id = e.dep_id
    and e.emp_type IN (:param)
    In here query consist with IN clause.
    So the problem is how parameter pass to this binding variable. (my binding variable param) ?
    my parameter value from IMPL class as --> param = "Manager, CEO, Labor, TeramLeader"
    When execute it should be display as following :
    SELECT DISTINCT d.dep_id, d.dep_name, e.emp_name from Department d, Employee e where
    d.dep_id = e.dep_id
    and e.emp_type IN ('Manager', 'CEO', 'Labor', 'TeramLeader')
    Thanks if Help on this,
    Sagara.

    Hi,
    create a client interface method in viweobjectimpl, somewhat like this
        public void executeForBranches(int[] branch_code){
            ViewCriteria newVc = createViewCriteria();
            ViewCriteriaRow vcr = newVc.createViewCriteriaRow();
            StringBuilder sb=new StringBuilder();
            for(int bc:branch_code){
                if(sb.length()>0){
                    sb.append(",");
                sb.append(bc);
            String str="(" + sb.toString() + ")";
            //System.err.println("Param = " + str);
            vcr.setAttribute("OriginBranch", " IN " + str);
            newVc.insertRow(vcr);
            applyViewCriteria(newVc);
            //System.err.println(getQuery());
            executeQuery();
        }just dragand drop the clientmethod to your taskflow..
    for this you would need to remove the inclause from query
    SELECT DISTINCT d.dep_id, d.dep_name, e.emp_name from Department d, Employee e where
    d.dep_id = e.dep_id
    --and e.emp_type IN (:param)Regards,
    Santosh

  • Passing SQL-Parameters to Oracle-Reports from java

    hello,
    i want to write an application in the following way:
    on a java-frontend an user can select values for different
    parameters. these values should be to transferred to the sql-
    query of the reports rdf file. what is the syntax of an
    parameter passed from java to oracle reports.
    does this work with runtime.exec()... ?
    does anybody have an example.
    any help would be very appreciated.
    greetings
    Thorsten Lorenz

    In order to pass the parameters to report rdf, you can create user parameters in the oracle report builder, hook up the parameters with query. For example, you can create user parameter P_DEPTNO, then create a sql query: select * from dept where deptno = :P_DEPTNO. When you run this report, you give P_DEPTNO=10 as parameter, the rdf will generate report that only prints out department 10's information.
    Once you have this kind of report created, you have several ways to achieve what you want.
    1. use rwrun60. In your java program, you can invoke rwrun60 via runtime.exec(cmd) where cmd = rwrun60 report=dept.rdf userid=scott/tiger@orcl destype=file desformat=pdf desname=dept.pdf p_deptno=<value_from_java_app>
    2. similarly, use rwcli60. the cmd would be:
    cmd = rwcli60 server=repserver report=dept.rdf userid=scott/tiger@orcl destype=file desformat=pdf desname=dept.pdf p_deptno=<value_from_java_app>
    3. use rwcgi60. Instead of using runtime.exec, you should use java URL object to run the report in the web environment.
    option 2 & 3 takes advantage of powerful functionality of reports server, and it is much more scale than option 1.

  • Issue with SSRS Loading Report from Definition From Assembly

    I am using SharePoint 2010. I created web-part where there is report viewer control. On the page load of the control. I am writing below codes to load report from definition. Web part is not giving any error but also not lading report. I tried to make physical
    report file from my stream and I found that report is correct.
    But I don't know what is missing.
    protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
    Assembly assembly = Assembly.Load("Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f51c855eec632536");
    Stream stream = assembly.GetManifestResourceStream("Reports.Reports.rdlc");
    MemoryStream rdl = new MemoryStream();
    CopyTo(stream, rdl);
    rptInspectorPlan.Reset();
    rptInspectorPlan.LocalReport.LoadReportDefinition(rdl);
    rptInspectorPlan.LocalReport.DataSources.Clear();
    rptInspectorPlan.LocalReport.DataSources.Add(new ReportDataSource("MyData", finalData(getInspectionPlan())));
    rptInspectorPlan.LocalReport.Refresh();
    protected DataTable getInspectionPlan()
    DataTable dt = new DataTable();
    DataTable dtCurrentUser = getCurrentUser();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("InspectionPlan");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + dtCurrentUser.Rows[0]["ID"].ToString() + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    return dt;
    protected string getMarketSurveillanceURL()
    string URL = ConfigurationManager.AppSettings["MarketSurveillanceURL"].ToString();
    return URL;
    protected string getMainSiteURL()
    string URL = ConfigurationManager.AppSettings["MainSiteURL"].ToString();
    return URL;
    protected DataTable getCurrentUser()
    SPUser user = SPContext.Current.Web.CurrentUser;
    DataTable currentUser = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Inspector");
    SPQuery oQuery = new SPQuery();
    string query = "<Query><Where><Eq><FieldRef Name='LoginID'/><Value Type='Text'>" + user.LoginName + "</Value></Eq></Where></Query>";
    oQuery.ViewFields = "<FieldRef Name='ID'/><FieldRef Name='Title'/>";
    oQuery.Query = query;
    currentUser = list.GetItems(oQuery).GetDataTable();
    return currentUser;
    protected DataTable finalData(DataTable inspectionPlan)
    DataTable dt = inspectionPlan;
    DataTable dtCurrentUser = getCurrentUser();
    dt.Columns.Add("InspectorName");
    dt.Columns.Add("ProductName");
    dt.Columns.Add("CategoryName");
    dt.Columns.Add("InspectionTypeName");
    foreach (DataRow dr in dt.Rows)
    if (dr["Title"].ToString() == dtCurrentUser.Rows[0]["ID"].ToString()) dr["InspectorName"] = dtCurrentUser.Rows[0]["Title"].ToString();
    dr["ProductName"] = getProductName(dr["ProductID"].ToString());
    dr["CategoryName"] = getCategoryName(dr["ProductID"].ToString());
    switch (dr["InspectionType"].ToString())
    case "0":
    dr["InspectionTypeName"] = "Periodic";
    break;
    case "1":
    dr["InspectionTypeName"] = "ComplainFollowup";
    break;
    dt.AcceptChanges();
    return dt;
    protected string getProductName(string id)
    string productName = "";
    DataTable dt = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + id + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.ViewFields = "<FieldRef Name='ProductEN'/><FieldRef Name='ProductAr'/>";
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dt.Rows)
    productName = dr["ProductEN"].ToString();
    return productName;
    protected string getCategoryName(string productID)
    string categoryName = "", CategoryID = "";
    DataTable dtCategory = new DataTable();
    DataTable dtProduct = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Counter'>" + productID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='CategoryID'/>";
    oQuery.Query = query;
    dtProduct = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtProduct.Rows)
    CategoryID = dr["CategoryID"].ToString();
    using (SPSite site = new SPSite(getMainSiteURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("SAS_Categories");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + CategoryID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='Category_Title_EN'/><FieldRef Name='Category_Title_Ar'/>";
    oQuery.Query = query;
    dtCategory = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtCategory.Rows)
    categoryName = dr["Category_Title_EN"].ToString();
    return categoryName;
    public static void CopyTo(Stream input, MemoryStream output)
    byte[] buffer = new byte[16 * 1024]; // Fairly arbitrary size
    int bytesRead;
    while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0)
    output.Write(buffer, 0, bytesRead);

    Have you found a solution to this issue? I am searching for the same.

  • How to pass parameters to concurrent program report from Forms Personalizn

    Hi All,
    I am trying to run a report from a menu entry in the AP Invoice entry form. For this I have done the necessary steps of creating the menu entry and am assigning the values for the 2 parameters to a global variable and then launching SRS form.
    In SRS form created an action to assign the global variable value to work_order.parameters. I can invoke the SRS OK except that my 2 parameter values appear concatenated in the first parameter itself and are not getting assigned to each of them seperately.
    my global variable assignment is as follows :
    =${item.inv_sum_folder.vendor_name.value}||'.'||${item.inv_sum_folder.vendor_site_code.value}
    and my work_order.parameters value assignment is as follows :
    =select nvl(${global.kmg_invalid_po_gv.value}, ${item.work_order.parameters.value}) from dual
    It passes parameters OK if i replace custom report with standard AP report. I also made my parameters to be free text (17 character value set) to not validate input, but still no joy.
    Any ideas why this is not working ?
    Thanks in advance.
    Shankar

    As Francois said in his answer:
    e.g.:Form A call FORM B
    In form A (Button's or menu's Trigger code)
    DECLARE
    param_list_id  ParamList;     
    BEGIN
    param_list_id := GET_PARAMETER_LIST('EMPNO');
    IF NOT ID_NULL(param_list_id) THEN 
    DESTROY_PARAMETER_LIST(param_list_id);
    END IF;
    param_list_id := CREATE_PARAMETER_LIST('empno');
    ADD_PARAMETER(param_list_id, 'EMPNO', TEXT_PARAMETER, EMPNO);
    CALL_FORM ( 'FORM B.FMX',HIDE,DO_replace,NO_QUERY_ONLY,param_list_id);and in FORM B create a parameter EMPNO (e.g.: varchar2) in node tree(parameter) and at Form level (e.g. WHEN NEW FORM INSTANCE read parameter-
    or you could create a GLOBAL variables
    or, still,Global procedure in LIB
    Regards

  • Scheduling web intelligence reports from SAP EP Portal : Server Side Trust

    Hello,
    We have set-up SSO between SAP EP 701, SAP BI 701 and Business Object XI 3.1  to allow users to access reports without having to sign-on again as explained here :
    /people/ingo.hilgefort/blog/2008/09/19/businessobjects-and-sap--configure-sap-authentication
    But, we have recently been contacted by some users because when scheduling Webi Report from a link within the portal they have the following errors :
    u201CA database error occured. The database error text is: Unable to connect to SAP BW server System received an expired SSO ticket. (WIS 10901) u201D
    The user told us that he doesn't encounter the error when :
    Login in directly to the BO Infoview (without SSO from the SAP Enterprise Portal.)
    The first Webi scheduling is succesful from the portal (I suppose because the portal token is still valid)
    I understand that we also have to configure the Server Side Trust between BO Enterprise server and the SAP BI7 backend as explained here , but I do not really understand its purpose
    https://websmp106.sap-ag.de/~sapidb/011000358700001646962008E/XI3-1_BIP_SAP_INSTALL_EN.pdf
    I've found a similar discussions here ;
    Issue with SAP Single Sign-On and Scheduling Reports
    I still have some questions :
    If we configure the Server Side Trust between BO Enterprise server and the SAP BI7 backend .
    The Portal Logon ticket will remain an issue at some point of time , does it mean tha the WeBi report job sheduling should not be perfromed from the SAP EP Portal ?
    We haven't configured the Server Side Trust , yet the users told us that they are able to schedule webi report directly from the BO Infoview ? How is it posible ?
    Thank you in advance for your help.
    Regards.

    Thank you Mr Hilgefort for your detailled explanations.
    I now have to provide some explanations to my managers, and to be honest , there are still some points that
    are unclear to me, and it would be extremely helpful if could confirm (or not) the follwoing points.
    When scheduing Webi report from the sap portal, we're getting SSO errors.
    SAP provide the follwoing note explaining how to extend the validity of the J2EE token (Portal token), but this is not a long term solution, at certain point of time the ticket will expire. Webi shceduling should not be perfromed from the Portal.
    Sap note 1352127 - Scheduled Webi report fails with: A database error occurred. The database error text is: Unable to connect to SAP BW server System received an expired SSO ticket
    Webi Scheduling should be performed from BO Infoview. SNC should be configured between BO server and SAP BI7.0 backend.
    We should Configure Server SNC as explained in the BusinessObjects XI Integration for SAP Solutions Installation and Administration Guide at Chapter "Configuring SAP for server-side trust". (1341043)
    The SAP Portal is not involved here and is not an option even with the configuration of SNC/Server side trust.
    thank you for your patience.
    Best Regards.

  • URGENT: Report parameter form set to yes in calling report from menu

    I have write this code for calling report from menu module. But where i put the code
    PARAMFORM='YES' to display the report parameter form in order to enter the parameter by user.
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
         pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
         Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');           
    Add_Parameter(pl_id,'P_C_NAME',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_NAME',TEXT_PARAMETER,:GLOBAL.BRANCH);
    Add_Parameter(pl_id,'P_user',TEXT_PARAMETER,:GLOBAL.user);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_open_balance.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
              WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

    Jeneesh,
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,
    'paramform=YES
    what about this variable ?
    P_VAR1 = ........');

  • Error Launching Web Analysis Report from the Hyperion Workspace

    Hi Everyone
    When launching the report as a HTML from the Workspace, the output flashes briefly on screen
    The view in the content pane disappears to leave a blank screen.
    When I Select View | Refresh. The following result is returned "Web Analysis Information" -1
    I have set the report in start up preferences. And Web Analysis preferences set to open as HTML
    After logging on again the following error is shown " An attempt to open "Actual vs Budget" Failed
    Show Details displays: this.getFocusRoot() is nullor not an object
    The reports all display correctly when launched from the Web Analysis studio
    Any ideas will be greatly appreciated
    Thanks
    G
    Web Analysis Version
    Server Information
    Version: 11.1.1.0.0.724
    Class Version: Java HotSpot(TM) Server VM
    VM Version: Java HotSpot(TM) Server VM
    VM Vendor: Sun Microsystems Inc.
    Java Vendor: Sun Microsystems Inc.
    Java Version: 1.5.0_11
    OS Name: Windows 2003
    OS Version: 5.2
    Total Memory: 66519040
    Free Memory: 22975320
    Locale: English (United States)
    Client Information
    Version: 11.1.1.0.0.724
    Class Version: Java HotSpot(TM) Client VM
    VM Version: Java HotSpot(TM) Client VM
    VM Vendor: Sun Microsystems Inc.
    Java Vendor: Sun Microsystems Inc.
    Java Version: 1.5.0_12
    OS Name: Windows 2003
    OS Version: 5.2
    Total Memory: 34766848
    Free Memory: 10688504
    Locale: English (United States)

    Hi Ian,
    Thanks for the advise but I have looked into your possible solution and referred to the Web Analysis user guide. I have a number of reports and when selecting the Design for HTML option - a number of objects are valid and should be displayed in the workspace.
    After creating reports from scratch - with valid objects - the problem still persists.
    Unfortunately, I don't think this provides a solution to the problem.
    Cheers
    G

  • Error connecting to web analysis report from workspace

    Hi,
    There are a number of web analysis reports. There is a link to one in a planning task list. However, when the report is opened an error appears saying
    Required application context analyzer is not available. Please contact your administrator
    The report opens is web analysis. I tried other reports from within workspace by browsing to them from within the folder structure and got the error for all of them.
    Has anyone seen this before?
    Thanks,
    Nathan

    A) restart your services in correct order
    B) be sure that the analyzer.properties (baseurl) is correct and can be reached from the workspace server.
    C) wrong SSL config and certificates produce sometimes suprisingly strange error messages.

  • How to show web layout reports from 10g forms

    Hi all ! When I try to open a report file with extension .jsp from a Form using web.show document() or run_report_object() only paper layout is showing on the screen so how I display a web layout from a form with proper documentation or design. Again why only data is showing on the screen without line,ractangle and other documentation but when I run the same report from report builder It is showing all on the screen.Please help how to resolve this. Please provide some proper code or way to solve this.
    Thanks & regards
    Sanjit

    Well,
    Web layout means that in place of (or in addition to) the paper layout, you get the report designed in JSP code. So all the frames, repeating frames etc will be expressed in JSP code using the Oracle Reports custom tags. Since it is code-based, you can insert your HTML or Java code in here to customize the output. You can in fact start with the HTML template, open it in reports builder, and start inserting the data using Reports custom JSP tags. In web layout, there are no "page breaks". So your report will be a JSP file, and can be deployed along with your J2EE application.
    and see http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    Regards

  • Viewing web analysis reports from workspace

    Hi,
    How do I publish web analysis report so it can be viewed from the user workspace?
    Currently I can see only financial reports.
    Thanks,
    G

    You should be able to see any of your Web Analysis studio created reports in the Workspace (in all of the System 9 versions). Can you as the report designer / admin not see them? Or just the end users? You will need to assign access for end users to be able to see any views.
    Thanks, Tracy

  • Issue while FTP the report from BIP

    Hi,
    I am trying to FTP a report from BIP to a shared mount point. The report is completing fine and the history says that the FTP has also completed successfully.But when I go to the FTP location, the file is not there.
    It is happening only with one report, the other reports are running fine. The file size of this file is around 25MB while other files are of less than 5MB.
    Can anyone please suggest on the same?
    Thanks,
    Rohit
    P.S- It used to work fine till sometime back.

    what is the application version ?
    is it seeded report ? or customized
    regards

Maybe you are looking for

  • How do I find the max value of scrollV in AS3?

    I used Ned's answer to get my 3 text fields scrolling together based on the value of one of them. Thanks Ned! The other two text fields scroll to match the 'parent' text field, but at the end - as you reach the last scroll position - the other two do

  • More than one style for a single link state?

    RH 8 outputting CHM Hello, Is it possible to define more than one style for a single link state? For example, I would like a link in the footer of my master page to be smaller than the links that appear in the body of my topics. I want to retain beha

  • Must I buy something in order to share (via email etc.) an Adobe  pdf file created on my computer?

    I downloaded Adobe Reader X.  I created docs in Word and saved it as a pdf file.  I tried to send the doc by email.When the doc is opened, it is gibberish.  Must I buy something for the document to be shared and read?  Is it a setting issue?  I am us

  • NON PO INVOICE

    hi, i have created Non PO invoice in EBP and posted successfully. idoc message type = BBPIV when it reached to ECC and getting status 51 (reason Application document not posted Payment method and payment terms are mandatory). when i am processing wit

  • Question about load Microsoft JDBC driver for Sql server 2000

    Hello, I have some problem while trying load the sqlserver2000 jdbc driver My program is a third party application and it works with the other type 4 JDBC driver well. So I tried to use Microsoft SQL server 2000 JDBC driver instead. I installed JDBC