Passing Rowkey from an XSL?

Is there a way to pass the rowkey from an xsl stylesheet to a jsp page? I'm trying to use data tags (UPDATE) in a jsp page, however I receive the following error :
javax.servlet.jsp.JspException: RowKey is null, row tag cannot find a row
     void jolene_html.jspUpdate._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
     void oracle.jsp.app.JspApplication.dispatchRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     void oracle.jsp.JspServlet.doDispatch(oracle.jsp.app.JspRequestContext)
     void oracle.jsp.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     void oracle.jsp.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
     void oracle.lite.web.JupServlet.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
     void oracle.lite.web.MimeServletHandler.handle(oracle.lite.web.JupApplication, java.lang.String, int, oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
     void oracle.lite.web.JupApplication.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
     void oracle.lite.web.JupHandler.handle(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
     void oracle.lite.web.HTTPServer.process(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
     boolean oracle.lite.web.HTTPServer.handleRequest(oracle.lite.web.JupInputStream, oracle.lite.web.JupOutputStream)
     boolean oracle.lite.web.JupServer.handle(oracle.lite.web.JupInputStream, oracle.lite.web.JupOutputStream)
     void oracle.lite.web.SocketListener.process(java.net.Socket)
     void oracle.lite.web.SocketListener$ReqHandler.run()
Can this be done? or do I have to find some sort of work around for it? Any and All help would be excellent....
Jolene

Could someone please respond to this post for me? Possible
someone from Oracle. I've tried accessing some of the howtos
that are posted throughout the forum on this topic, but they
aren't displaying.... I'm going to post my code for further
clarification.
Many thanks in advance.
My Edit form: (jsp)
<!-- FileName: jspMyDetail.jsp
Accepts Custid parameter from jspMyBC4J.jsp to
display detail data.
Xsl: xdetailXSL.xsl -->
<?xml version="1.0"?>
<%@ page language="java" import="oracle.jbo.RowSet"
session="true" buffer="none" autoFlush="true"
isThreadSafe="true" contentType="text/html; charset=ISO-8859-
1" isErrorPage="false" %>
<%@ page language="java" import="java.sql.*" session="true"
buffer="none" autoFlush="true" isThreadSafe="true"
contentType="text/html; charset=ISO-8859-1" isErrorPage="false"
%>
<jsp:useBean class="oracle.jbo.html.databeans.XmlData"
id="xmlDetail" scope="request" >
<%
xmlDetail.setStylesheet("xMyDetail.xsl");
     xmlDetail.setReleaseApplicationResources(false);
     xmlDetail.setDisplayAttributes
("Custid,Name,Address,City,State,Zip,Area,Phone,Repid,Creditlimit
,Comments");
     xmlDetail.initialize
(pageContext,"BC4JTest_BC4JTest_BC4JTestModule.CustomerView");
// Get the rowset from the XmlData data web bean
RowSet r = xmlDetail.getRowSet();
// Set the Where clause on this RowSet's View Object.
String CustomerId=request.getParameter("pCustid");
// Set the Where clause bind variable.
if (CustomerId != null) {
r.setWhereClauseParam(0, CustomerId);
r.getViewObject().setWhereClause("Custid = :0");
r.executeQuery();
xmlDetail.render();
%>
</jsp:useBean>
My XSL file:
<!-- FileName: xdetailXSL.xsl -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
<xsl:template match="text()|@*"><xsl:value-of
select="."/></xsl:template>
<xsl:template match="/">
<HTML xmlns:jbo="jbo">
          <BODY>
<FORM name="CustomerView_form" action="jspUpdate.jsp">
<b>Add New Customer</b>
               <table width="80%" border="0"
bgcolor="#BDCFDF">
               <xsl:for-each
select="Results/CustomerView">
                    <tr align="left">
<td bgcolor="#BDCFDF">Customer Id:</td>
<td bgcolor="#BDCFDF">
<input type="text" size="10" name="Custid">
<xsl:attribute name="value"><xsl:value-of
select="Custid"/></xsl:attribute></input>
<input type="hidden" size="10" name="_Custid">
<xsl:attribute name="value"><xsl:value-of
select="Custid"/></xsl:attribute></input></td>
<td bgcolor="#BDCFDF">Firstname:</td>
<td bgcolor="#BDCFDF">
<input type="text" size="40" name="Name">
<xsl:attribute name="value"><xsl:value-of
select="Name"/></xsl:attribute></input>
<input type="hidden" size="40" name="_Name">
<xsl:attribute name="value"><xsl:value-of
select="Name"/></xsl:attribute></input></td>
</tr>
<tr>
<td bgcolor="#BDCFDF" width="15%"> </td>
<td bgcolor="#BDCFDF" width="15%"> </td>
<td bgcolor="#BDCFDF">Address:</td>
                         <td bgcolor="#BDCFDF">
<input type="text" size="40" name="Address">
<xsl:attribute name="value"><xsl:value-of
select="Address"/></xsl:attribute></input>
<input type="hidden" size="40" name="_Address">
<xsl:attribute name="value"><xsl:value-of
select="Address"/></xsl:attribute></input></td>
                    </tr>
<tr>
<td bgcolor="#BDCFDF" width="15%">Phone: </td>
<td bgcolor="#BDCFDF" width="15%">
<input type="text" size="3" name="Area">
<xsl:attribute name="value"><xsl:value-of
select="Area"/></xsl:attribute></input>
<input type="hidden" size="3" name="_Area">
<xsl:attribute name="value"><xsl:value-of
select="Area"/></xsl:attribute></input>
<input type="text" size="10" name="Phone">
<xsl:attribute name="value"><xsl:value-of
select="Phone"/></xsl:attribute></input>
<input type="hidden" size="10" name="_Phone">
<xsl:attribute name="value"><xsl:value-of
select="Phone"/></xsl:attribute></input></td>
<td bgcolor="#BDCFDF">City:</td>
                         <td bgcolor="#BDCFDF">
<input type="text" size="40" name="City">
<xsl:attribute name="value"><xsl:value-of
select="City"/></xsl:attribute></input>
<input type="hidden" size="40" name="_City">
<xsl:attribute name="value"><xsl:value-of
select="City"/></xsl:attribute></input></td>
                    </tr>
<tr>
<td bgcolor="#BDCFDF" width="15%">Rep Id:</td>
<td bgcolor="#BDCFDF" width="15%">
<input type="text" size="10" name="Repid">
<xsl:attribute name="value"><xsl:value-of
select="Repid"/></xsl:attribute></input>
<input type="hidden" size="10" name="_Repid">
<xsl:attribute name="value"><xsl:value-of
select="Repid"/></xsl:attribute></input></td>
<td bgcolor="#BDCFDF">State:</td>
                         <td bgcolor="#BDCFDF">
<input type="text" size="05" name="State">
<xsl:attribute name="value"><xsl:value-of
select="State"/></xsl:attribute></input>
<input type="hidden" size="05" name="_State">
<xsl:attribute name="value"><xsl:value-of
select="State"/></xsl:attribute></input></td>
                    </tr>
<tr>
<td bgcolor="#BDCFDF" width="15%">Credit Limit:</td>
<td bgcolor="#BDCFDF" width="15%">
<input type="text" size="20" name="Creditlimit">
<xsl:attribute name="value"><xsl:value-of
select="Creditlimit"/></xsl:attribute></input>
<input type="hidden" size="20" name="_Creditlimit">
<xsl:attribute name="value"><xsl:value-of
select="Creditlimit"/></xsl:attribute></input></td>
<td bgcolor="#BDCFDF">Zip Code:</td>
                         <td bgcolor="#BDCFDF">
<input type="text" size="10" name="Zip">
<xsl:attribute name="value"><xsl:value-of
select="Zip"/></xsl:attribute></input>
<input type="hidden" size="10" name="_Zip">
<xsl:attribute name="value"><xsl:value-of
select="Zip"/></xsl:attribute></input></td>
                    </tr>
          </xsl:for-each>
</table>
               <table width="80%" border="0"
bgcolor="#BDCFDF">
               <xsl:for-each
select="Results/CustomerView">
<tr>
<td bgcolor="#BDCFDF" width="11%">Comments:</td>
<td bgcolor="#BDCFDF" width="55%">
<input type="text" size="80" name="Comments">
<xsl:attribute name="value"><xsl:value-of
select="Comments"/></xsl:attribute></input>
<input type="hidden" size="80" name="_Comments">
<xsl:attribute name="value"><xsl:value-of
select="Comments"/></xsl:attribute></input></td>
<td bgcolor="#BDCFDF" width="0%"></td>
<td bgcolor="#BDCFDF" width="0%"></td>
</tr>
</xsl:for-each>
</table>
<p align="left"></p>
          <input type="submit"
value="Update"></input>   
<input type="submit" value="Cancel"></input>  
</FORM>
          </BODY>
     </HTML>
     </xsl:template>
<xsl:apply-templates/>
</xsl:stylesheet>
My Update jsp
String MyRowKey= request.getParameter("Custid");
out.println(MyRowKey);
%>-->
<jbo:Row id="myRow" datasource="ds" action="Current"
</jbo:Row><%
String myValue = ds.getRowKey(myRow);
// Object myName = myRow.getAttribute("Ename");
out.println( myValue );
%>
<jbo:Row id="myFind" datasource="ds" rowkeyparam="<%=myValue%
" action="Find" ></jbo:Row>
<jbo:Row id="myrow" datasource="ds" action="Update">
<jbo:SetAttribute dataitem="*"/>
</jbo:Row>
<P>
<b>Posting Changes...</b>
</P>
<jbo:PostChanges appid="BC4JTest.BC4JTestModule"/>
<P>
<b>Committing Changes...</b>
</P>
<jbo:Commit appid="BC4JTest.BC4JTestModule"/>
<%
catch(Exception exc)
out.println("<pre>");
exc.printStackTrace(new java.io.PrintWriter(out));
out.println("</pre>");
%>
<P>
Click here to continue
</P>
</center>
</body>
<jbo:ReleasePageResources releasemode="Stateless"/>
</html>

Similar Messages

  • Call plsql function from esb-xsl mapping

    Hi
    I want to call a plsql function that takes an inparameter from an xsl mapping file.
    I tried to use the orcl:query-database function for this, but i couldn't get it to work when I wanted to dynamically pass the value of the inparameter to the function taken from the XML file used as input in the xsl transformation:
    If I hardcode the parameter value like this, it works fine:
    orcl:query-database('select emx_parameters.get_parameter_value('DEADLINE') result from dual',false(),false(),'jdbc/DB')
    But if i dynamically want to assign the inparameter, it doesn't work for me:
    orcl:query-database('select emx_parameters.get_parameter_value('/Header/ParameterName') result from dual',false(),false(),'jdbc/DB')
    Maybe it has something to do with the ' signs, but I tried a lot of combinations it nothing worked for me.
    Has anyone any ideas how to do this?
    Thanks
    Kalle

    Hi
    If anyone is interested i managed to solve it this way:
    I build up the sql query string with xsl variables like this:
    <xsl:variable name="start">select emx_parameters.get_parameter_value('</xsl:variable>
    <xsl:variable name="param" select='/Header/ParameterName'/>
    <xsl:variable name="end">') result from dual</xsl:variable>
    <xsl:variable name="expr" select="concat($start,$param,$end)"/>
    And then I called the orcl:query-database method with the variable as in-parameter.
    orcl:query-database($expr,false(),false(),"jdbc/DB")
    Maybe there is another way, but this worked for me.
    //Kalle

  • Unable to pass variables from IRPT to on demand MDO in MII v12.2

    Hi all,
    Here is what I am trying to achieve - to pass an order input value from front end and fetch the results through on demand MDO.
    STEP 1: Created a BLS transaction with input parameter order and tested it to get Output XML - SUCCESSFUL.
    STEP 2: Created an On-Demand MDO object pointing to the BLS transaction, tested it by passing the value to input parameter in Dynamic Query Parameters - SUCCESSFUL.
    STEP 3: Created an MDO Query Template in SELECT mode pointing to the MDO object created, there are 2 things which I noticed. when I pass the value to OBJECT PARAMETER, it worked fine and when I pass it to PARAMETERS it Doest not work. I just used the object parameter because it worked for me.
    STEP 4: Created an Applet with MDO Query Template and Grid Display template. Tried passing the value using setParam(1, order). I found 3 different variations:
         Result 1: If Object Parameter in MDO Query is not set to any default value - "No Data Available" is seen on applet.
         Result 2: If Object Parameter is set to some valid default value say 123, irrespective of what I pass from UI setParam, I always see the data of 123.
         Result 3: If Object Parameter is set to some valid default value say 123 and in addition to that, I add Filter expression [val1] = [ param (dot)1 ] in my MDO select query, then when I pass 123 from UI, I see the result and when I pass someother input I see empty table, however now I can see the columns with empty table.
    Can someone tell me where I am going wrong?
    Any help is highly appreciated.

    Hi Michael,
    I am using the ramup version 12.2 and want to explore all the new features available in 12.2 and came downloaded the example project of MII 12.2 avaiable here. while doing that I came across an example of onDemand MDO query for pulling the data from Tag quieries and making it dymanic by passing speed or quality or perfomance parameters, however it just showed me only quality results always, I coudn't test it properly because it was a tag query so I created my own scenario and it didnt work from UI as expected.
    so wanted to know if I am going wrong somewhere before I conclud it is a bug.

  • Passing values from a FORM to another FORM

    Hi,
    I have to pass values from FORM "A" to FORM "B". What is the best way to do this?\
    Can I use a GLOBAL variable?
    Thanks,
    Marc.

    I think he meant the global namespace.
    You set a :global_your_name_here to a value and that value is available in your entire application. See the help file section on the global namespace for more information.
    Forms parameters are parameters that you form picks up from the outside when it starts. The calling entity must supply them in the URL or they will be set to null. You set them up in the object navigator in the Parameters node.

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • Passing values from javascript in pop up window to parent jsp

    Hi
    I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
    jsp refreshes , the variable is still null...
    The following is the code i have .
    Parent jsp:a.jsp
    <form name='summary'>
    <input type=hidden name=customerid value="">
    <input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
    <script>
    function openWin(loc, w, h) {
    var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
    newWin.window.focus();
    </SCRIPT>
    <%
    String optionVal = request.getParameter("customerid");%>
    var user = "<%= optionVal%>";
    </form>
    child jsp- b.jsp (pop up window)
    <script>
    function closer(){
    var val = document.formname.id.selected.value;
    window.opener.document.summary.customerid.value = val;
    window.opener.location.reload();
    </script>
    <form name = formname>
    <input type="text" name="id" value = ''>
    <input type="button" class="textButton" value="select"
    onClick="closer();window.close();">
    </form>
    Any ideas on what i am missing
    Thanks
    Arn

    use window.opener.document.forms[0].filedname.value = 'value u need to set'

  • Pass parameters from JSP Dyn Page to WDJ Application

    Hi,
    I am trying to pass parameters from my JSPDyn Page to WDJ Application.
    I am using NWDS 7.1 EHP1
    My code is :
    function to_WEBDYNHK()
          EPCM.relaxDocumentDomain();
          EPCM.doNavigate
        ('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
    This method is being called on click of a button.
    hkparam is the parameter in question.
    The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
    In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
    However I am getting null as the value of hkparam in my WDJ application.
    The code used is :
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
           String param1= request.getParameter("hkparam");
    What seems to be missing here.
    Please help.
    I went through the documentation on SDN but it does not seem to help.
    TIA,
    Himanshu

    Hi Himanshu,
    Try this code.
    EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
    if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
    Regards,
    Vishweshwara P.K.M.

  • Problem in passing data from one .jsp page to another .jsp page

    i have a problem here
    Actually i have 2 jsp pages. What im trying to do here is actually i want to pass data from the first jsp page to the second for updating
    The first jsp page contains data that user wants to update in the form of table.
    <td><img src = "edit.gif" alt = "edit" border="0" ><td>
    <TD><%= Name %></td>
    <TD><%= rs.getInt("Age") %></td>
    <TD><%= rs.getString("Gender") %></td>
    So this page displays the data that users wants to update plus one image button (edit button). So when user clicks this button, all the data in this page will be brought to the second .jsp page called updatePersonal for updating.
    The problem here is that it is not displaying the existing data in the second .jsp page.
    The second page basically contains forms
    <INPUT TYPE="text" NAME="FirstName" maxlength="30" value = "<%=FirstName%>">
    Can someone please help me. I really dont know what to do..How do i get the data displayed in the text field that is passed from the first .jsp page..thankx in advance

    Please modify below code to:
    td><img src = "edit.gif" alt = "edit" border="0" ><td>
    -----------------modified code
    td><a href="updatePersonal.jsp?FirstName=<%=rs.getString(FirstName")%">&LastName=<%=rs.getString("LastName")%>&Age=<%=rs.getInt("Age")%>&Gender=<%=rs.getString("Gender")%>"><img src = "edit.gif" alt = "edit" border="0" ></a><td>
    I'm sure it works</a>

  • How to call a SQL function from an XSL expression

    Hi
    In R12, in Payroll Deposit adivce/Check writer, We need to sort the earnings tag <AC_Earnings> in to two different categories as regular and other earnings. In the DB and form level of element defintiion we have a DFF which differentiates between the two kinds of earnings. But the seeded XML that is gerneated by the check writer does not have this field.
    The seeded template displays all the earnings in one column. How can we achieve this in the template without modifying the seeded XML.
    The one approach i have is to write a function and based on the return value sort the data. For this I need to know :
    1) How to call a SQL function from an XSL expression that is allowed in BI template.
    If anyone ahs faced similar requirements please share your approach.
    Thanks
    Srimathi

    Thank u..
    but i'd seen that link wen i searched in google..
    Is it possible without using any 3rd party JARs and all?
    and more importantly plz tell me what should be preferred way to call a javascript function?
    Do it using addLoadEvent() or Windows.Load etc
    OR
    Call it thru Xsl? (I donno how to do dis)
    Thanks in Advance..
    Edited by: ranjjose on Jun 3, 2008 8:21 AM

  • Passing parameters from java jdbc to pl/sql

    I’m calling stored procedures from java jdbc… but looking for nicer interfaces in terms of passing data. Has anyone come up with a good way to pass data from java jdbc to pl/sql without passing a million parameters? I’m thinking here of some type of structure like pl/sql rowtype or table index type or something else. Has anyone tried to create typed objects in oracle databases and access them from java?
    Thanks, Patrick Caldwell

    Hi Patrick,
    Yes, I have created an Oracle object type, which I successfully returned to a java class, from a PL/SQL stored function, using JDBC. Environment was J2SE 1.3.1, with Oracle 8.1.7.4 on SUN [sparc] Solaris 7 with Oracle's JDBC (thin) driver. It was a while ago, so I don't remember the details very clearly, but I recall being able to figure it out quite easily using the Oracle documentation and the sample code available at Oracle's Technet Web site.
    Hope this has helped you.
    Good Luck,
    Avi.

  • Passing value from javascript function to servlet

    Hello everybody,
    i need to pass parameter from javascript function to servlet.
    what i wrote is :
    function callPopulateServlet(t)
    var h =document.NewRequest.services;
    var y = t.selectedIndex;
    alert(h.options[y].value);
    var id=h.options[y].value;
    <%session.setAttribute("id",id);%> // am getting error at this point
    document.NewRequest.submit();
    with this id am quering values from database through servlet.
    any body knows plz help me.
    thanks,
    anil.

    this is the error am getting
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  • Passing Value from Crystal Report (special function) to Business View parameter

    Friends,
                 Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
    Eg : CurrentCEUsername (func in crystal report)-- gives login user  which i should pass to parameter in a Business view (used in the same report).
    Will be able to explain more if required.
    Thanks in Advance,
    Bharath

    I guess you got the picture wrong.  User_id is not a report_level parameter .
    In Data Foundation, below query is used..
    select Acc_Number, Account_Group,User_id  from Accounts where user_id={?User_id}
    where in {?User_id}  is the BV parameter...
    The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
    How do i pass the CurrentCEUsername to {?User_id}
    Value should ve CurrentCEusername always. so that query will be
    select Acc_Number, Account_Group,User_id  from Accounts where user_id=CurrentCEusername
    It will restrict the data pulled from DB to BV .. right?

  • Pass value from Java to Perl

    Anyone knows how to pass value from Java to Perl program?

    Did you write the perl program? Can you change it? Or are you trying to interface to something that already exists? This will limit your options, of course.
    Anyway the first option is simple. The java program does this:
    System.out.println("This is a line of input.");The perl program does this:
    while(<>)and in that block, $_ is assigned to each line of input.
    Then you can invoke both like this:
    $ java MyJavaProgram | perl MyPerlProgram.pl

  • Pass Value from Excel to custom program

    Hello,
    I want to pass value from Excel to Custom Program being called in the Custom Integrator and i am using the Import in the Importer section but it is not getting passed.
    Please advise and i am on R12.1.3.
    Thanks

    Pl do not post duplicates - Concurrent Program Parameter

  • How can I pass information from one portlet to another?

    First, some background...
    I am using Portal 5.0.2 and developing portlets using JSP/Java on a remote server.
    I need to pass information from a portlet on pageA to another portlet on pageB, but I can't do it using the traditional methods, such as query string, session, cookies, etc. due to either portal framework limitations or because of functional constraints (basically, a user will not necessarily be logged in to the portal, but he can view anything available to the GUEST user). Here are the different ways I've considered using to save state and their limitations:
    Query string: can't use this because portlets on remote servers don't have access to it
    Cookies: if user disables cookies, code will not function properly
    Session variables: limited to one user's connection with one portlet (i.e., can't access a session variable set in portletA from portletB)
    Application variables: because the user may not be logged in, I have no way of uniquely naming variables, which is a necessity in order to maintain state for EACH user
    User Settings: again, the user may not be logged in, so I can't use these
    PCC: can't access client-side variables because server-side JSP executes first
    Are my assumptions above correct? Has anyone had any success using one of these methods given the same constraints, or does anyone have an alternative solution? I'd certainly appreciate any help anyone could provide.
    Thanks,
    Jose

    One possibility would be to use a Login PEI to set a unique UserInfo Name/Value for the user. I think in 5.0 each guest session is unique, so would have unique UserInfo. Then you could pass this value to your portlet (by specifying it in the web service) and use it as a key into a Application-scoped hashmap where you store your info. In other words, your Application variables option, but you have a way of uniquely naming your variables via PEI-set UserInfo.

Maybe you are looking for

  • Please help me to clear out my RAM......I don't know how!

    I am trying to install a new version of photoshop and it says I need at least 1GB of RAM or more before I can - I've checked my 'about this mac' bit and it says I have 768MB DDR SDRAM. What do I do to give me more memory space? Thank you for any help

  • Help installing itunes on laptop with Windows Vista.

    I have a laptop with Windows Vista.  I've tried to download iTunes but I keep getting a message that says "There is a problem with this Windows Installer package.  A program required for his install to complete could not be run.  Contact your support

  • ITunes Store no longer remembering apps/music already downloaded

    Hi, i've got the latest iTunes, and it occurs to me a phenomenon that itunes store previously remembers and indicate the status of apps/music already purchased. to make myself clearer, for example i have already downloaded Whatsapp a long time ago, b

  • Script code not working online (Bridge gallery to Dreamweaver)

    Hi there I'm a newbie, so please pardon my amateur problem.  I am doing a website as a favor for someone and have always worked with FrontPage.  DW is totally new to me. I've created a photo gallery using Bridge and then opened up the index.html (the

  • Solaris 10 x86/JDS-3 Application Support

    I have successfully installed and am running Solaris 10 x86/JDS-3 on an HP OmniBook 6100. I did have some problems with sound that were solved by downloading drivers from http://www.opensound.com I also was able to load plug-ins for Macromedia Flash.