How to pass parameter from javascript to applet ?

i have some parameters from form in html,
and i would like to pass from javascript to an applet,
(which a type of calling method in applet from javascript)
and get back data from applet to display in html
how could i do this ?

in my program,
i pass 3 string to the applet
var reply = document.test.called(ft, fc, tc)
in the fucntion "called" in the "test" applet
i simply test it by
public String called(String l, String from, String to){
return "abcd";
but the result should the value return is "1"
can anyone help me ?

Similar Messages

  • How to   Pass Parameter from BIP  to Dashboard  Report

    Hi,
    Parameter from BIP to Dashboard Report
    If I select BIP report paremeter should pass value to dashboard report
    thanks in advance.
    CHEERS ,
    Jel

    Hi Saichand,
    I hav gone through above link its passing values from Dashboard prompt to BIP report only..
    just i need like reverse (if i click on BIP report value then it should pass that value to Dashboard reports) in this this case how to pass parameter from BIP to dashboard report
    Thanks in advance
    Cheers,
    Jel

  • How to pass parameter from 1 stored procedure to another stored procedure inside crystal report

    Hi
    I have several stored procedure in my Crystal Report. I am wondering if it is possible for me to pass a parameter to one of the stored procedure and to use the result of that stored procedure E.g. CustomerCode. To another 2 stored procedure to generate the report dynamically?
    I have 3 stored procedure
    The 1st one is used to gather information and process the calculation
    another 2 stored procedure is used for generate the graph and both of them required to take 2 parameters. The 1st stored procedure will require 1 parameter (E.G. Reference Code) and will return a set of information including the data that could be use on the other 2 stored procedures.
    After I added these 2 stored procedure, it requires me to pass 3 parameters to the report. I would like to know if I could only pass the Reference Code for stored procedure 1 and use it to retrieve the information for the other 2 parameter?
    Thanks in advance
    Chi

    Hi Chi
    To pass parameter from 1 stored procedure to another stored procedure, you will have to create sub report. In your case you will have to create 2 sub reports for 2nd and 3rd stored procedure and link those sub reports with the main report using Reference Code field in order to pass the values.
    After creating the report when you will refresh the report, it will ask 4 parameters, one parameter for main report, one for the first subreport and two for second subreport to fetch the data correctly.
    Regards
    Poonam Thorat.

  • How to pass parameter from form6i to report6i

    when i passed parameter from form6i to report6i, while previewing report the data was not displaying only fields heading was displaying, but in report6i there is a parameter form thru that it was displaying data, but thru form6i to report6i it was not. Please kindly help me and give me the some sample or example of it.
    Thanks
    Best regards
    Zaheer

    ADD_PARAMETER(pl_id,'P_SCRIPT',TEXT_PARAMETER,:b1.script);

  • Pass parameter from javascript to backing method

    Hello professional ,
    i have an ADF (JSF page) there is news bar on it when the user click on any news link i want to pass the news parameter to backing method .
    The problem is how can i pass javascript value to commandLink jsf tags to setActionListener sub Tags:
    <tr:commandLink id="openNewsActionLink"
    text="#{screenLabels.NEWS_DETAILS}"
    inlineStyle="display:none; visibility: hidden;"
    action="#{publishedNewsBackedBean.openNewsDeatilsAction}">
    <tr:setActionListener from="6"
    to="#{publishedNewsBackedBean.selectedID}"/>
    </tr:commandLink>
    i want to pass the from value from java script code how can i do it and if i can not do it directly what is the work around for it.
    Regards
    Mohd79

    Hi,
    assign an ID to the inputText and use the JavaScript Document Object Model to access it. Also use a good browser with good DOM source viewer to browse the HTML page your JSP creates at runtime Firefox and Chrome have good source viewers.
    there are truckloads of JavaScript examples on the Internet.
    Or as Frank said if you get the setActionListener working properly you can easily copy a value from one input value binding to another.
    Brenden

  • Passing data from JavaScript to Applets (Error when trying to pass data)

    Hi,
    I've wrote a small applet for lists but when I try to pass data from my
    JavaScript to my applet, I get an "Error: Object doesn't support this property or method". I get this error with a select other sites including the page I'm writing, leading me to believe I may not have installed requried files or set required options. I've included the listing of the code snippet where the error occurs.
    document.listApplet.testMethod()OR when I use:
    document.applet(listApplet).testMethod()The applet is loaded by this statement:
    <OBJECT CODE="CustomAppletList" NAME="listApplet" ID="listApplet" WIDTH="1000" HEIGHT="600"></OBJECT>and loads fine but no data is passed through it's public methods. Can anyone suggest ideas how I can successfully pass data from my JavaScripts to my applets?
    Devyn

    this should work for you. In your javascript do this.
    var myApplet=document.listApplet;
    myApplet.testMethod()
    If you need more help let me know.
    Paul

  • Passing data from Javascripts to Applets

    Hi,
    I've wrote a small applet for lists but when I try to pass data from my
    JavaScript to my applet, I get an "Error: Object doesn't support this property or method". I get this error with a select other sites including the page I'm writing, leading me to believe I may not have installed requried files or set required options, though I've checked my settings . I've included the listing of the code snippet where the error occurs.
    document.listApplet.testMethod()OR when I use:
    document.applet(listApplet).testMethod()The applet is loaded by this statement:
    <OBJECT CODE="CustomAppletList" NAME="listApplet" ID="listApplet" WIDTH="1000" HEIGHT="600"></OBJECT>and loads fine but the error persists when attempting to call public method in my applet. Can anyone suggest ideas how I can successfully pass data from my JavaScripts to my applets?
    Devyn

    Hi,
    Thnx for the reply. I've tried as you suggested and modified my <OBJECT> line to:
    <OBJECT CODE="CustomAppletList.class" NAME="listApplet" ID="listApplet" WIDTH="1000" HEIGHT="600">
    <PARAM NAME="scriptable" VALUE="true"></PARAM>
    </OBJECT>But the error persists. I'm using IE6. I did not have such errors with IE5.
    I use the following code to test the applet tag I assigned at each step:
                        if (document.listApplet) {
                             document.write ("Applet Object (document.listApplet) exists.")
                        } else {
                             return
                        if (document.listApplet.object) {
                             document.write ("Applet Object (document.listApplet.object) exists.")
                        } else {
                             return
                        if (document.listApplet.object.testMethod) {
                             document.write ("Method textMethod() in applet has been validated and exists!")
                        } else {
                             document.write ("[2]")
                             return
                   document.write ("[11]")The debugging info from this code at the end of the html document I'm writing is:
    [1]Applet Object (document.viewer) exists.Applet Object (document.viewer.object) exists.[2][11]
    Devyn

  • How to pass password from jsp to Applet

    Hi ,
    I can pass the user to applet like below. But password will be seen from view source.
    How can pass password without showing in the view source.
    <PARAM NAME="loginname" VALUE="<%=request.getParameter("loginname")%>">
    <PARAM NAME="loginpassword" VALUE="<%=request.getParameter("loginpassword")%>">
    Thanks in advance.
    Rockesh

    Or alternatively, determine why you need to pass the password on to the Applet.
    For example, if the Applet needs to log into a resource, it is much more secure to ask the user for a password then, as opposed to getting the password from a form, passing it on to the Applet and then having the Applet blindly relay the password to the server, the database, whatever.
    If the Applet doesn't need to do anything with the password, then I must question the wisdom of passing on the password in the first place.
    If the Applet uses the password to do authentication, then the best solution is to generate hashes of the password and compare those hashes as needed. This would make it much more difficult for someone to either eavesdrop on it, or guess it through random trial and error. We can take it one step further. When the JSP code is executed - generate a one time unique password that's extremely long, at least 128 characters. Embed the password in the resulting HTML page as a hidden field and seed the Applet with the password. That would tie the Applet to a particular web page.
    I really like SpinyNorman's JavaScript, but if that's indeed your purpose, you might as well do it in the Applet itself. In other words, it's kind of pointless to ask for a password in order to launch the Applet - once the user gets the Applet's URL by some means, he can just bypass the JavaScript authentication.

  • How to pass parameter from FM to report without changing interface of FM

    Hello experts,
    How can I pass a table name from a FM to the report calling the FM, without changing the existing interface of the FM.
    Thanks,
    Ajay.

    Hi,
    I f you want to pass any parameter from FM to Report or Vice-versa, parameter should me maintained in the FM otherwoise you can't pass any other than existing parameters.
    Otherwise create a custom FM.
    Regards,
    Sunil

  • How to pass parameter from unix to oracle

    Hi all,
    Kindly need your help regarding to this problem
    for i in `ls *.dat*`
    do
    echo "File $i"
    sqlplus -s $conn <<END
    set echo off
    set termout off
    set feedback off
    set verify off
    set showmode off
    set pagesize 0
    set recsep off
    spool file_$day
    select nvl((select file_name from abc where file_name=$i),'Files Not Found') from dual;
    spool off
    exit
    END
    done
    I need to pass parameter to the select statement but it failed. The error is
    select nvl((select file_name from abc where file_name=),'Files Not Found') from dual
    ERROR at line 1:
    ORA-00936: missing expression
    It seems like the parameter didnt passed to the query. Need everyone helps. Urgent!
    Many thanks
    Tiiim

    I would have helped you had you not been abusive and called your request urgent. If it is truly urgent call an ambulance or the fire department or Oracle Support.
    We are volunteers and your request is no more important, or urgent, than that of anyone else here.
    An apology would be appropriate.

  • Passing Parameter from javascript to Servlet

    hi,
    I have 2 list boxes in my Jsp page and values for these list boxes are preloaded . These things are to be carried out using javascript onload() function.
    So now i want to pass the selected parameters from both the list boxes to servlet and have to display the corresponding resulting datas in same JSP page. if i submit the form then values selelcted by the user will reset because the form has onload() function. then i thought hidden field will solve my problem. but its giving error like nullpointer exception.
    so please tell me how to achive this.

    When you right a new Option(...) line in javascript, there are three parameters you can give:
    Option("text", "value", selected);
    How you make use of this depends on how you move from the servlet back to the JSP.
    So for example, if you are doing a response.sendRedirect in the servlet, you will either have to add a parameter back to the url you are re-directing to, or add the value to the session. (I like the session method myself... hides it from the user)
    //in servlet
      public void doGet(...)... {
        String country = request.getParameter("country");
        String state = request.getParameter("state");
        //... Do Stuff ...
        HttpSession session session = request.getSession();
        session.setAttribute("country", country);
        session.setAttribute("state", state);
        String sendTo = response.encodeRedirectURL("theForm.jsp");
        response.sendRedirect(sendTo);
      //... The JSP might look like this now...
      //Get the selected values from the session:
      <%
        String countrySelected = (String)session.getAttribute("country");
        String stateSelected = (String)session.getAttribute("state");
      %>
      <html>
      <head>
      <script type="text/javascript">
      /* Use this to store the values for states in JavaScript */
      var state2DArray;
      /* Javascript function to set up values for the states  and countries */
      function initSelects() {
        <%
          /* This is JSP scriptlet code to get the country list that we need... */
          List countries = (List)application.getAttribute("countryList");
        %>
        countrySelect = document.form.country;
        <%
          /* This is JSP scriptlet code to loop through the countries and assign
           * values as needed.  We will break out of scriptlets to print out
           * the javascript needed to assign values to the countrySelect and to
           * the state2DArray
          int countryCount = countries.size();
        %>
        state2DArray=new Array(<%=countryCount+1%>);
          state2DArray[0] = new Array(1);
          state2DArray[0][0]="--Select A State--";
        <%
          for (int co = 1; co <= countryCount; co++) {
            Country country = (Country)countries.get(co-1);
            List stateList = country.getStates();
            int stateCount = stateList.size();
        %>
        //Now we add a true/false if the country should be selected...
        countrySelect.options[<%=co%>] = new Option("<%=country.getName()%>","<%=country.getId()%>",
                                                    <%= (country.getId() == countrySelected)%>);
        state2DArray[<%=co%>] = new Array(<%=stateCount+1%>);
        state2DArray[<%=co%>][0] = "--Select A State--";
        <%
            for (int st = 1; st <= stateCount; st++) {
              String stateName = (String)stateList.get(st-1);
        %>
        state2DArray[<%=co%>][<%=st%>] = "<%=stateName%>";
        //We are going to call the fillInStates now at the end of initSelects so the initial
        //values are passed on to the states...
        fillInStates(countrySelect);
        <%
        %>
      function fillInStates(countrySelect) {
        selectedCountry = countrySelect.selectedIndex;
        stateCount = state2DArray[selectedCountry].length;
        stateSelect = document.form.state;
        stateSelect.options.length = 0;
        for (state = 0; state < stateCount; state++) {
          //Again add true/false if it should be selected...
          stateSelect.options[state] = new Option(state2DArray[selectedCountry][state], state2DArray[selectedCountry][state],
                                                  <%= (stateSelected == state2DArray[selectedCountry][state]) %>);
    </script>
      </head>
      <body onload="initSelects()">
      <form name="form" id="form" action="#" method="get">
        <select name="country" id="country" onchange="fillInStates(this);">
          <option value="">--Select A Country--</option>
        </select>
        <select name="state" id="state">
          <option value="">--Select a State--</option>
        </select>
      </form>
      </body>
    </html>

  • How to pass value from Javascript function to a Java class method

    Hi All,
    I want to pass a value, which I catch in a Javascript function to a method in a Java class. I have tried many combinations but it gives me error.
    This is the way I am doing
    function assignBill() {
    proj = projPh.substring(0,indSlash);
    <% myproject.getProj(" project_cd = '" + proj + "'");%>
    proj is the variable which I want to pass to getProj methods.
    If any one has done this, please let me know. Thanks for your help.
    Ritesh Mehta

    The only way to receive something from clients page is to submit it somehow: through a form or link, but the info has to make it back to the server obviously. I dont know how your app works, but you can use the the javascript -location.href- function(i think) to submit the var to the server and process it there.

  • How to pass value from Javascript function to JSP ?

    hi,
    hello i have 2 jsp page and one external javascript page.
    from page 1.jsp
    i am calling a fuction named fun(1).and i am passing that value to external
    javascript page
    from external javascript.js
    i am getting this value in the fun(w) and sending this Page2.jsp like this
    var url = "page2.jsp?id ="+w;
    http.open("get","page2.jsp?id ="+w );
    and in page2.jsp
    i am getting that value like
    String k = request.getParameter("w");
    but this is showing error. how cloud i get that value on this page2.jsp ?
    plz any one help me to study this
    regards
    Vishnu Sankar S

    hello sir
    thank u very much..i got the output
    Message was edited by:
    vishnu_shankar

  • How to pass parameter from one form to another

    Hi,
    I have created a form based on a procedure . Now i want to pass a filed value from this form to another form . How can i do this.
    How can i pass a vlue from one form to another form in oracle portal.
    Thanks

    At last - I've managed to get this to work! Is this documented anywhere at all - I just guessed it based on other people's code!
    OK, to prove the example here is what I did:
    I have a form referencing the DEPT table.
    I created a item called 'Search' and of type button.
    I created a 'custom' PL/SQL block and added the following code:
    declare
    v_deptno NUMBER;
    begin
    v_deptno := p_session.get_value_as_NUMBER(
    p_block_name=> 'DEFAULT',
    p_attribute_name => 'A_DEPTNO');
    PORTAL30.wwa_app_module.set_target('http://server/pls/portal30/app_schema_name.EXAMPLE_SQL_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values= 25&p_arg_names=_portal_max_rows&p_arg_values=25&p_arg_names=DEPTNO&p_arg_values='&#0124; &#0124;LTRIM(TO_CHAR(v_deptno)),'CALL');
    end;
    Note: you need to reference the column with an 'A_' prefixing the columm name.
    I left the name 'DEFAULT' as it is.
    OK so I set this to a variable and now want to call a Report called EXAMPLE_SQL_REPORT which was created with the following code:
    select * from scott.emp where deptno = :deptno;
    The bind variable being the custom parameter for the report.
    I called the new report with the PORTAL30.wwa_app_module.set_target procedure and put in the full URL path (in this example) of the server and report.
    I hope this helps!
    John
    null

  • How to pass parameter from xcelsius report to WebI report

    Hi,
    I have a pie chart in xcelsius. When user clicks on one of the slices of the chart I want to pass the selected slice value to a WebI report.
    For this I am doing following steps
    1. When user clicks on a chart slice the selected slice value will be written into a cell say B1
    2. Create a URL button which will get triggered on change of the value of cell B1.
    3. Set the URL value in the cell say C2. Here I am using Opendoc function to open Webi report.
    If I enter following value in C2 and run the report it works fine and opens the desired webi report.
    ="http://myServer.xyz.com:9001/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sType=wid&sDocName=MyDoc&sReportName=MyReport&sWindow=Same&sRefresh=Y&lsSCompany=MyCompany&lsSDecision="  &$B$1
    here I am Passing two parameters Company and Decision.
    Now I want to make this report run in all the environment so I changed the actual path of server( myServer.xyz.com:9001) to following
    ="../../opendoc/openDocument.jsp?sType=wid&sDocName=MyDoc&sReportName=MyReport&sWindow=Same&sRefresh=Y&lsSCompany=MyCompany&lsSDecision="  &$B$1
    but if I do this it gives me following error in Webi:
    "Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address."
    Is there any other way to open the WebI report from xcelsius?

    Hi Peter,
    the link provided refers to Xcelsius V4.5.
    In Xcelsius 2008 you have to control Flash Vars in the Data Manager.
    Go to the Data Manager, Add the Flash-Var Connection Type, Select CSV-FlashVar and define a name and a range.
    But i am not sure if Xcelsius Engage can handle FlashVars, because i am only working with Enterprise.
    Please take a look at your manual.
    For sure there are other ways to import data during runtime. Take a Look at the Connections provided by Data Manager. (e.g. QaaWS, SSRS, LiveOffice, Webservices, ...)
    Also take a look at the link below. It might be another nice option for "pseudo" data connectivity
    http://labs.businessobjects.com/xcelsiuspublishing/default.asp
    Best Regards
    Ulrich

Maybe you are looking for

  • Iphoto6-an error occurred while updating one of your files (book order)

    when trying to order a book the book is assembled but then i get the above error message. it also says please check your network connections and click retry to resend your file. driving me nuts. network connection is fine. i have successfully ordered

  • Sequence Preview Presets or Codec?

    I have a project I created on Premiere CS5, but I want to complete it on CC 2014 using my new MacPro at work. Every time I try to open the file, I get this error: This project contained a sequence that could not be opened. No sequence preview preset

  • Struts validator framework

    i need script to validate more than two fields using struts validator ,it is possible

  • User exit to be triggered for PR05 when click on display/change/create

    Hi, If there a user exit or BADI that is triggered when I click on display / create / change a respective line of trips in transaction code PR05? I tried the following user exit but non is triggered when i click on the said button ( display / change

  • Mac OS Upgrade to Lion

    My partner is upgrading to Lion from Mac OS 10.4.11. Her Mac has 2 ghz processor and 1 gig SD Ram which I think is not enough? Could someone please give me the roadmap to upgrade. This is the system data. Any assistance greatly appreciated. Sanhug Mo