Tabular Form : Select list : onchange event

I need a method / example to apply an Onchange event to a Select List in Tabular form.
Whenever an item from the select list is selected, the data from other column of the same or different Table should get displayed,
in a Textfield of the Tabular form.
Yogesh

Hi,
Here is one example
http://apex.oracle.com/pls/otn/f?p=31517:176
Br, Jari

Similar Messages

  • Tabular form (select list Query based LOV)

    Hi all,
    I have this situation:
    a tabular form with two "select list (query based LOV)" fields.
    The first one must affect elements in the second one. And so the second query based LOV field should has a "where attr1 = first_list_selected_value" in the query.
    Is this possible ? Could you show me some advices ?
    thanks in advance.

    OK, thank you.
    But maybe I wasn't too clear.
    I need cascading LOV for each row of my tabular form.
    I have a EMP tabular form
    select
    "ROWID",
    "EMPNO",
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    "DEPTNO"
    from "#OWNER#"."EMP" I need a Select List for DEPTNO for each record of table. After set a value, the second "Select List" for ENAME should be affected automatically.

  • Select list - Onchange event

    I want to add an onchange event in a form for a Select list.
    For that i had written two javascript functions and two application process.
    In HTML Form Element Attributes of the Select List, I had written the following :
    style="font-family:Franklin Gothic Medium;font-size:12px;width:160px";onchange="f_bomqty()";onchange="f_rmc();"
    But, when change the Select List item, the onchange event happens for obly the first function ie. onchange="f_bomqty()";
    Please suggest, whether anything is wrong in In HTML Form Element Attributes ?
    Can we populate two Textfields at the same time, for an Onchange event of a select list ?
    Yogesh

    No change. Please check if anything is wrong in javascripts and application process.
    The javascript code and application process are as follows :
    Javascripts
    <script language="JavaScript" type="text/javascript">
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function f_bomqty()
    var lVal = $v('P10_CR_BOM_CODE');
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=BOMQTY',0);
    get.add('P10_CR_BOM_CODE',lVal);
    var gReturn = get.get();
    if(gReturn){
    $x_Value('P10_CR_QUANTITY', gReturn);
    } else {
    $x_Value('P10_CR_QUANTITY', '');
    get = null;
    function f_rmc()
    var lVal = $v('P10_CR_BOM_CODE');
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=RMC',0);
    get.add('P10_CR_BOM_CODE',lVal);
    var gReturn = get.get();
    if(gReturn){
    $x_Value('P10_CR_RMC', gReturn);
    } else {
    $x_Value('P10_CR_RMC', '');
    get = null;
    </script>
    Application process : - BOMQTY
    DECLARE
    BQTY NUMBER;
    ERROR VARCHAR2(200);
    BEGIN
    SELECT CR_QUANTITY INTO BQTY
    FROM CM_RECIPE
    WHERE CR_BOM_CODE = :P10_CR_BOM_CODE;
    HTP.prn (BQTY);
    EXCEPTION
    WHEN OTHERS
    THEN HTP.prn (sqlerrm);
    END;
    Application process : - RMC
    DECLARE
    RMC NUMBER;
    ERROR VARCHAR2(200);
    BEGIN
    SELECT RMCCOST
    INTO RMC
    FROM
    SELECT SUM(CRI_QTY * CRI_RM_COST) / CR_QUANTITY RMCCOST
    FROM CM_RECIPE, CM_RECIPE_ITEM
    WHERE CR_BOM_CODE = :P10_CR_BOM_CODE
    AND CR_ID = :P10_CR_ID
    GROUP BY CR_QUANTITY
    HTP.prn (RMC);
    EXCEPTION
    WHEN OTHERS THEN
    ERROR := 'Error - Cannot calculate the RMC';
    HTP.prn (ERROR);
    END;
    Yogesh

  • Oracle apex popup using java script in tabular form select list(Am new to apex help me out... )

    Hi ...
      i have a tabular form
      have two columns in that form, kept as a select list by selecting that 1st select list data the related datas has to be popup after selecting that it has to be displayed in the  2nd column by using
    java script
    eg:
    1st column empno-----by selecting the empno the related empname has to be popup
                     dept no....by selecting the deptno the related deptname has to be popup 
    thanks in advance,
    kishore

    This is a very common question, see
    https://forums.oracle.com/thread/2359498

  • HTMLDB 2.0 bug - tabular forms - select list from named LOV

    Hi!
    Changing a column in a tabular form to 'select list (named lov)' gets the following error in HTMLDB 2.0 when you try to add a row (to an empty table in my case):
    PL/SQL error at column 133.
    Create a table and then create a tabular form on it. Then change a report column to be a 'select list (named lov)'. Save and run the form and the error occurs.
    Thanks!
    Dave Venus

    Brian,
    This example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:176
    and this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:160
    may help you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to refresh the Expired Login Form on the onChange event of the password

    Hi,
    In the Expired Login Form I have places a custom label. My requirement is that on the onchange event of the password field the label color should change to orange if the entered password meets the password policy else red.
    I am trying the following code :
    Custom label:
    <Field name='Custom Label'>
    <Display class='Label'>
    <Property name='value' value='Custom label 1'/>
    <Property name='noNewRow'>
    <Boolean>true</Boolean>
    </Property>
    <Property name='color'>
    <block>
    <cond>
    <isTrue>
    <invoke name='checkStringQualityPolicy' class='com.waveset.ui.FormUtil'>
    <rule name='EndUserRuleLibrary:getCallerSession'/>
    <s>Default Password Policy</s>
    <invoke name='decryptToString'>
    <ref>resourceAccounts.password</ref>
    </invoke>
    <map/>
    <list/>
    <s>Configurator</s>
    </invoke>
    </isTrue>
    <s>orange</s>
    <s>red</s>
    </cond>
    </block>
    </Property>
    </Display>
    </Field>
    And on the password field i gave following in the onChange event:
    submitCommand(this.form, "Recalculate")
    But the above command is not refreshing the page. Instead on the onChange event its going back to the login.jsp.
    Any idea how to resolve the above issue.
    Thanks.

    I got it working as below but i dont know is this best practices?
    <%
        if(session.getAttribute("afterSet") != null){
             %>
        <div style="visibility:hidden">
          <iframe NAME="iframe1" src="/WebApplication2/TestController?fileDownload=test.pdf" WIDTH="40" HEIGHT="40"></iframe>
        </div>
        <%}       basically first time user visit the jsp page session attribute "afterSet" will be null so it wont create the hidden iframe tag . after it dispatched to the servlet controller and successfully processing the record it will set "afterSet" properties to some value and dispatch to itself
    after that it will popup/dialog box for user to save the pdf.
    this way the page already refreshes itself and wont have problem double clicking thing and so on

  • Passing Fields between List Table and Input Form - selection list

    Hi
    I have to build up an input form with a lot of values. I like to provide something like a selection list, where the user can select from. An other way would be to make some tables with the possible values and pass them after clicking the row in a corresponding form field.
    I couldn’t find a solution to do that.
    Regards and thanks for helping
    Werner
    Message was edited by: Werner Zecchino

    Hi,
    There is no "clean" way of doing this with the current version.
    You can have a form with a few labels and a button for each label. Each button will raise a different event (user defined) which you can handle differently, i.e. run different queries, calculate fields, etc.
    Lior

  • How to make text field in tabular form as List of value (LOV)

    So the problem is next:
    I should to make field in tabular form as LOV(list of value (combobox)) to load there data form db. Could smb take me an advise how to make it.
    Thanks.

    So thanks, I did it, it works. How now to make next: I selected Id from list and in the next column appears name with ID from DB. so how to make ondemand process i know (thanks to you), but how to get value from LOV that I selected to give it to Dynamic Action.
    Thanks

  • Set Radio Group Default Value Based on a Select List Change Event

    Apex 4.2
    I have a radio group that is source is below. It returns 3 radio group item All,Miv,Courier
    SELECT type d, code r FROM vw_lov_depot
      WHERE svc_name = :P320_DEPOT
      ORDER BY 1
    The radio group is only populated when :P320_DEPOT gets a value, this is a select list.
    I am trying to set the radio group to  default to this value Miv it would use the statement
    SELECT type d, code r FROM vw_lov_depot
      WHERE svc_name = :P320_DEPOT
      and type ='Miv'
      ORDER BY 1
    I have tried creating a dynamic action on Select list change to populate the default value of the radio group...no joy I also tried a computation. how can I set this default value on when list changed.
    Thanks
    I have got the default Radio Group Selection working by doing a computation before region on the radio group and calling its select statement and setting the value. But the problem is now I cannot change the radtio group as I do it fire the before region trigger and sets it back to the default value....any help?

    Hi,
    Could you please create example to apex.oracle.com?
    Regards,
    Jari

  • How can i select multiple values form select list

    Hi ,
    I have created few items in a page and all items are Lov items and based on these items stacked charts will display. My requirement is I need to select multiple values form LOV's
    Eg: In Interactive report goto filter and select an item and expression as IN and select multiple items and i need to select multiple values like this.
    Please anybody help me how to get multiple values.
    I have one more doubt Can we have a Print preview option in APEX.
    I have to see print preview for stacked charts. is it possible?
    Regards
    Narender B

    HI ,
    Thank you for valuable information and looks good.but Here our client need to select multiple values.... for eg: Open IR report and click on Actions button --->select filter
    select any column , operator as IN and from expression select multiple items.
    I need to select multiple values in that way so, could you please guide me how can i achieve this.
    Regards
    Narender B

  • Cascading select list issue in a tabular form

    hello,
    how can i implement cascading select list for filtering my tabular form report results.
    Like i want to have the cascading select list above the tabualr form report such that when i select the value and try to click a button, my tabular form report should filter the report based on the select list value.
    i want to have three select list items above my report - and these select list are dependent on one other - tats why i want to make them cascading select list.
    can anyone help me out with cascading select list.
    thanks.

    Thank you so much for the quick response saved my life!.
    For future reference let examples of the use of APEX_UTIL.SAVEKEY_VC2 and APEX_UTIL.KEYVAL_VC2
    This is the query of the Tabular Form
    SELECT   den.cod_encuesta,
             den.cod_det_encuesta,
             den.cod_pregunta,
             pre.nombre_pregunta,
             den.respuesta,
             den.observaciones,
             APEX_UTIL.SAVEKEY_VC2(den.cod_pregunta) codpreg
      FROM   enc_det_encuesta den, enc_pregunta pre
    WHERE   den.cod_pregunta = pre.cod_pregunta  
       AND   den.cod_encuesta = :P6_COD_ENCUESTAThis is the query "Select list"
    SELECT   nombre_respuesta, cod_respuesta
      FROM   enc_respuesta
    WHERE   cod_pregunta =  APEX_UTIL.KEYVAL_VC2regards
    Gerard

  • Select list filter in a tabular form problem

    Hello everyone:
    I need to filter a list in a tabular form, depend on another column value in the same row of the Tabular Form
    Try using the syntax *#COLUMN#* in the query of select list but did not work.
    This is my query
    SELECT   nombre_respuesta, cod_respuesta
      FROM   enc_respuesta
    WHERE   cod_pregunta = #COD_PREGUNTA#There is another way I can refer to the value of a column in the same row?
    regards
    Gerard

    Thank you so much for the quick response saved my life!.
    For future reference let examples of the use of APEX_UTIL.SAVEKEY_VC2 and APEX_UTIL.KEYVAL_VC2
    This is the query of the Tabular Form
    SELECT   den.cod_encuesta,
             den.cod_det_encuesta,
             den.cod_pregunta,
             pre.nombre_pregunta,
             den.respuesta,
             den.observaciones,
             APEX_UTIL.SAVEKEY_VC2(den.cod_pregunta) codpreg
      FROM   enc_det_encuesta den, enc_pregunta pre
    WHERE   den.cod_pregunta = pre.cod_pregunta  
       AND   den.cod_encuesta = :P6_COD_ENCUESTAThis is the query "Select list"
    SELECT   nombre_respuesta, cod_respuesta
      FROM   enc_respuesta
    WHERE   cod_pregunta =  APEX_UTIL.KEYVAL_VC2regards
    Gerard

  • In tabular form, is there a way to select one row as the default row?

    Hi, I have a tabular form which lists the many addresses that a fisherman may have. The query is: select default_addr_flag, addr1, addr2, city, state, zip from addresses where fisher_id = :PXX_fisher_id.
    I would like to have them set the default_addr_flag = 'Y' for ONLY ONE record....so even if they have many addresses, one must be selected as the default for any correspondence.
    Are there any examples, or does anyone have a suggestion. thank you!
    karen

    Hi Karen,
    I think first of all you should get yourself a browser and add-ons that allow you to inspect the HTML DOM elements. E.g. FF/Firebug/Error Console. Once you have the required tools you will be able to see for yourself what the DOM has, and then work out what you need to do.
    Most members, including myself, at times post solutions without really trying them out as they appear to be "obvious" even when they are not.
    Taking forward from the point where you have made the default address indication a "simple checkbox" from the Report Attributes tab, if you inspect the checkbox element you will find that it is somewhat more complex and Apex has created the elements with some JS code. E.g. this is a snippet from one of my application pages.
    <td headers="IS_CUSTOMER">
    <label class="hideMeButHearMe" for="f08_0001">Is Customer</label>
    <input type="checkbox" onclick="if (this.checked) {apex.jQuery('#f08_0001').val('Y');} else {apex.jQuery('#f08_0001').val('');}" id="f08_0001_01" checked="checked" value="Y" name="f08_NOSUBMIT" autocomplete="off">
    <input type="hidden" id="f08_0001" value="Y" name="f08" autocomplete="off">
    </td>You will see that
    a.Apex has created a onclick event trigger
    b. If sets the value of Unchecked checkbox to null ("").
    c. In my page the checkbox maps to f08, you need to see which item it maps to in your page.
    d. The id of the rendered checkbox is id of hidden element + _01.
    The consequence of this is that if you define a onclick trigger in the Element attributes it overrides and suppresses Apex from inserting its own JS code!
    To be able to uncheck all checkboxes other than the one the user has currently checked you will need to do this:
    i. In the Column's Element Attributes field write onclick="doDftAddr(this);"You could name the function the way you want it, this is an example.
    ii.In the Page HTML Header write
    <script type="text/javascript">
    function doDftAddr(pThis) {
      va = pThis.id.split("_");
      var vb = va[0]+'_'+va[1];
    if (pThis.checked) {
        vy = 'input:checked[id^="'+va[0]+'_"]'
        $("["+vy+"]").attr("checked",false);
        apex.jQuery("["+vy+"]").val('N');
        apex.jQuery('['+'input:hidden[id^="'+va[0]+'"_]'+']').val('N');
        apex.jQuery('#'+pThis.id).attr("checked",true);
        apex.jQuery('#'+pThis.id).val("Y");
        apex.jQuery('#'+vb).val('Y');
       } else {
        apex.jQuery('#'+vb).val('N');
    </script>Cheers,

  • Problem with ajax in tabular form

    Hi
    I am trying a tabular form which contains two select list. Second select list is to populate according to the value of first select list. I have tried in following ways:
    First I have create an application item named ITEM_AJAX and an application process named PROC_AJAX as follows
    declare
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<data>');
    htp.prn('<select>');
    for rec in (SELECT '-Select-' d, -1 r FROM DUAL
    UNION ALL SELECT SEL_B_NAME d, SEL_B_ID r FROM
    SEL_B WHERE SEL_A_ID = :ITEM_AJAX)
    loop
      htp.prn('<option value="' || rec.r || '">' ||
    rec.d || '</option>');
    end loop;
    htp.prn('</select>');
    htp.prn('</data>');
    end;
    Then write following javascript code and placed it in page HTML header
    <script type="text/javascript">
    function updateSELB(filter, listName){
    var xml = null;
    var list = document.getElementById(listName);
    var listvalue = list.value;
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=PROC_AJAX',0);
    get.add('ITEM_AJAX', filter.value);
    ret = get.get('XML');
    if(ret){
      var s = ret.getElementsByTagName("select");
      if(s){
       var o = ret.getElementsByTagName("option");
       var oCount = o.length;
       list.options.length = 0;
       for(var i = 0; i < oCount; i++){
        var l_Opt_Xml = o[i];
    appendToSelect(list, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
    list.value = listvalue;
    if (list.selectedIndex == -1)
      list.selectedIndex = 0;
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all)
    pSelect.options.add(l_Opt);
      l_Opt.innerText = pContent;
    } else {
      l_Opt.appendChild(document.createTextNode(pContent));
      pSelect.appendChild(l_Opt);
    </script>
    <script type="text/javascript">
    function setSELB(filter, list3)
    var s = filter.id;
    var item = s.substring(3,8);
    var field3 = list3 + item;
    updateSELB(filter, field3);
    </script>
    After that I have create a tabular form and set onchange="javascript:setSELB(this,'f04');" into the element attribute of first select list but it doesn’t work
    Please take a look at http://apex.oracle.com/pls/apex/f?p=1968:8    user: suman   pass: suman1
    Any help will be appreciated
    Thanks
    Suman

    Hello Joni
    There is a error in script but I don't know how to solve it. The error is something like that
    ReferenceError: bmi_SafeAddOnload is not defined
    bmi_SafeAddOnload(bmi_load,"bmi_orig_img",0);//-->
    Do you have any suggestion?
    Thanks
    Suman

  • RemoveAtt by column in Tabular Form

    Hi guys. This is my problem:
    I have a tabular with "select list" fields. I disable this fields on Load Page if pk is not null, so user can't modify value of this fields. But when I insert new row in tabular form i have an error from MRU (because select list fields are disable). So how can i remove attribute "disable" before submit pages from column with "select list" disabled?
    Thanks for help.

    You just need to modify this code slightly and have it execute on page submit
    if (document.wwv_flow.f25) { // Check to see at least one present
    var l = document.wwv_flow.f25.length;
    if (l == undefined) { // Have only one record
       var curr_id = document.wwv_flow.f25.id;
       document.wwv_flow.f25.disabled = false;
    else { // Having multiple records
       for (var i = 0; i < l; i++) {
                document.wwv_flow.f25.disabled = false;
    varad
    Edited by: varad acharya on Apr 22, 2011 6:27 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • F-02 with asset retirement: Trans. type not possible - No affil. company

    Hello Gurus, I am struggling with the following, I hope you can help me: We want to sell an investment using a trading partner. When entering the asset retirement transaction type 230, I get error message AA 389 Trans. type not possible (No affiliate

  • XSLT Enhancement with Java, Tokenize Functionality

    I tried the following requirement using EXSLT with no luck. Is there any other alternative to tokenize in XSLT 1.0. The syntax i have here is   <xsl:for-each select="tokenize($this/Field1,',')">        <xsl:variable name="f1v" select="."/>      <xsl:

  • Connecting iPod to new laptop - trying to.

    I have installed iTunes and tired plugging in my iPod, but my laptop doesn't see my iPod. It doesn't see it in iTunes, My Computer, or Disk Management. I have turned off the Power Management on my USB ports and I have tired connecting in Disk mode, b

  • Re-claim tablespace size?

    Dear all, I am purging the old data, after that the tablespace seems to not re-claim the tablespace size (remain the same) ? Please advice, Amy

  • Sources of Monitor Activity

    Under: Home>HTML DB Workspace Administration>Monitor Activity>Page Views by Day we find Month View - Usage Report - Usage Chart - Usage Report, by Hour - Usage Chart, by Hour I am espceially interested in the sources of the "Usage Chart" (line chart