Passing javascript parameter to bean

Here's a real short example of what I'm trying to do.
function getReport(index) {
document.write("Name = " + <%= bean.getReport(index).getName() %> );
Now of course this will not work, because my bean does not know of "index" that was passed via the javascript function. But how can I get this parameter passed? My bean holds onto a Vector of reports. My bean's method getReport(int index) will return one report. Then I can print out it's name. But I can't figure out how to pass the javascript function variable over to the java world. I want to pass the the index as a paramater when a user clicks on an option in an HTML select form.

Here's a real short example of what I'm trying to do.
function getReport(index) {
document.write("Name = " + <%=
= bean.getReport(index).getName() %> );
Two options.
1) On the click, reload the page with a URL parameter &index=#
2) Copy your Report names into a javascript array for use "live" on the page.
...In JSP...
<SCRIPT LANGUAGE="JavaScript1.2">
var reportNames = new Array();
<%
    int index = 0;
    for(Iterator i = bean.getReports().iterator(); i.hasNext(); )
        Report report = (Report)i.next();
        out.print( "reportNames[" );
        out.print( index++ );
        out.print( "] = '");
        out.print( report.getName() );
        out.println("' ;" );
%>
function getReport(index) {
    document.write("Name = " + reportNames[index] );
</SCRIPT>
NOTE: I use the index counter to place the objects into the array because I cannot remember the name of a javascript function that is cross-browser compatible to add to the end( might just be add ).
If you want more than one property per array location, build temporary objects with the following syntax
reportNames[0] = {name:'Here is the name', value:'avalkjd', etc:'etc'};
reportNames[0].name OR reportNames[0].etc
Hope this helps.

Similar Messages

  • Use bean to pass  dynamic parameter from one jspto another

    Hi Everyone
    I am trying to use a bean to pass parameter instead of passing param through querystring . This is the situation:
    in jsp1 I query a table and get the result listed, when I click every row of the record , I want some special parameters passed to jsp2 through bean, I found I can't get these param in jsp2 simply using getProperty method, It seems I must use form in jsp1 to activate jsp2 which use bean to pass param, Can I do it using linking archor? Because I don't want my params to list in the URL whem activate jsp2, I do not want to use the following format:
    <a href="ViewQueryDetail.jsp?string_num=<%=string_num %>&depart=<%=depart %>&l_time=<%=l_time %>&title=<%=encode_title %>  target="_top"><%=title%>
    If anybody had done this, kindly guide me.
    Thanks in advance.
    xufang</a>

    Thanks for your kindly reply, I followed your direction and now I get java.lang.NullPointerException when I link to jsp2. My code is here:
    jsp1:
    <%
    prjxnxx.db.BnParamDtxx MyBean = new prjxnxx.db.BnParamDtxx();
    prjxnxx.db.BnParamDtxx MyBean1 = new prjxnxx.db.BnParamDtxx();
    while(bean.next()) { %>
    <tr>
    <%!
    int conflag ;
    String depart ;
    String l_time;
    int dtnum ;
    String title ;
    String encode_title;
    String content ;
    //Object object_content ;
    %>
    <%
    conflag = bean.getDataInt("conflag");
    depart =bean.getDataString("depart");
    l_time =bean.getDataString("l_time");
    dtnum = bean.getDataInt("dtnum");
    //String string_num =String.valueOf(dtnum);
    title = bean.getDataString("title");
    //request.setAttribute("title",title);
    //request.setAttribute("depart",depart);
    //request.setAttribute("l_time",l_time);
    //request.setAttribute("dtnum",string_num);
    %>
    <%
    //if(request.getAttribute("MB")==null){
    MyBean.setDepart(depart);
    MyBean.setTitle(title);
    MyBean.setL_time(l_time);
    MyBean.setDtnum(dtnum);
    request.setAttribute("MB", MyBean);
    MyBean1 = (prjxnxx.db.BnParamDtxx)request.getAttribute("MB");
    depart = MyBean1.getDepart();
    title = MyBean1.getTitle();
    l_time = MyBean1.getL_time();
    dtnum = MyBean1.getDtnum();
    System.out.println(depart);
    System.out.println(title);
    jsp2:
    <%!
    String content ;
    int conflag ;
    String depart ;
    String l_time;
    int dtnum ;
    String title ;
    String query;
    %>
    <%
    prjxnxx.db.BnParamDtxx MyBean2 = new prjxnxx.db.BnParamDtxx();
    MyBean2 = (prjxnxx.db.BnParamDtxx)request.getAttribute("MB");
    depart = MyBean2.getDepart();
    title = MyBean2.getTitle();
    l_time = MyBean2.getL_time();
    dtnum = MyBean2.getDtnum();
    %>
    Everything is ok until I run the code
    MyBean2 = (prjxnxx.db.BnParamDtxx)request.getAttribute("MB");
    depart = MyBean2.getDepart();
    Can you explain why I can use getAttribute in jsp1 right yet not in jsp2?
    What is the difference between request.getAttribute and pagecontext.getRequest().getAttribute ?
    I am alway grateful for there are someone like you who can help person when they are in need!
    xufang

  • Passing javascript values to jsp without refreshing the page

    Hi,
    How do u pass a value of a javascript variable to the jsp without refreshing the page ?
    For example, a file called test.jsp in which a javascript variable x contains value 254. I need to pass the value of x to a method declared in test.jsp(same page).

    Hi Mona,
    when i say refresh i do mean a blink of the browser.
    This is a small example i wrote to show you how you can pass javascript varables to JSP variables. If you don't want the refresh to be seen by the user just include this code in a hidden frame on a page and instead of refreshing the entire page, refresh the hidden frame.
    i have to say, i didn't test the code so i don't guarantee it's flawless.
    if you need an more detailed example just tell me, i'll create one, but it won't be for today :)
    <html>
    <head>
         <title>Log in to the system</title>
    </head>
    <body>
    <script>
    //we retrieve the parameter 'user' from the URL
    <%
      String username = request.getParameter("user");
    %>
    var user = "<%= username%>";
    //check if there is a username in the URL
    if(user=="null")
      //there is no username so we log the person in as a guest
      user="guest";
      //we refresh the page and set the user parameter to 'guest'
      //the parameter now contains the javascript variable 'user'.
      //The parameter can be read by the JSP (see the top op this script).
      //This way we gave the javascript variabele to the JSP variable
      location="login.jsp?user="+user;
    else if(user=="guest")
    {  alert("Welcome "+user+", I hope you like this site"); }
    else
    {  alert("Welcome "+user+", I'm glad to see you again"); }
    </script>
    </body>
    </html>

  • How to pass Cascading Parameter in SSRS using Java

    How to pass Cascading Parameter in SSRS using Java---
    We are having a problem with dependent parameters.There are three drop down--
    1.first dropdown is of Country.When we select a country--Accordingly next dropdown(State)will populate
    2.Second dropdown is of State. When we select a state--Accordingly next dropdown(City)will populate.
    I have three data sources are
    CountryList-
    SELECT CountryRegionCode, Name
    FROM Person.CountryRegion
    ORDER BY Name
    StateList
    SELECT StateProvinceID, StateProvinceCode, CountryRegionCode
    FROM Person.StateProvince
    WHERE CountryRegionCode = @CountryRegionCode
    ORDER BY StateProvinceCode
    CityList
    SELECT StateProvinceID, City
    FROM Person.Address
    GROUP BY StateProvinceID, City
    HAVING (StateProvinceID = @StateProvinceID)
    ORDER BY City
    Ihave to show report that has been deployed on server on the besis of these parameters
    I am using ReportViewer in JSP Page through url--
    http://192.168.90.149/ReportServer/Pages/ReportViewer.aspx?%2fReport+Project1%2fCascading_Parameters&rs:Command=Render&rs:parameter=true&Country="+Country+"&State="+State;
    But it is not accepting parameter if they are cascaded.It is working fine if Both parameters are independent.
    Edited by: kaushlee on May 11, 2010 9:22 PM

    Take a look at set_custom_property:
    public static final ID SETTEXT = ID.registerProperty("SETTEXT");
    public boolean setProperty(ID pid, Object value)
        if (pid == SETTEXT)
    String text = value.toString();
    and in forms
    set_custom_property('beans.bean_item', 1, 'SETTEXT', 'some text');
    cheers

  • How to pass javascript variable to jsp function

    i want to check which table header (that is <th> in html )is clicked and based on that a jsp funtion do a query in database and should show records in sorted way according to which column head is clicked.
    Table is created in html.
    My function is
    Vector varray = workcaseid.getWorkcaseId(Long.parseLong(MasterAccountNumber),SelectedColumn);
    <table border="1">
              <th ><label onClick="<%SelectedColumn="workcase_id";%>">Workcase Id</label></th>
              <th><label onClick="<%SelectedColumn="status_id";%>">Status</label></th>
    <tr><td>etc</td></tr>
    </table>

    im using bean for business login, following mvc model,and i think mvc is one of good design practice to use.
    <jsp:useBean id="workcaseid" scope="session"class="beanFiles.SearchWorkcaseId" />
    varray = workcaseid.getWorkcaseId(Long.parseLong(MasterAccountNumber),SelectedColumn);
    just tell me whether it is possible to pass javascript variable to jsp variable or not.i can do it by using hidden input type,using form and submit button.

  • Pl/sql encoding javascript parameter problem

    I am using an html form to get user input via radio buttons via the following segment
    htp.p('<input type="radio" value="a" onSelect="saySomething('fish')">');
    However, when the brackets surrounding (fish) are encountered an error occurs
    Line No. 41 : PLS-00103: Encountered the symbol "FISH" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in mod not range rem => ..
    <an exponent (**)> <> or != or ~= >= <= <> and or like as
    between from using is null is not || is dangling
    The symbol ". was inserted before "FISH" to continue.
    (WWV-17050)
    ORA-24344: success with compilation error (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Is there a better way to program user input or how can I overcome the javascript parameter passing problem
    Many regards
    Eddie

    To include single quotes into literal strings in SQL and PL/SQL, you need to escape (double) them or replace them with concatenations with CHR(39):
    htp.p('<input type="radio" value="a" onSelect="saySomething(''fish'')">');
    or
    htp.p('<input type="radio" value="a" onSelect="saySomething('||chr(39||'fish'||chr(39||')">');

  • Passing a parameter to a method in the dataTable's value attribute

    Hi,
    I'm brand new to JSF, so I might be overlooking something really simple. I'm trying to use a dataTable to display data from a database. It works fine until I try to pass a parameter to "#{customer.all}". My backer bean is ready (or so I believe) and is included after the jsp code snippet. What do I need to do to the jsp/jsf code in order to pass this parameter?
    jsp code:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core"  prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html"  prefix="h" %>
       <f:view>
          <head>
             <link href="styles.css" rel="stylesheet" type="text/css"/>
             <title>
                <h:outputText value="#{msgs.pageTitle}"/>
             </title>
          </head>
          <body>
             <h:form>
                <h:dataTable value="#{customer.all}" var="customer"
                   styleClass="customers"
                   headerClass="customersHeader" columnClasses="custid,name">
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.customerIdHeader}"/>
                      </f:facet>
                      <h:outputText value="#{customer.Cust_ID}"/>
                   </h:column>
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.nameHeader}"/>
                      </f:facet>
                      <h:outputText value="#{customer.Name}"/>
                   </h:column>
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.phoneHeader}"/>
                      </f:facet>
                      <h:outputText value="#{customer.Phone_Number}"/>
                   </h:column>
                </h:dataTable>
             </h:form>
          </body>
       </f:view>
    </html>backer bean:
    package com.corejsf;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.jsp.jstl.sql.Result;
    import javax.servlet.jsp.jstl.sql.ResultSupport;
    import javax.sql.DataSource;
    public class CustomerBean {
       private Connection conn;
       public void open() throws SQLException, NamingException {
          if (conn != null) return;
          Context ctx = new InitialContext();
          DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mydb");
          conn = ds.getConnection();  
       public Result getAll(sName) throws SQLException, NamingException {
          try {
             open();
             Statement stmt = conn.createStatement();       
             ResultSet result = stmt.executeQuery("SELECT * FROM Customers where Name = '" + sName + "'");
             return ResultSupport.toResult(result);
          } finally {
             close();
       public void close() throws SQLException {
          if (conn == null) return;
          conn.close();
          conn = null;
    }Thanks,
    Dave

    Mogambo,
    Thanks for the response. Let me see if I understand. Let's say I have a login.jsp page, and after the user logs in I want to display all of his orders in a dataTable in summary.jsp. You're saying I should actually run the query in LoginBean.java after doing the submit, something like this right?
    login.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>                 
             <title>A Simple JavaServer Faces Application</title>
          </head>
          <body>
             <h:form>
                <h3>Please enter your name and password.</h3>
                <table>
                   <tr>
                      <td>Name:</td>
                      <td>
                         <h:inputText value="#{login.name}"/>
                      </td>
                   </tr>            
                   <tr>
                      <td>Password:</td>
                      <td>
                         <h:inputSecret value="#{login.password}"/>
                      </td>
                   </tr>
                </table>
                <p>
                   <h:commandButton value="Login"
                      action="#{login.doLogin}"/>
                </p>
             </h:form>
          </body>
       </f:view>
    </html>
    LoginBean.java:
    public class LoginBean {
       private String name;
       private String password;
       private ResultSet results;
       // PROPERTY: name
       public String getName() { return name; }
       public void setName(String newValue) { name = newValue; }
       // PROPERTY: password
       public String getPassword() { return password; }
       public void setPassword(String newValue) { password = newValue; }
       // PROPERTY: results
       public ResultSet getResults() { return results; }
       public void setResults(String newValue) { results = newValue; }
       public String doLogin(){
           Integer liUserID = null;
           // authenticate user and return user's internal ID
           liUserID = authenticateUser(name, password);
           if ( liUserID == null){
                return "failure";
          else{
               results = getUserOrders(liUserID);
               return "success";
    faces-config.xml:
    <?xml version="1.0"?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
            http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
         version="1.2">
       <navigation-rule>
          <from-view-id>/login.jsp</from-view-id>
          <navigation-case>
             <from-outcome>login</from-outcome>
             <to-view-id>/summary.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>
       <managed-bean>
          <managed-bean-name>login</managed-bean-name>
          <managed-bean-class>LoginBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    <navigation-rule>
        <from-view-id>/login.jsp</from-view-id>
        <navigation-case>
          <from-action>#{login.doLogin}</from-action>
          <from-outcome>success</from-outcome>
          <to-view-id>/summary.jsp</to-view-id>
        </navigation-case>
         <navigation-case>
          <from-action>#{login.doLogin}</from-action>
          <from-outcome>failure</from-outcome>
          <to-view-id>/login.jsp</to-view-id>
        </navigation-case>
      </navigation-rule>
    </faces-config>And then I assume that my summary.jsp would look like this, using login.results as my value for the dataTable?
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core"  prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html"  prefix="h" %>
       <f:view>
          <head>
             <link href="styles.css" rel="stylesheet" type="text/css"/>
             <title>
                <h:outputText value="#{msgs.pageTitle}"/>
             </title>
          </head>
          <body>
             <h:form>
                <h:dataTable value="#{login.results}" var="order"
                   styleClass="orders"
                   headerClass="ordersHeader" columnClasses="orderid,name">
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.orderIDHeader}"/>
                      </f:facet>
                      <h:outputText value="#{order.Order_ID}"/>
                   </h:column>
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.nameHeader}"/>
                      </f:facet>
                      <h:outputText value="#{order.Name}"/>
                   </h:column>
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.phoneHeader}"/>
                      </f:facet>
                      <h:outputText value="#{order.Phone_Number}"/>
                   </h:column>
                </h:dataTable>
             </h:form>
          </body>
       </f:view>
    </html>Does this look reasonable?
    Thanks,
    Dave

  • Passing values to form bean string array from dynamic added textboxes

    Hi,
    I am unable to pass values to form bean string array from a jsp in which I have incorporated dynamically adding of textboxes in javascript.
    I have given add/delete row option in the jsp. If there is single row, this is working fine. But after adding a row, I am not able to either do any validations on added textboxes or pass the values to the String array form bean variable.
    code snippet:
    var cell6 = row.insertCell(4);
    var element5 = document.createElement("input");
    element5.type = "text";
    element5.className = "formtext1";
    element5.size = "5";
    element5.value = "00.00";
    element5.name= "qty"; // this is a string array of the form bean.
    element5.onchange=function() {checkNumeric(this);};
    cell6.appendChild(element5);
    <html:text styleClass="formtext1" property="qty" value="" size="5" styleId="qty" onchange="checkNumeric(this)"/></td>
    form bean declaration
    private String[] qty; Please help.
    Edited by: j2eefresher on Jan 12, 2010 11:23 PM

    Shivanand,
    There's no need to post that much code when you could create a very short test case that demonstrates only the problem you are having.
    You're using &NAME. notation on something that isn't a page or application item. You can't reference PL/SQL variables that way (or any other way) outside the PL/SQL scope. For your situation, you could create a page item named P55_DOCID and assign it a value in the PL/SQL process (:P55_DOCID := DOCID;), then reference &P55_DOCID. in HTML areas like the success message.
    Scott

  • Is it possible to pass a parameter to ON_DEMAND process?

    Hi guys.
    In AJAX, is it possible to pass a parameter to ON_DEMAND process?
    (I get value in javascript and want to pass it to on_demand process...)
    Thanks.
    Mike

    Hi Mike,
    Yes, provided you have set up an Application Item to receive the value you can use this within your PL/SQL code.
    I've detailed what needs doing here:
    http://htmldb.oracle.com/pls/otn/f?p=40042:1
    username/password: guest/guest
    Regards
    Andy

  • Passing a parameter to the swf file

    Is it possible to pass a parameter to flash like:
    myflash.swf?action=show
    Or do I have to use javascript?

    FlashVars:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16417

  • Unable to pass the parameter to other portlet

    Hi,
    I am trying to pass the parameter from one portlet to other portlet using the convention below...
    Example say you have two reports on a page dept and employee. You want to refresh employee report by clicking on
    the dept in the department report in the same page.
    (1) Create the first report based on the query
    SELECT htf.anchor('http://domain/servlet/page?&_pageid=97&_dad=portal_dad&_schema=portal_schema&_mode=3&dept_code='||DEPTNO,DEPTNO) Department,
    dname FROM scott.dept;
    (2) Create a 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) In the the additional pl/sql code section before display page on the 2nd report do this
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    In point (4) I am not getting the value of selected deptno in 'dept_code'. It is always taking the default value as '10'...
    I like to have the quick solution for this so that I can show the demo to my client...
    Thanks in Advance
    Sudheer

    Hi Ali,
    We can add parameterized queries to any TableAdapter (and controls to accept parameter values and execute the query) using the
    Search Criteria Builder Dialog Box. 
    For detail information, please refer to the following article to create a Windows Form to Search Data:
    http://technet.microsoft.com/en-us/library/hbsty6z7.aspx
    In addition, this issue is more related to Windows Form. I would suggest open a new thread in Windows Form forum if you have any more qestions:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    Regards, 
    Elvis Long
    TechNet Community Support

  • Web link to pass the parameter to custom web app then update the field

    Hi,
    I have created the web link in service request object to refer Account Object. I want to let user able to select the account from web link then base on the current SR no and account that have created update the record in CRMOD. My question is how to pass the parameter out to my external web app so that they can update my SR correctly?
    Thank you

    Hi Messer,
    I have put in the syntax as below :-
    https://secure-ausomxega.crmondemand.com/OnDemand/user/AssocAccountPopup?mapBC=Service+Request&OACTRL=Account&ophi=PopupNewForm.Account+Id&pfid=PopupNewForm&OMTHD=AssocPopup&OMTGT=PopupSearchList&assocInit=Y&opht=4&OAOBJ=Service+Request&mapField=Account&ophd=PopupNewForm.Account&ophpd=3&disableclear=Y&ophr=AssocAccountPopup&assocval=&ParentType=Edit
    This pop up screen wil let the user to select the account then i will pass the account and the SR to external web app to update back the CRMOD. I am not too sure the above syntax is correct or maybe can you give some example.
    I am new in CRMOD, hope that you can advice on this.
    Thank you,
    SK

  • How to pass date parameter from one page to other in BSP application

    Hello gurus,
    In my BSP application i have taken an input field and made its type "date" and its value also of type date and have set showhelp .
    Now once a particular date is given as an input i want to pass its value to next page. And in next page i have to fire a query based on the date entered in previous page...
    Now my prb is that my date value is not getting passed to the next page.
    I have used
    navigation->set_parameter( name = 'BEGDA' value = BEGDA ).
    to pass date parameter.....still parameter is not getting passed.
    plz help me with this.....
    thankx.....

    Hi Eddy,
    By truncation i mean the entire date becomes 10 char including the ' . ' eg(06.12.2006).
    so with begda being 8chars it takes my date as 06.12.200
    as a result my query is not getting executed.
    now i have tried to use a FM  'CONVERT_DATE_TO_INTERN_FORMAT'.
    in my 1st page but still in 2nd page its giving me following error.
    <b>The data that was read could not be written to the specified target field during a SELECT access. Either the conversion is not supported for the type of the target field, or the target field is too short to accept the value, or the data is not in the appropriateformat for the target field.
    </b>
    Regards
    Swati

  • How to pass the parameter of a stored procedure to iReport

    Hi... i don't know how to pass the parameter of the stored procedure to the iReport.
    In the Report Query, i tried
    1. sp_storedprocedure ' value'
    2. sp_storedprocedure +''''+$P{parameter}+''''+
    3. sp_storedprocedure +$V+$P{parameter}++$F($F is a variable having a value of ' (a single quote))may you enlighten us please? thank you

    For M$ SQL server I find that it only works when U use the fully qualified name...
    e.g. catalod.dbo.my_procedure_name 'variable'
    My full query in the Report Query window is something like this:
    EXEC arc.dbo.jasper_Invoice 1000
    Note that you may find that selecting from VIEWS / TABLES fails for no apparent reason and iReport will prompt you with the usual very unhelpful (we have what we "pay" for) prompt, stating that "The document is empty".
    To work around this issue, where a statement like "SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id=1000" does not work, simply create a PROC, something like:
    CREATE PROC jasper_MyProc (@my_rec_id integer) AS
    SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id= @my_rec_id integer
    ...to wrap your SELECT statement, then call the PROC
    Edited by: Sylinsr on Apr 22, 2008 4:23 PM

  • Passing one parameter to multiple views

    Is this possible?  I would like to pass one parameter, a date field, to multiple views.  I cannot use it in the record selection, because my views do a mathematical computation which returns a single value, but I only want to select the data for a single day. 
    The problem is that there are several views and I do not want to have to enter the date parameter a dozen times.

    Try to use add command and write the query like this
    select * from view where datefield={?date}
    also create another add command for the other view
    select * from view2 where datefield2={?date}
    for all the queries create the same parameter with the name {?date}
    Regards,
    Raghavendra

Maybe you are looking for

  • Can I split my iTunes library to a new iTunes account?

    We have a family itunes and want to split to give my daughter her own account (with her music).  How do I do it and separate the icloud accounts.

  • Batch doesn't seem to work with Save for Web

    Using Photoshop CS3 on Leopard. This should be simple: I want to create thumbnail images of a folder full of PDFs. I create an action that opens the PDF, opens the first page at a width of 200 pixels, flattens it, Save for Web at 60% quality, and clo

  • Jtextfield new line problem

    Hey guys :-) I seem to have a little problem with my jtextfield, it seems to be ignoring any "\n"'s i tell it to print. The code to setup my jtextfield is below and was created with jigloo for eclipse! fileInputjTextField1 = new JTextField(); this.ge

  • Is there a way I can save a DWF file as a PDF file?

    Is there a way to save a DWF file as a PDF file?

  • Failed to read parameter object using Dynamic Parameter

    Hi All In one of my report I am using dynamic parameter, I tried to publish the report in BOXI and got the following error: "Failed to read data from report file C:DOCUME1...LOCALS1Temp~crw{u2026u2026..-u2026.-u2026.-u2026.-u2026u2026u2026u2026}.rpt.