Disable apex_item.text

Hello,
I have the following problem:
I need a tabular form with one text-box-column, where the user can type in something.
The problem is, that the column should be disabled if the value of the maximum-column = 0.
I know that it should be something like this:
select
containername,
maximum,
apex_item.text( .... disable = true..... ???) <<----- I don't know how to do this
from tbl_count
Can anybody help me?
Thank you soooo much,
LISA :-)

Hi Lisa,
CASE statements must end with an END, so:
SELECT
containername,
maximum,
  CASE maximum
    WHEN maximum > 0 THEN
      apex_item.text( 1,null)    
    ELSE
      apex_item.text( 1,null,,,'disabled')
    END new_max
from tbl_count;Andy

Similar Messages

  • APEX_ITEM.TEXT disable question

    Hello guys and girls,
    I have a small problem with my sql statement (last section as you can see below). In the query I am trying to generate an html text element that is either diabled or enabled. For some reason, my text fields are all disabled although int_prozent is not null in several cases.
    Do you have a hint for me how to solve that bug?
    {cod€}SELECT DECODE(STR_BA_KAT,'H',1,'N',2,'B',3) AS CS, STR_BA_LANG, STR_BA_KAT, STR_SELTEN, STR_BA_GRUPPE, CASE WHEN FLAG = 1 THEN APEX_ITEM.HIDDEN(1, CNT_TBL_MATRIX_INTERMEDIATE, 'disabled=true') ELSE APEX_ITEM.HIDDEN(1, CNT_TBL_MATRIX_INTERMEDIATE) END AS CNT_TBL_MATRIX_INTERMEDIATE,
    CASE WHEN FLAG = 1 THEN APEX_ITEM.SELECT_LIST_FROM_LOV(5, STR_GEWERTET, 'JEIN', 'disabled= true', 'class="combobox"') ELSE APEX_ITEM.SELECT_LIST_FROM_LOV(5, STR_GEWERTET, 'JEIN','%',
    '%', NULL,NULL, NULL, 'class="combobox"') END AS STR_GEWERTET,
    CASE WHEN INT_PROZENT is null THEN APEX_ITEM.TEXT(33, int_prozent, 10, null, 'disabled=true') else APEX_ITEM.TEXT(33, int_prozent, 10, null, 'disabled=false') end as INT_PROZENT FROM TBL_MATRIX_INTERMEDIATE_RESULT where FLAG != 1
    Any help is appreciated! Thanks a lot for your effort!
    Seb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hello Jari!
    Happy new year and thanks for your hint. It worked well! disabled=disabled is suitable for input type text. For select lists it's disabled=true.
    One more thing though:
    When creating the html items (the text box) I am simultaneously assigning a format to my column and converting to char before.
    CASE WHEN INT_PROZENT is null THEN APEX_ITEM.TEXT(33, to_char(int_prozent,'FML999G999G999G999G990D00'), 10, null, 'disabled=disabled') else APEX_ITEM.TEXT(33, to_char(int_prozent,'FML999G999G999G999G990D00'), 10, null) end as INT_PROZENTThe problem is that my numeric values are displayed like the following example: ¿0,10. Do you know of a workaround?
    Many thanks again for your splendid and rapid help!
    Regards,
    Seb

  • APEX_ITEM.TEXT and solution for enabling and dispabling a button

    Hi All,
    Please let me know how can we have a format mask for an Item created using apex_item.text.
    I would like to add a Number format mask with three decimals in this report column
    APEX_ITEM.TEXT (2, INV_VALUE, 15, 20, 'readonly=readonly style=""')
    Also do let me know the following points based on the followup to this link:
    Use of Checkbox in Report for calculation and determine checked records
    1. How can I enable or disable a button based on value of a Page Item being > 0, this also should be done when a check box is checked or unchecked.
    2. One more clarification about adding the total depending upon check box checked or unchecked.
    On checking and un-checking the total gets added and subtracted as required, but I have noticed that the the session values of the Item for Total is not as the one displayed. Why is it so. Please guide.
    Thanks & regards
    Arif Khadas

    Hi Vee,
    Thanks for the reply.
    document.getElementById(...)' is null or not an objectCheck if the button is rendered with id="PAY_DUES"+ or not. You can view the HTML source code of the button and see if it has such an id or not. The source code is as follows:
    <a href="javascript:popUp2('f?p=1002:23:3713834878987986::NO::P23_INVOICES,P23_RCP_AMOUNT_PAID:,0', 320, 450)" class="t20Button">Pay Dues</a>
    Else add an id attribute to the button in button attributes(ensure that you have the BUTTON_ATTRIBUTES substitution string used in the button template)Template of button is as follows and the Substitution String #BUTTON_ATTRIBUTES# is not Referenced.
    <a href="#LINK#" class="t20Button">#LABEL#</a>
    but I have noticed that the the session values of the Item for Total is not as the one displayedThe session value of the item is usually set when you submit the page or use an ajax process/ Dynamic Action to set it. If you this is required , set the item's session state calling a dummy/null ondemand process or a dummy PLSQL dynamic Action using the item name in the "List of items to Submit" field.This issue is resolved for me in other thread.
    Thanks & Regards
    Arif Khadas

  • Refresh APEX_ITEM.TEXT Value when Interactive Report Page Changes

    I use an APEX_ITEM.TEXT column in an IR where the user can enter some number date.
    to make this data persistent while paginating the ir, i use some DA . Via ajaxthis DA call an onDemandProcess to save the entered data in a collection.
    works great; the input is stored in the collection.
    To show the already entered data, the ir sql statement joins the collection.
    select  APEX_ITEM.hidden(2,artikelnr)||
            APEX_ITEM.TEXT(1
              ,COL_artikel.preis
              ,3
              ,3
              ,'autocomplete="off" onfocus="javascript:f_set_last_val(this);" onchange="javascript:f_validate_integer(this);"'
              ,'INPUTBESTELLEN'
             ) Inputbestellen,
    article.*
    from article
    left outer join COL_artikel on COL_artikel.nummer = artikelnr where col_artikel is a view for better access on the collection
    Now the issue:
    On the first Page i add some data, then i go head to page 2 and 3 of the ir. The collection is filled withe the entered data.
    But when i navigate back to page 1 the entered data is not shown in the input field unless i relload the whole page . I guess because the query is not re-executed when paginating foreward/backward.
    ist there any way to overcome this tiny small issue?
    regards
    peter

    It looks like you are trying to combine apex_item function with a standard tabular form and as far as I know this won't work. You will need to create a manual tabular form in that case. See this and other examples as a refference:
    http://htmldb.oracle.com/pls/otn/f?p=31517:170
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Apex 4.2 Report region sql query with "apex_item.text" renders wrongly

    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name=&quot;f01&quot; size=&quot;20&quot; maxlength=&quot;2000&quot; value=&quot;111&quot;  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?
    I need that function "apex_item.text", i cannot remove it.
    Edited by: CharlesRoos on 13.02.2013 15:28
    Edited by: CharlesRoos on 13.02.2013 15:29
    Edited by: CharlesRoos on 13.02.2013 15:29

    CharlesRoos wrote:
    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name="f01" size="20" maxlength="2000" value="111"  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?Ensure that the Display As Column Attribute for the C1 column is Standard Report Column.

  • How to use a radio button in enabling/disabling a text box in report progra

    Hi,
        Could any please let me know, how to use a radio button in enabling/disabling a text box in report program.

    *& Report  ZMR_RADIO_BUTTONS
    REPORT  ZMR_RADIO_BUTTONS.
    PARAMETERS : R1  RADIOBUTTON GROUP G1,
                 R2  RADIOBUTTON GROUP G1.
    PARAMETERS : A1 TYPE I,
                 A2 TYPE I.
    AT SELECTION-SCREEN OUTPUT.
    *initialization.
    IF R1 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF R2 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    modify screen.
    ENDLOOP.
    ENDIF.
    START-OF-SELECTION.
    *IF R1 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 1.
    ENDIF.
    *ENDLOOP.
    *ENDIF.
    *IF R2 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 0.
    ENDIF.
    *ENDLOOP.
    *ENDIF.

  • Javascript calculation with APEX_ITEM.TEXT question

    Here is my code:
    select APEX_ITEM.TEXT(10,conversion_factor,10,null,null,'conv'||rownum) "Convert", APEX_ITEM.CHECKBOX(1,null,'CHECKED') "Unlocked", APEX_ITEM.DISPLAY_AND_SAVE(2,spec_name) "Name", APEX_ITEM.CHECKBOX(3,null,'CHECKED') "N/A", APEX_ITEM.CHECKBOX(4,null,'UNCHECKED') "Unknown", CASE NVL(secondary_value, 'x')
    WHEN 'x' THEN (APEX_ITEM.TEXT(5,null,35,null,'onChange=$x("PrimaryUnit'||rownum||'").value=$x(("conv'||rownum||'").value)*this.value;','PrimaryUnit'||rownum))
    ELSE APEX_ITEM.TEXT(6,primary_value,35,null,'PrimaryUnit') END "Primary Unit",
    CASE NVL(primary_symbol, 'x')
    WHEN 'x' THEN ' '
    ELSE APEX_ITEM.DISPLAY_AND_SAVE(7,primary_symbol) END "Primary Symbol",
    CASE NVL(primary_symbol, 'x')
    WHEN 'x' THEN ('<center>Edit</center>')
    ELSE APEX_ITEM.TEXT(8,secondary_value,20,null,'onChange=$x("PrimaryUnit'||rownum||'").value=$x(("conv'||rownum||'").value)*this.value;','SecondaryUnit'||rownum) END "Secondary Unit",
    CASE NVL(secondary_symbol, 'x')
    WHEN 'x' THEN ' '
    ELSE APEX_ITEM.DISPLAY_AND_SAVE(9,secondary_symbol) END "Secondary Symbol", conversion_factor
    from prd_model_specs_maint_vw
    where equip_id = :P201_EQUIP_ID
    and spec_group_name = :P240_ID
    The scenario is this: I have a field (PrimaryUnit + rownum). I would like to have a user put a number in this field and the javascript should take that value and take the conversion_factor and calculate what the new value is a place it in the second field (SecondaryUnit + rownum). I am currently getting a result of 0 every time. The javascript is an onChange call. This query is a bit messy, so let me know if you need more explanation. Thanks.
    Jon

    I like that solution. I will give that a shot. I did get the conversion to work, but it is messier than Andy's option. Here's is how the query looks now for anyone's reference:
    select APEX_ITEM.TEXT(10,conversion_factor,10,null,null,'conv'||rownum) "Convert", APEX_ITEM.CHECKBOX(1,null,'CHECKED') "Unlocked", APEX_ITEM.DISPLAY_AND_SAVE(2,spec_name) "Name", APEX_ITEM.CHECKBOX(3,null,'CHECKED') "N/A", APEX_ITEM.CHECKBOX(4,null,'UNCHECKED') "Unknown", CASE NVL(secondary_value, 'x')
    WHEN 'x' THEN (APEX_ITEM.TEXT(5,null,35,null,'onChange=$x("SecondaryUnit'||rownum||'").value='||conversion_factor||'*this.value;','PrimaryUnit'||rownum))
    ELSE APEX_ITEM.TEXT(6,primary_value,35,null,'PrimaryUnit') END "Primary Unit",
    CASE NVL(primary_symbol, 'x')
    WHEN 'x' THEN ' '
    ELSE APEX_ITEM.DISPLAY_AND_SAVE(7,primary_symbol) END "Primary Symbol",
    CASE NVL(primary_symbol, 'x')
    WHEN 'x' THEN ('<center>Edit</center>')
    ELSE APEX_ITEM.TEXT(8,secondary_value,10,null,'onChange=$x("PrimaryUnit'||rownum||'").value=this.value/'||conversion_factor||';','SecondaryUnit'||rownum) END "Secondary Unit",
    CASE NVL(secondary_symbol, 'x')
    WHEN 'x' THEN ' '
    ELSE APEX_ITEM.DISPLAY_AND_SAVE(9,secondary_symbol) END "Secondary Symbol", conversion_factor
    from prd_model_specs_maint_vw
    where equip_id = :P201_EQUIP_ID
    and spec_group_name = :P240_ID
    The change that made it work is this:
    onChange=$x("SecondaryUnit'||rownum||'").value='||conversion_factor||'*this.value;
    The '||conversion_factor||'*this.value is different and now works. Thanks,
    Jon

  • Ajax Autocomplete Tabular does not work using apex_item.text in SQL Query.

    Hello,
    Is it possible to use the search function which is used in, Dennis Kubicek example, ENAME topic Ajax Autocomplete Tabular
    in a sql query using apex_items?
    Query line :
    , apex_item.text(17,xp.part_nr,null,null,'onfocus="f_register(this);" autocomplete="off"') PART
    At first I followed the example by adding 'onfocus="f_register(this);" autocomplete="off" in the element attributes in the report field.
    This didn't work... so tried to add the it in the attirbutes parameter of the apex_item.
    But this still doesn't work. No errors are given, it does not respond.
    Could somebody please help me?
    Thx!
    Astrid

    Well, I'm trying to take this one step further, but I seem to be having some difficulty.
    I'm trying to make a Filter screen to create a dynamic where clause filter screen.
    This is a page I made with Popup LOVS, just to show you my goal (now trying to use autofilters)
    http://apex.oracle.com/pls/otn/f?p=29989:5
    I have a table on my system that tells you where the field is, and I'm using that to get the table (didn't want to change the javascript, so I pass in a static value).
    This is the javascript code I used
    <pre>
    <script language="JavaScript" type="text/javascript">
    function f_register(p_this,p_name)
    var p_registered = $x('P5_ITEM_ID').value;
         var p_this_name = $x(p_this).id;
    //alert(p_this_name);
    if (p_registered != p_this_name)
    register(p_this_name, "COSTING_M", p_name, "blue", "red");
    $x('P5_ITEM_ID').value = p_this_name;
    </script>
    </pre>
    This is my query
    <pre>
    select column_name || apex_item.hidden(1,column_name) Col_name,
    apex_item.SELECT_LIST_FROM_lov(2,'=','OPERATOR') OPERATOR,
    apex_item.text (3,
    NULL,
    20,
    200,
    'onfocus="f_register(this,''' || column_name || ''');" autocomplete="off"',
    'f3_' || '#ROWNUM#',
    NULL
    ) value,column_id
    from user_tab_cols
    where table_name = 'COSTING_M'
    ORDER BY ROWNUM
    </pre>
    and here is my on-demand process
    <pre>
    declare
    TYPE CurTyp IS REF CURSOR;
    v_row varchar2(4000);
    rec CurTyp;
    V_TABLENAME NKW.UTFIELD_M.TABLE_NAME%TYPE;
    begin
    BEGIN
    SELECT TABLENAME INTO V_TABLENAME
    FROM NKW.UTFIELD_M
    WHERE FIELD_NAME = :TF_SL_COLUMN;
    EXCEPTION WHEN NO_DATA_FOUND THEN RETURN; END;
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&amp;','&');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&lt;','<');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&gt;','>');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&quot;','"');
    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('<rowset>');
    open rec for
    'select distinct ' || :TF_SL_COLUMN || ' ' ||
    'from NKW.' || V_TABLE_NAME || ' ' ||
    'where '||:TF_SL_COLUMN||' like :1||''%'' ' ||
    'and rownum < 100 ' ||
    'order by '||:TF_SL_COLUMN
    using :TF_SL_SEARCH;
    loop
    fetch rec into v_row;
    exit when rec%NOTFOUND;
    htp.prn('<row>' || htf.escape_sc(v_row) || '</row>');
    end loop;
    htp.prn('</rowset>');
    end;
    </PRE>
    I made some slight mods to make the table dynamic from my source table (this is to grab master files when they exist and not to when they don't).
    I get my select list, but it's blank on all fields, any suggestions?
    thanks,
    Scott

  • Validation on Disabled input text

    it seems <af:validateRegExp cannot work inside a <af:inputText disabled='true'>, is there any easy way to have this client side validation on a disabled input text in ADF?

    I am wondering if you could create a transient attribute in the EO that displays the data from the attribute. The "real" attribute would not be disabled, and would then validate.
    You then display the transient attribute on the form, and it would be non-update-able since it is transient.
    You could then place entity level validation on the entity (instead of on the attribute) since it is based on a second value in your form. Haven't tested it, but it would seem to be a solution.
    Stuart

  • How to use apex_item.text in a collection or tabular form

    Hello,
    I have a table with table names. (simplified)
    create table test (tab_nm VARCHAR2(30) )
    Now I want to present this tables on a tabular form with a checkbox and a text item to put the short name for this table name.
    So I was thinking in the way of
    select apex_item.checkbox(1,ids) check,
    tab_nm,
    apex_item.text(2,c001) short_name
    from test;
    Ibut this doesn't work since the c001 column does not exist.
    So I probably should go for a collection, but how do I do that and how to process the text put in in the text item?
    Thanks

    Hi Marc,
    I think the purpose is different. I want to create a 3 column report with a checkbox to select the tables I want to use and because I do not store the shortname in the table I want the user to be able to give the shortnames himself for the selected tables.
    So
    checkbox tab_nm from table item( filled in by user but not stored in table)
    x table 1 tab1
    x table2 tab2
    table3 tab3
    writing this I 'm considering to save the short names because it can give conflicts if a shortname is used twice
    Purpose is to generate tables, with sequences and triggers dynamically from the selected tables.
    Erwin

  • How to disable the text field in File upload element?

    Hi,
    How can we disable the text field in the "File upload" UI element so that the user won't be able to type the file path there, but he will still be able to browse the file using the Browse button?
    Regards
    Praveen

    Hi Praveen,
    This is not possible with the Web Dynpro File Upload UI element.
    Thanks,
    Samta

  • Disable alt text in firefox

    is there a way to disable alt text to appear when an image is loading in firefox ? i hate it when my connection is slower to see the text before the image

    Hello 100k, this options does not exist, why do not try to make a little faster the image loading ?
    go to [http://kb.mozillazine.org/About:config about:config] find the [http://kb.mozillazine.org/Network.http.pipelining network.http.pipelining] and '''double-click on it''' to make it '''true'''.
    then, always in about:config, find [http://kb.mozillazine.org/Network.http.pipelining.maxrequests network.http.pipelining.maxrequests] and '''right-click on it''', select '''modify''' and put '''8''' as a value and click '''OK'''.
    thank you

  • Sum / Format on APEX_ITEM.TEXT columns

    Hi! I have two questions :
    In apex 3.2, on an updateable report, I am using APEX_ITEM.TEXT for a column.
    1) The data contained in this cell are hours (so numeric and the sum should work). I am not able to get a sum on this column. I am checking the "sum" field in the report attributes. All in can see is the last line with "0" in it.
    Anybody has an idea on how to have the sum on this column?
    2) How can I have a format on the APEX_ITEM.TEXT column ? I tried to put 90D0 in the number/date format but it does nothing.
    Thanks!
    Amelie
    Edited by: user13485643 on Feb 8, 2011 12:30 PM

    Sorry, it was long before I answer.
    First of all, thank you so much for your idea! I am now able to get the sum dynamically! Here's how :
    I created this javascript function. The variable myName is the name of the inputs and myHeader is the value you get in the td tag <td class="t20data" headers="HrsDim">
    function updateSum(myName, myHeader)
         myArray = document.getElementsByName(myName);
         mySum = 0;
         for (var i=0; i < myArray.length; i++)
              val = myArray.value
              if (val == Number(val)){
                   mySum = mySum + Number(val);
         $('td[headers=' + myHeader + ']').last().text(mySum).addClass("sum");
    In my apex item's attribute I added this :onchange="updateSum(this.name, 'HrsDim')"
    Works like a charm!!
    Thanks again!!!
    Edited by: Amelie on Feb 17, 2011 8:06 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Two questions on apex_item.text when date field

    Hi, I have a tabular collection with a date field. I need to have validation on the date field, so wanted to create and authorization (is this the best way). In order to do so, I needed to create an application item (again...is this the best way?).
    I am very new to javascript and use of the ONCHANGE. Is there a way to have a the value of this apex_item.text placed into that application_item? I have tried the following, but it does not work.
    select apex_item.text(6,c006,10,null,
    ||'style="width:100px;background-color:#FBEC5D; "'
    ||'onchange="f_set_start_date(this,f6_'||LPAD (seq_id, 4,'0')||')"') start
    from apex_collection...where.....
    Also, is there a way to force a format for an apex_item.text. I would like it to be in the format dd-mon-yyyy.
    thanks again.

    Hi Ravi, the javascript is located in the page header.
    the Javascript (and this is long as the form has many (8) cascading LOVs) is:
    <script language="JavaScript" type="text/javascript">
    htmldb_delete_message='Are you sure you want to delete the selected records?';
    // Row - Highglight Function
    var rowStyle = new Array(10);
    var rowActive = new Array(10);
    var rowStyleHover = new Array(10);
    rowStyle[1]='';
    rowStyleHover[1]='';
    rowActive[1]='N';
    function highlight_row(checkBoxElemement,currentRowNum)
    if(checkBoxElemement.checked==true)
    for( var i = 0; i
    < checkBoxElemement.parentNode.parentNode.childNodes.length; i++ )
    if (checkBoxElemement.parentNode.parentNode.childNodes.tagName=='TD')
    if(rowActive=='Y')
    rowStyle[currentRowNum] = rowStyleHover[currentRowNum];
    else
    {rowStyle[currentRowNum] =
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor;
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor
    = '#FFFF66';
    rowStyleHover[currentRowNum] = '#FFFF66';
    else
    for( var i = 0; i
    < checkBoxElemement.parentNode.parentNode.childNodes.length; i++ )
    if (checkBoxElemement.parentNode.parentNode.childNodes[i].tagName=='TD')
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor = '';
    rowStyleHover[currentRowNum] = '';
    document.wwv_flow.f11.checked=false;
    // Funntion to Check and un-check rows Rows
    function checkAllDetail(pAllCheckbox)
    if (pAllCheckbox.checked)
    for (var i = 0; i<document.wwv_flow.f11.length; i++)
    if (!document.wwv_flow.f11[i].checked)
    document.wwv_flow.f11[i].checked=true;
    highlight_row(document.wwv_flow.f11[i],i);
    } else
    for (var i = 0; i<document.wwv_flow.f11.length; i++)
    if (document.wwv_flow.f11[i].checked)
    document.wwv_flow.f11[i].checked=false;
    highlight_row(document.wwv_flow.f11[i],'');
    }; // checkAllDetail
    // Cascading Select List Function
    function f_set_casc_sel_list_item(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for Market Category
    function f_set_casc_sel_list_item_mkt(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_mkt',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for Grade
    function f_set_casc_sel_list_item_grd(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_grd',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for PORT
    function f_set_casc_sel_list_item_port(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_port',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // Cascading Select List INSTATE
    function f_set_casc_sel_list_item_distance(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_instate',0);
    get.add('TAB_CASCADING_DISTANCE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for AREA
    function f_set_casc_sel_list_item_area(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_area',0);
    get.add('TAB_CASCADING_INSTATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for SUB-AREA
    function f_set_casc_sel_list_subarea(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_subarea',0);
    get.add('TAB_CASCADING_AREA',$x(pThis).value);
    get.add('TAB_CASCADING_INSTATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for LOCAL-AREA
    function f_set_casc_sel_list_local(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_local',0);
    get.add('TAB_CASCADING_SUBAREA',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for GEAR
    function f_set_casc_sel_list_gear(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value);
    get.add('TAB_CASCADING_GEAR',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for start_date
    function f_set_start_date(pThis,pSelect){
    alert("hello");
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value);
    get.add('TAB_START_DATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    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);
    function KeyCheck(e)
    var KeyID = (window.event) ? event.keyCode : e.keyCode;
    //alert(KeyID); // If you want to check out the values for other buttons
    if (KeyID == 120)
    doSubmit('SAVE'); // SAVE F9
    if (KeyID == 121)
    doSubmit('COMPLETE'); // complete F10
    </script>
    The actual (long) query is (and the date value is C006):
    select apex_item.hidden (1,seq_id) checkbox,
    apex_item.hidden (2,seq_id)||
    apex_item.select_list_from_query(3,c003,'select partner_name d,
    state_code r
    from partners
    where state_code is not null
    order by partner_name',
    'style="width:100px;background-color:#FBEC5D; "'
    ||'onchange="f_set_casc_sel_list_item_port(this,f4_'
    ||LPAD (seq_id, 4,'0')||')"',
    'YES',
    '0',
    '- Select State -',
    'f3_' || LPAD (seq_id,4, '0'),
    NULL,
    'NO'
    ) STATE,
    apex_item.select_list_from_query_xl(4,c004,'select fips_place_name, port
    from valid_ports
    where fips_state = '
    ||nvl(c003,0)
    ||' order by fips_place_name',
    'style="width:150px;background-color:#FBEC5D;"',
    'YES',
    '0',
    '- Select PORT -',
    'f4_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO' ) PORT,
    apex_item.POPUP_FROM_LOV(5,c005,'VESSELS',
    NULL,NULL,NULL,NULL,NULL,
    'style="width:100px;'
    ||'background-color:#FBEC5D; "') vessel_id,
    apex_item.text(6,c006,10,null,
    'style="background-color:#FBEC5D;"'
    ||'onchange="f_set_start_date(this,f6_'
    ||LPAD(seq_id, 4,'0')||')"') trip_start_date,
    apex_item.text(7,c007,5,null,
    'style="background-color:#FBEC5D"') trip_start_time,
    apex_item.text(8,c008,10,null,
    'style="background-color:#FBEC5D"') trip_end_date,
    apex_item.text(9,c009,5,null,
    'style="background-color:#FBEC5D"') trip_end_time,
    apex_item.SELECT_LIST_FROM_LOV(10,c010,'TRIP_TYPE',
    'style="width:100px;background-color:#FBEC5D; "') trip_type,
    apex_item.SELECT_LIST_FROM_LOV(11,c011,'YES_NO',4) multiple_fishermen,
    apex_item.text(12,c012,3,null,
    'style="background-color:#FBEC5D"') days_at_sea,
    apex_item.text(13,c013,4,null,
    'style="background-color:#FBEC5D"') nbr_of_crew,
    apex_item.hidden(14,c014) supplier_trip_id,
    apex_item.hidden(15,c015) trip_nbr,
    apex_item.text(16,c016) partner_vtr
    from apex_collections where collection_name = 'TRIP_C'

  • Tabular form with uneditable apex_item.text column

    When I use the following query for my Tabular Form I have the AGE column uneditable
    select
    "ID",
    "ID" ID_DISPLAY,
    apex_item.text(44,"AGE") as "AGE"
    from "#OWNER#"."SAS_TEST"
    I changed the AGE column type to Standard Report Column but still the column values are not able to update the values.
    The column will show the HTML input and view the correct values from the table but you can not update the column.
    I have apex 4.0.2

    I found the solution. You must have both the original column in your sql (as hidden type), and you must add the APEX_ITEM.TEXT with an alias different than the true db column name.
    In order to set the hidden real column values after submitting the page, add the page process pl/sql below. Of course you need to find the g_fxx number by looking at your page source. This will transfer the values from one pl/sql table to the other which is mapped in the MRU process.
    On Submit - Before Computations and Validations
    BEGIN
    -- Database Column Name: DEFAULT_VALUE
    -- Set the hidden DEFAULT_VALUE field for all visible records to null
    -- Note: g_f19 maps to the hidden DEFAULT_VALUE column
    -- g_f30 maps to the visible DEFAULT_VALUE_ADMIN column
    FOR ii IN 1 .. APEX_Application.g_f19.COUNT
    LOOP
    APEX_Application.g_f19(ii) := APEX_Application.g_f30(ii);
    END LOOP;
    END;

Maybe you are looking for

  • My iPod touch screen got wet and now it won't register any touch.

    I had just gotten out of the ocean and when I went to check my texts, my hair dripped a bunch of water onto my iPod's screen. I wiped it off, but when I tried to scroll through my inbox it didn't register. I was able to get it to turn off, but it too

  • ORA-00942: the table or view does not exist

    Hello!!!! I have tree simple mappings each one with only one dimention and sometimes external or normal tables. One of them is ok but I can´t deploy the others. In Controle Center I have this messege: the table or view does not exist. I genereted bot

  • CAnnot save backup

    iTunes cannot save the backup of my IPhone, and the folders in /users/ dont exist.. theres no previous backups left in the Pref-> devices tab... so now what do I do?

  • Configure sender RFC

    HI EXPERTS my Scenario is RFC TO FILE 1.when i am sending bapi from sap system to xi system i  was getting error was : jco server couldnot fine the function /GLB/RGT_STOCK_ENQUIRY so wt my mistke  plz help me thanks upendra

  • I cannot download Photoshop CC.

    I cannot download Photoshop CC.  When I select download trial version, nothing happens.  I have installed CC and am running a Mac w/ Maverick 10.9.3 OS X.