Javascript combobox

In javascript for the combo box if i prefer onblur, after i selected the item and pressed outside of it, then only particular action is performed.In onchange if i selected the item for first time it works well. but continously i selected it again it is not working properly.
But i need if i select any item in combobox , then particular action to perform,
if i select it how many number of times.
has anybody know the answer. plz help me. thanks in advance.

Dear friend,
I checked it with onChange but it worked for me.
I done with a sample program.
I give you the code below:
<html>
<head>
<script>
function hellooo()
alert("HELLO");
</script>
</head>
<body>
<form>
<select onChange=hellooo()>
<option>HELLO1</option>
<option>HELLO2</option>
<option>HELLO3</option>
</select>
</form>
</body>
</html>Regards,
Rengaraj.R

Similar Messages

  • How can i get the item of combobox in javascript LCD?

    Hi!
    I have a question about javascript in LCD i want to get or assign the item value of a combobox because i need to mapping and i´ve tried using the option
    form1.Page.Contenedor.RadioBtn.rbTipo[1].caption = "nuevotexto";
    form1.Page.Contenedor.RadioBtn.rbTipo[1].rawValue = "nuevotexto";
    and more... but i don´t know if that is possible, could someone help me?
    thank's

    Hi,
    I think you are trying to set the value of a radio button group(???).
    If so, then you first need to look in  the Object > Binding palette to set the bound values.
    Then you can set the value of the radio buttons by referencing the exclusion group and not an individual radio button.
    If you have three radio buttons in an exclusion group 'RadioBtn' and they had bound values of '1', '2' and '3'. Then the following script would select the second button in the group:
    form1.Page.Contenedor.RadioBtn.rawValue = "2";
    If I have picked up your query wrong, then come back with some more info.
    Niall

  • Set PHTML ComboBox Selected Value in JavaScript?

    I've created a combobox as follows:
    <phtmlb:comboBox id                = "sdm_cnis"
      selection        = "<%= L_CIP_DETAILS_WA-GBSCIND %>"
       table             = "<%= l_cnis %>"
       readOnly       = "<%= l_display_mode %>"
       width             = "50px"
       nameOfKeyColumn   = "VALUE"
       nameOfValueColumn = "NAME"
       onClientSelect    = "javascript:sdm_toggle_required();return false;"
       behavior          = "DROPDOWNSELECT" />
    Based on the selected value of another dropdown combobox, I want to use JavaScript to select the value of this comboBox. For example, if the user changes the first comboBox, I want to automatically select the first option in this combobox. I really do not want to use dropdownListBoxes because they are not used anywhere else in our application. I also do not want to make a round trip to the server in order to resolve this issue as our uses will complain too much about that.
    Some other things I've learned/tried:
    I know I can get the selected value as follows:
    sapUrMapi_ComboBox_getSelectedKey('sdm_cnis');
    I have also tried to do the following, which sort of sets the value, but when you pull the list it appears as though the old selected value is still selected:
    window.document.getElementById('sdm_cnisKEY').value = cnis_key;
    window.document.getElementById('sdm_cnis').value = cnis_value;
    Any help is appreciated.
    Rick

    Managed to come up with a solution:
    window.document.getElementById('sdm_cnisKEY').value = cnis_key;
    window.document.getElementById('sdm_cnis').value = cnis_value;
    var o=sapUrMapi_ComboBox_getObject("sdm_cnis");
    o.txt.setAttribute("k",cnis_key);
    o.txt.setAttribute("ks",cnis_key);
    I'm not sure, but I would imagine that this solution is not supported by SAP and any patches or service pack upgrades could potentially break the code, so if you use it, be cautioned about this.
    I have tested it on our server, and it works for my current scenario. That said, if there is a better way to do this in JavaScript, I'd love to hear it. For now, I'll leave the question open and assign full points if someone can come up with something that I feel is better than this (i.e. a JavaScript solution that is supported by SAP).
    Rick

  • Help! I can't create a javascript saveas for radiobox

    First, I want to say thanks for helping.
    I am new to javascript and coding in general, but I feel that I have been learning and picking up the coding from sites like this.  I am making a form using adobe acrobat pro 3D 8.1.0.  I have a combobox that I have a list of a bunch of locations.  The combobox is set to export a 3 or 4 letter or digit result that is unique to that site.  I have then set up a saveas on blur following the selection.  This is all working correctly.
    However, I several hundred radioboxes and textboxes in the document.  This document will be used for acceptance testing and I do not want to accidentally lose any data so I want to save after every selection or input in the textboxes.
    The following is my code for the combobox.
    // build file name
    var site = this.getField("siteName").valueAsString;
    Date.prototype.defaultView=function(){
    var dd = this.getDate();
    var mm=this.getMonth()+1;
    var yyyy=this.getFullYear();
    return String(mm+"-"+dd+"-"+yyyy)
    var today = new Date();
    var gmtHours = -today.getTimezoneOffset()/60;
    var cstHours = today.getUTCHours() + gmtHours;
    if(cstHours<10)cstHours='0'+cstHours;
    var min = today.getUTCMinutes();
    if(min<10)min='0'+min;
    var sec=today.getUTCSeconds();
    if(sec<10)sec='0'+sec;
    var timeStamp=today.defaultView() + "_" + cstHours + "-" + min + "-" + sec;
    var myFileName = site + "_" + timeStamp + ".pdf";
    // add folder name
    myFileName = "/f/file_test/" + myFileName
    myTrustedSpecialTaskFunc(this, myFileName);
    this.getField("docName").value = myFileName;
    I was struggling with the saveas and I don't want to create a new file everytime so I created a hidden textbox that has the file name.  I was hoping that I could just read this textbox and saveas using the original filename.  (The script above uses time in the filename so that would create a new file name every second)  The hidden text box is getting the values correctly and is working fine.
    I have tried several different methods of javascript on the radio buttons and text text boxes.  On the radio button I have tried all mouse options, but I was hoping to use mouse up.  The textboxes I want to use mouse, on blur.   Below is some of the scripts that I have tried.  I want it to be automatic and I want it to overwrite everytime without prompts.
    app.execMenuItem("Save");
    var oMyDoc = <… PDF being operated on …>
    app.execMenuItem("Save", oMyDoc);
    var myFileName = this.getField("docName").valueAsString;
    this.saveAs(myFileName);
    ....and I have tried others, but since they didn't work, I didn't keep track of them.
    I appreciate any suggestions!
    Thanks

    I responded to your other post in the scripting forum.

  • I can't create a javascript saveas for radiobox

    I started this discussion in acrobat windows forum and I think I should have put it here so I'm reposting it.
    First, I want to say thanks for helping.
    I  am new to javascript and coding in general, but I feel that I have been  learning and picking up the coding from sites like this.  I am making a  form using adobe acrobat pro 3D 8.1.0.  I have a combobox that I have a  list of a bunch of locations.  The combobox is set to export a 3 or 4  letter or digit result that is unique to that site.  I have then set up a  saveas on blur following the selection.  This is all working correctly.
    However,  I several hundred radioboxes and textboxes in the document.  This  document will be used for acceptance testing and I do not want to  accidentally lose any data so I want to save after every selection or  input in the textboxes.
    The following is my code for the combobox.
    // build file name
    var site = this.getField("siteName").valueAsString;
    Date.prototype.defaultView=function(){
    var dd = this.getDate();
    var mm=this.getMonth()+1;
    var yyyy=this.getFullYear();
    return String(mm+"-"+dd+"-"+yyyy)
    var today = new Date();
    var gmtHours = -today.getTimezoneOffset()/60;
    var cstHours = today.getUTCHours() + gmtHours;
    if(cstHours<10)cstHours='0'+cstHours;
    var min = today.getUTCMinutes();
    if(min<10)min='0'+min;
    var sec=today.getUTCSeconds();
    if(sec<10)sec='0'+sec;
    var timeStamp=today.defaultView() + "_" + cstHours + "-" + min + "-" + sec;
    var myFileName = site + "_" + timeStamp + ".pdf";
    // add folder name
    myFileName = "/f/file_test/" + myFileName
    myTrustedSpecialTaskFunc(this, myFileName);
    this.getField("docName").value = myFileName;
    I  was struggling with the saveas and I don't want to create a new file  everytime so I created a hidden textbox that has the file name.  I was  hoping that I could just read this textbox and saveas using the original  filename.  (The script above uses time in the filename so that would  create a new file name every second)  The hidden text box is getting the  values correctly and is working fine.
    I have tried  several different methods of javascript on the radio buttons and text  text boxes.  On the radio button I have tried all mouse options, but I  was hoping to use mouse up.  The textboxes I want to use mouse, on  blur.   Below is some of the scripts that I have tried.  I want it to be  automatic and I want it to overwrite everytime without prompts.
    app.execMenuItem("Save");
    var oMyDoc = <… PDF being operated on …>
    app.execMenuItem("Save", oMyDoc);
    var myFileName = this.getField("docName").valueAsString;
    this.saveAs(myFileName);
    ....and I have tried others, but since they didn't work, I didn't keep track of them.
    I appreciate any suggestions!
    Thanks

    George, thanks for the reply.  I am new to coding and I really don't know much about folder level scripts.  However, I did create the following trusted saveas script which I saved as a .js in adobe.  Is this what you are refering to?
    mySaveAs = app.trustPropagatorFunction(function(doc,path) {
    app.beginPriv();
    doc.saveAs(path);
    app.endPriv();
    myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path) {
    // Privileged and/or non-privileged code above
    app.beginPriv();
    mySaveAs(doc,path);
    app.endPriv();
    // Privileged and/or non-privileged code below
    I did try refering back to this script once, but I wasn't able to get it to work.

  • Get Javascript values and use them in a servlet?

    Hey
    I have a HTML which has Javascript scripts which I have to get values from (a array to be exact) and pass them to a servlet so I can process the information in a certain way. I cant seem to find a way to do this properly as the servlet is server side and Javascript is client side. How can I implement this?
    Using a quick example example I have
    C:/index.html
    C:/js/script.js
    Index.html contains:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <script type="text/javascript" src="js/script.js">
    </script>
    </head>
    <body>
    a href="javascript:void(0);" id="add"><img src="images/menunew.png" alt="plus" border="0" />
    /a>
    </body>
    </html>
    Script.js contains:
    var Script = Class.create({
    a:4,
    b:5,
    add: function(){       
    return (this.a + this.b);
    (Ignore syntaxis errors as this is a quick example I wrote up just to see if you can give me a practical example on how to read it.)
    How can from a Java servlet access a and b from the script.js file (which contains a class named Script) and also access the function add which returns that value?
    Thank you for the help
    Edited by: 902756 on 16-dic-2011 0:18

    DrClap wrote:
    902756 wrote:
    1: Yes, it seems like the logically answer but Im not too up on AJAX and even less on mixing it up with servlets. Do you mind giving me a simple add (function) sample or something similar?You are looking at it the wrong way. What you actually want to do is to have the browser send a request (which somehow contains that Javascript data) to a URL which causes the servlet to receive the data. There's no "mixing it up" going on there. The client and the server are entirely separate.
    And since that request would be an HTTP request, it's just text. There's no concept in HTTP of transmitting objects, whether they be Javascript objects or Java objects. Anything you want to transmit has to be converted into text by the sender and converted back into objects by the receiver.
    So there's no such thing as "a simple add function". You're going to have to stop thinking in that way and start thinking of client-server systems in the way they actually are.The thing is I want to start simple to grab a simple concept....
    Im trying a AJAX route and I have the following:
    /index.html
    /js/Adding.js
    Index contains:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
         <title></title>
         <script type="text/javascript" src="js/Adding.js"></script>
    </head>
    <body>
    <select name="num1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    </select>
    <select name="num2">
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    </select>
    <form method="get" name="adding">
    Do
    <span id="res"></span>
    </form>
    </body>
    </html>
    Adding.js contains
    var Adding = Class.create({
    x: null,
    y: null,
    add: function()
         var xmlHttp = new XMLHttpRequest();
         var value1 = document.getElementById("num1").value;
    var value2 = document.getElementById("num2").value;
         xmlHttp.open("GET", "index.html", false);
         xmlHttp.send(value1 + value2);
         var result = document.getElementById("res");
         result.innerHTML = xmlHttp.responseText;
    This shows 2 comboboxes full of numbers and link saying "Do" which calls the javascript function and adds the two numbers in the comboboxs and shows them on the screen without refreshing the page. This does not work and I would like this to work before I continue onto the bigger picture.

  • How to get the values of 2 dynamic comboboxes in one jsp to another jsp?

    I have 2 comboboxes and one submit button on my jsp page.I select a value in 1st combobox then the values in the second combobox populated from the database. next i select 2nd combobox and then submit the button.After submit the button call the next jsp page. In that page i want to display the values of two comboboxes. but my problem is , in that page only 2nd combobox value is displayed.1st combobox is displayed as null. plz tell me, how to get the values of two comboboxes at a time?
    Select.jsp:
    <%@ page language="java" import="java.sql.*" %>
    <%!
         Connection con = null;
         Statement  st  = null;
         ResultSet  rs  = null;
         String     sql = null;
         void addItems(javax.servlet.jsp.JspWriter out, String sql)
           try{     
              rs = st.executeQuery(sql);
              while( rs.next() )
                   out.println("<option>" + rs.getString(1) + "</option>");               
         }catch(Exception e)
                   System.out.println(e);
    %>
    <HTML>
    <HEAD>
    <TITLE>JSP WITH  MULTIPLE FORMS</TITLE>
    <script language="javascript">
              function checking()
                        form1.submit();
         </script>
    </HEAD>
         <body>
             <center>
             <b><font size="5" color="#333399">Staff ID:</font></b></center>
                     <FORM NAME="form1" METHOD="POST" ACTION="Select.jsp">
                         <p align=center>
                         Details of Staff :  
                       <SELECT 1 NAME="type" onchange="checking();">
                                    <option> Administrator </option>
                              <option> OfficeAssistent </option>
                              <option> Clerk </option>
                                  </SELECT 1>
                          </p>
    </FORM>
                      <FORM NAME="form2" METHOD="POST" action="welcome1.jsp">
                      <center>
                          <TABLE><TR><TD>Staff ID:</TD>
                                 <TD><SELECT 2 NAME="staff_id">
                    <%    
            String type = request.getParameter("type");
            try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            con = DriverManager.getConnection("jdbc:odbc:java","system","manager");
            catch (ClassNotFoundException ex) {
                   System.out.println(ex);
            catch (SQLException ex)
                System.out.println(ex);
         st  = con.createStatement();
         sql = "select staff_id from "+type+"";
         addItems(out, sql);
    %>
              </SELECT 2>
           </TD>
         </TR>
    </table></center>
    <h2> Details of <%= type + "s" %> </h2>
                         <center><input type=submit value=ok onclick="submit();"></center>
                  </FORM>
         </BODY>
    </HTML>
    welcome1.jsp
    <center><h1>WEL COME</h1></center>
    <%    
            String type = request.getParameter("type");
            String sid = request.getParameter("staff_id");
    %>
    <h2> Details of <%= type + "s" %> </h2>
    <h2> Details of <%= sid %> </h2>

    <SELECT 1 NAME="type" onchange="checking();">
                                    <option value = "0"> Administrator </option>
                              <option value = "1"> OfficeAssistent </option>
                              <option value = "2"> Clerk </option>
                                  </SELECT 1>

  • How to display the values stored in the database in the combobox on load?

    I am develping one application where in
    I wanted to display the values in the combobox which I am taking from the database and in the same form passing that value in same form after selecting it,My program is running fine for the first time but next time it is giving me NullPointerException.
    So can anyone tell me please how I should develop the this application to avoid this exception?
    Thank You
    Praddy

    Thanx a lot for showing interest in answering my query.I am pasting my code for ur reference.Please try to reply ASAP.
    Thank You,
    Praddy.
    CODE:
    ======
    <html>
    <head>
         <script language="javascript">
              function submitthisform(thisForm)
                   thisForm.submit();                    
         </script>
    </head>
    <body>
    <form method=post name=samepgm>
    Select City:     <select name=city onChange='submitthisform(samepgm)'><br><br><br>
    <option value=''></option>
    <option value='All'>All</option>
    <%@ page language="java" import="java.sql.*" %>
    <%
              String scity = request.getParameter("city");
              System.out.println(scity);
              Connection con = null;
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con = DriverManager.getConnection("jdbc:odbc:property","","");
              Statement st = con.createStatement();          
              ResultSet rs1 = st.executeQuery("select distinct hcity from housefinance");
              while(rs1.next())
                   //String ohname = rs1.getString("hname");     
                   String     ocity = rs1.getString("hcity");     
                   //out.println(ohname +"<br>");
                   out.println(ocity +"<br>");
    %>
    <br><br><br><option value='<%=ocity%>'><%=ocity%></option><br>
    <%               }
                   rs1.close();
              if(scity.equals("All"))
              ResultSet rs2 = st.executeQuery("select * from housefinance");      
              while(rs2.next())
                   String     ohname = rs2.getString("hname");     
                   String     ohadd1 = rs2.getString("hadd1");
                   //String ohadd2 = rs2.getString("hadd2");
                   String     ohcity = rs2.getString("hcity");
                   String     ohpcode = rs2.getString("hpcode");
                   String     ohtelno = rs2.getString("htelno");
                   String     ohfaxno = rs2.getString("hfaxno");
                   String     ohemail = rs2.getString("hemail");
                   String     ohmobile = rs2.getString("hmobile");     
    %>
    <pre>
    <tr>
    <td><p>Company          :     <%=ohname%> </p></td>
    <td><p>Address          :     <%=ohadd1%></p></td>
    <td><p>City          :     <%=ohcity%> </p></td>
    <td><p>Pin          :     <%=ohpcode%></p></td>
    <td><p>Telphone          :     <%=ohtelno%></p></td>
    <td><p>Fax No:          :     <%=ohfaxno%></p></td>
    <td><p>Email          :     <%=ohemail%></p></td>
    <td><p>Mobile No.     :     <%=ohmobile%></p></td>
    </tr>
    </pre>
    <%
              else
    ResultSet rs = st.executeQuery("select * from housefinance where hcity like '%"+scity+"%'");
              while(rs.next())
                   String     ohname = rs.getString("hname");     
                   String     ohadd1 = rs.getString("hadd1");
                   //String ohadd2 = rs.getString("hadd2");
                   String     ohcity = rs.getString("hcity");
                   String     ohpcode = rs.getString("hpcode");
                   String     ohtelno = rs.getString("htelno");
                   String     ohfaxno = rs.getString("hfaxno");
                   String     ohemail = rs.getString("hemail");
                   String     ohmobile = rs.getString("hmobile");     
    %>
    <tr>
    <td><p>Company          :     <%=ohname%> </p></td>
    <td><p>Address          :     <%=ohadd1%></p></td>
    <td><p>City          :     <%=ohcity%> </p></td>
    <td><p>Pin          :     <%=ohpcode%></p></td>
    <td><p>Telphone          :     <%=ohtelno%></p></td>
    <td><p>Fax No:          :     <%=ohfaxno%></p></td>
    <td><p>Email          :     <%=ohemail%></p></td>
    <td><p>Mobile No.     :     <%=ohmobile%></p></td>
    </tr>
    <hr>
    <%               }
    %>
    </select>
    </form>
    </body>
    </html>

  • Need a JavaScript to enable/view Multi-line option for Text fields.

    Hello All,
    I need a JavaScript to enable/view Multi-line option for all the Text fields in PDF Form.
    Assume that I have a PDF form of Fields from F1 to F100 and it contains 25 Checkboxes, 25 Combo Box and 50 Text Fields. Now i need a javascript for which i need to enable Multiline for only Text Fields. So Is there any JS for which i can enable the Multiline option for only Text fields and not for ComboBox or Checkbox.

    Hi timo,
    Thanks for your help. iam trying to use the iteraor approch to do this. but i don't know how to fetch the data entered in the form that was built by the iterator. can you please tell me .
    thanks

  • Populating other fields in a form based on the selection in a combobox field

    We have done a form(masterdetail) in which we have a combobox field.When we make a selection in the field we require some two other fields to be automatically populated retrieving data from a table(which has the details required) based on the selection made.For eg. Selecting emp id(combobox) should populate empname and salary automatically in the form.Is this possible?If so how can this be done?
    Thanks & Regards,
    Jayanthi.S

    This is what I did following Michael's suggestion and it works fine :-
    1> Created a dynamic LOV named LOV_EMPNO as:-
    select empno,empno from scott.emp
    2> Started creating a form named FORM024_EMP2 on scott.emp.
    3> On reaching the Formatting and Validation section, I chose the EMPNO field in the left frame.
    In the right frame for EMPNO, I changed the item-type to Combobox and selected the lov LOV_EMPNO.
    Then I went to the Javascript handler section for EMPNO, chose the Javascript event onChange and in the
    adjacent Textarea, I wrote:-
    popdetails(this);
    We will create the javascript function popdetails() in the Additional pl/sql section.
    4> Click next and goto the Additional PL/SQL section and I wrote the following code in
    "...after displaying the page" area.
    (You can write this either in
    before displaying the page,
    before displaying the form,
    after displaying the form,
    after displaying the page).
    declare
    type tvcarr is table of varchar2(2000) index by binary_integer;
    l_empno_arr tvcarr;
    l_ename_arr tvcarr;
    l_sal_arr tvcarr;
    begin
    select empno,ename,sal
    bulk collect into
    l_empno_arr,l_ename_arr,l_sal_arr
    from scott.emp;
    htp.p('
    <script>
    var empdets = new Array();
    empdets[0] = new Array("","");
    for i in 1..l_empno_arr.count
    loop
    htp.p('empdets['||l_empno_arr(i)||'] = new Array("'||l_ename_arr(i)||'","'||l_sal_arr(i)||'");');
    end loop;
    htp.p('
    function popdetails(ele)
    var val = new Number();
    var thisform = ele.form;
    val = parseInt(ele.value);
    if (isNaN(val))
    val = 0;
    for (var i = 0; i < thisform.length; i++){
    if (thisform.name == "FORM024_EMP2.DEFAULT.ENAME.01")
    thisform[i].value = empdets[val][0];
    else if(thisform[i].name == "FORM024_EMP2.DEFAULT.SAL.01")
    thisform[i].value = empdets[val][1];
    htp.p('</script>');
    end;

  • Using javascript to redirect a form in portal to a report

    Hi. I am trying to call a report or a dynamic page from a form I created. When I select the query button I want it to show the report or dynamic page based on the parameters I passed in the URL. I have the following javascript functions that get the parameters from the comboboxes.
    Additional PL/SQL Code... before displaying the page.
    htp.p('<script language="JavaScript">');
    htp.p('function getItemInst(form,targetInst)');
    htp.p('{var objname;');
    htp.p(' var selectedInst;');
    htp.p(' for(var j =0; j < form.length; j++)');
    htp.p(' { objname = form.elements[j].name.split(".");');
    htp.p(' if(objname[2] == targetInst)');
    htp.p(' { selectedInst = form.elements[j].value;');
    htp.p(' return selectedInst;');
    htp.p(' }');
    htp.p(' }');
    htp.p('}');
    htp.p('function getItemCip(form,targetCip)');
    htp.p('{ ');
    htp.p(' var objname;');
    htp.p(' var selectedCip;');
    htp.p(' for(var j =0; j < form.length; j++)');
    htp.p(' {objname = form.elements[j].name.split(".");');
    htp.p(' if(objname[2] == targetCip)');
    htp.p(' { selectedCip = form.elements[j].value;');
    htp.p(' return selectedCip;');
    htp.p(' }');
    htp.p(' }');
    htp.p('}');
    htp.p('</script>');
    When I click the query button it uses this code:
    using a query button->onclick javascript event handler
    var v_inst = getItemInst(this.form, "INST");
    var v_cip_course = getItemCip(this.form, "CIP_COURSE");
    var exec_url = "http://"+window.location.hostname + "/pls/portal/MAJOR_APP.PROGRAMOFSTUDYSEARCHRESULTS.show?p_arg_names=p_cip_course&p_arg_values="+v_cip_course+
    "&p_arg_names=p_inst&p_arg_values="+v_inst;
    window.location.href=exec_url;
    My problem is that it doesn't use the new url I created and go to the report. It just refreshes the form page I created. I am I missing a step or something?
    Thanks ;)

    Maybe you could try it like this... I saw this question answered not too long ago.
    Submit Portal Form Values to Portal Report

  • Problem in popultating combobox based on input from another combobox

    i have there combo boxes when i select the first combobox ,based on the input given it must populate the second and based on the input in second combo box it must populate the third one.1->2->3.
    Actually i am having a javascript when i select the data in first combo box the information is sent to specified jsp page with parameter using onchange function and the second combo box is poplated based on the first but the third combo box in not populating based on the second.
    here is my code:
    jsp:
    <select name="recrClient" class="selectBox" id="recrClient" onchange="htmlData('BSTSRecuritmentContacts.jsp', 'client='+this.value);">
    javascript
    function stateChanged()
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    document.getElementById("contacts").innerHTML= xmlHttp.responseText;
    else
    //alert(xmlHttp.status);
    // Will populate data based on input
    function htmlData(url, qStr)
    if (url.length==0)
    document.getElementById("contacts").innerHTML="";
    return;
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    alert ("Browser does not support HTTP Request");
    return;
    if (url=="BSTSRecuritmentContacts.jsp")
    url=url+"?"+qStr;
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
    if i use the same method populating the third combo box, this is not working
    please reply me and thanks in advance

    Hi there,
    What about this:
    Create a multicube with 0PA_C01 and 0PE_C01 and then you create one key figure with the total of employes (that comes from 0PA_C01) and another key figure with the total number of employes that had training (that comes from 0PE_C01) and finally you create a calculated key figure at query level that subtracts the first key figure by the second, i.e., the total number of employees - the employees that had training.
    Diogo.

  • How to assign a name to the combobox in a report

    Hey guys! I hope you're fine and still have some energy left for another question!?
    I have a report with several columns. Column f03 is displayed as a text based on an LOV and linked to the database. Now I need to give that combobox in column f03 a name so I can use it in a Javascript query in order to deactivate the combobox conditionally.
    Do you have an idea how this can be achieved?
    Many thanks,
    Sebastian

    If it returns the same ID for each row then there might be a way to use it in further coding! Great!!!
    ID is unique. Every item and tag should have unique ID in HTML document.Elements may have a [valid ID|http://www.w3.org/TR/html401/types.html#type-name] [that +must+ be unique within a document|http://www.w3.org/TR/html401/struct/global.html#adef-id].
    An attribute that "returns the same&hellip;for each row" would be *class*. This can be specified in APEX_ITEM calls using the p_attributes parameter:
    apex_item.select_list_from_lov(
        3
      , null
      , 'EMP_LOV'
      , 'class="combobox"')

  • Accessing JavaScripts in Share Components

    Hi.
    I am trying to access/use a javascript I created under the path in portal:provider--&gt;shared components--&gt; javascripts. I called this function "test".
    The Javascript works when I test it, but when I try to call the function "test" from an onChange() event handler portal can't find the function. When I view source the javascript function isn't loaded into the source.
    I am calling the function from the onChange event handler like so: test();
    Is there a specific way in which I have to call the shared components javascripts from an onChange event handler?
    I know I can add my javascript function to the pl/sql additional code page using htp.p('...'); but I would really like to keep it in the share components so the code is accessible to everyone.
    Any suggestions would be greatly appreciated. :)
    Thanks,
    McKell

    Thanks for the reply. I appreciate your input.
    You mentioned the shared components where available for form level and field level validation. Can I use the javascript in the shared components for a combobox?
    Thank you again,
    McKell

  • Af:query how to control the query combobox and change it's label text

    My colleague designed a well working af:query search page with several selectable predefined queries. Now it's up to me to control this combobox from outside the component with big colored buttons for user convenience. If the user clicks on one of the big buttons, the assigned item of the combobox is selected and then the query is submitted.
    I though about doing this with javascript, but the difficulty is, that I have no idea and didn't find a way to reference the id of the combobox? The combobox is a 'built in' component in he af:query component and there is no way to give it an id in the properties.
    The second problem is that I didn't find a way to change the label text of the combobox. It seems to be hard coded?
    Thanks in advance for your suggestion!

    Hi,
    the text should be coming from a message bundle and some other look and feel related elements should be settable through skinning in CSS
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/skin-selectors.html
    search for af|query
    Regarding the JavaScript access, use firebug JS debugger. The af query class is AdfRichQuery.js
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/js_docs_out/AdfRichQuery.html
    Note however that you should be able to do in Java what you are aimning for in JavaScript. However the usecase you want to implement is not fully clear to me - to be honest
    Frank

Maybe you are looking for