DELETE_CONFIRM_MSG

How can we alter the DELETE_CONFIRM_MSG in APEX. I am using Application Express 3.2.0.00.27. Presently the message is " Would you like to perform this delete action?". I am calling this JS in DELETE button javascript:confirmDelete(htmldb_delete_message,'button_request_name'); and the below JS i am using in header <!--
htmldb_delete_message='"DELETE_CONFIRM_MSG"';
//-->
I need to change the message. Please help

You can also change it in the header, if you can't use the same deletion message on every page you need to delete.
htmldb_delete_message='Whatever you feel like writing';

Similar Messages

  • DELETE_CONFIRM_MSG Question

    Hi,
    I have an application, working in two Languages, and somewhere in the Application i have delete Buttons that call
    a javascript,
    javascript:confirmDelete('Would like to permanently delete this Record?','Delete_Clicked');
    the Messagebox, is showing "OK" and "Cancel" Buttons regardless of the Language i choose for the Application.
    how can i change the Label of this Buttons, depending on the Language i choose for my Apex Application
    or is there a better way to achieve that(delete confirmation)?
    regards.
    MDK.

    Hi Ben,
    the Messages are now displayed correctly with the application item, i have customized the Message in the app_item_name dependig on the
    Language the User selects, because the Application is running on 2 Languages.
    but the Buttons (OK and Cancel) in the "Delete Confirmation Messagebox" are displayed only in the OS-Language as i can see,
    is there a way to customize the Name of the Buttons depending on the Language in the Apex application?
    regards
    MDK.

  • Insert in Tabular form does not work after the upgrade to APEX 4.0

    Hi all,
    Thx in advance for looking into the issue.
    We are running into following issue when we upgraded APEX 3.2 to APEX 4.02
    1) The Tabular form insert does not work.
    2) We are fatching the value of the Global variable APEX_APPLICATION.g_XXXX in a procedure and we get null for this value after submit for new row to be inserted.
    The tabular form was working fine in APEX 3.2.
    The Update and Delete works just fine.
    Any help in this regard is highly appreciated.
    Thx and regards,
    Mahesh

    Here is my workaround to get the ADDROW/SUBMIT working again if you have a legacy Tabular Form:
    1     PAGE ATTRIBUTES               
              JAVASCRIPT          
              FUNCTION AND GLOBAL VARIABLE DECLARATION          
                   var htmldb_delete_message='"DELETE_CONFIRM_MSG"';     
    2     DELETE BUTTON               
              ACTION WHEN BUTTON CLICKED          
              URL Target          change to
                   javascript:apex.confirm(htmldb_delete_message,'MULTI_ROW_DELETE');     
    3     ADDROW BUTTON               
              ACTION WHEN BUTTON CLICKED          
              Action           
                   redirect to URL     
              URL Target          
                   javascript:addRow();     
    4     PROCESS               
              APPLYMRU (activitated by button ADDROW)          
              CONDITION          
                   never or delete     
    5     PROCESS               
              ADDROWS          
              CONDITION          
                   never or delete     
    6     CHANGE PAGE TEMPLATE to e.g. THEME 13 One Level Tabs.               
    7     IF YOU WANT ADD FUNCTIONALITY TO GOTO BOTTOM OF PAGE AFTER ADDROW               
         1. In the page footer put <a name="bottom_of_page"></a>                
         2. Amend the action when the "ADD" button is clicked to scroll down to the new region by doing the following:               
         - edit "ADD" button               
         - Go to "Action when button Clicked" section               
         - Amend "URL Target" from               
         javascript:addRow();                
         to               
         javascript:addRow();window.location='#bottom_of_page' ;               
    regards
    PaulP

  • Page failure when attempting to save java script in html header

    Currently there is java script code for a function that is seeded in the html header of a forms page by apex when the form is generated. This code is for the chicken test for the DELETE button.
    The function works as designed, but if I try to "APPLY CHANGES" to the the page definition I get the The page cannot be displayed "Cannot find server or DNS Error". "the url is http://nldg-3.appl.devjones.com:7777/pls/apex/wwv_flow.accept" If I remove the script coding from the HTML header the page will save just fine, but of course no more java script.
    I need to add a java script function to the page and I am unable to do so at this time because of this issue. I can reproduce this error on any of the sample apps that I have loaded into apex.
    the Apache error log contains:
    [Fri Feb 13 06:11:06 2009] [error] [client 172.16.85.122] [ecid: 1234527066:192.168.211.127:31922:0:17188,0] mod_plsql: /pls/apex/wwv_flow.accept HTTP-500 Error Reading Data from Client!!
    The Apache access gets:
    172.16.85.122 - APEX_PUBLIC_USER [13/Feb/2009:06:23:47 -0600] "POST /pls/apex/wwv_flow.accept HTTP/1.1" 500 653
    Apex is version 3.1.2.00.02 and uses on iAS on a Linux server. The Database is 10g. The browser is IE 6.0.2900.2180.
    I have been developing for about 3 months in Apex and this is the first issue of this kind that I have run into. Any help will be greatly appreciated as I have no clue at this time.

    Luis,
    All the forms are created by Apex with a default function in the html header for a delete chicken test as follows:
    <scrpt language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    Even though the function is already a part of the page, if I try to save it, it will fail. I will look into the "black list" a little deeper. I have asked around abit as I also had suspected that, but so far all the answers were that it should not be a problem. If I take out the "SCRIPT" word I can get the page to save, but of course the code is worthless at that point.
    Keith

  • Question about tags

    this is my code
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script language="JavaScript" type="text/javascript">
    <!--
    function getHistology(filter, listName)
    alert(listName.id);
    var xml = null;
    var list = document.getElementById(listName);
    var listvalue = list.value;
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=GET_HISTOLOGY',27);
    get.add('AI_HISTOLOGY_RECORD', filter.value);
    ret = get.get('XML');
    alert(ret);
    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;
    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> Edited by: user1700785 on Oct 1, 2009 4:05 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    It is documentation forum, why you have just posted a script and haven't asked any question? Please post only "documentation related question" in this forum, or visit other forums from http://forums.oracle.com

  • Cascading Select Lists - Not Working for me

    I am trying to implement Denes Kubicek's Ajax Cascading Select List solution.
    http://apex.oracle.com/pls/otn/f?p=31517:119
    But it is not working for me.
    I'm a newbie to APEX and checked the forum for advice on cascading select lists. I saw the thread for
    "Cascading Select Lists - Not Working" posted by sue and the replies by Varad Acharya, but I'm still
    having issues of not seeing the alerts, not able to run the pl/sql process in SQL Workshop, and not
    getting the expected results.
    I have a list of countries (US - USA, CA - CANADA, etc.) and a list of states for each country. When a
    user selects a country I would like to show the list of states within that country.
    This is what I've done so far:
    Defined an application process:
    Process Point: On Demand: Run ... by a page process.
    Name: CASCADING_SELECT_LIST1
    Process Text:
    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 ('<select>');
    HTP.prn ('<option value="' || 99 || '">' || '- All States -'
    || '</option>'
    FOR c IN (SELECT state_code || ' - ' || state_desc d, state_code r
    FROM tbk_state
    WHERE country_code = :cascading_selectlist_item_1)
    LOOP
    HTP.prn ('<option value="' || c.r || '">' || c.d || '</option>');
    END LOOP;
    HTP.prn ('</select>');
    END;
    defined and application item:
    Name: CASCADING_SELECTLIST_ITEM_1
    Build Option: - No Build Option -
    Created a 'Form on a table with report' as follows:
    Page 5: Report on TBK_HARDWARE_LOCATION
    Page 6: Form on TBK_HARDWARE_LOCATION
    in HTML Header of the page attributes for 'Form on TBK_HARDWARE_LOCATION' I have:
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script>
    function get_select_list_xml1(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    alert ('Dept no=' + pThis.value);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
    get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
    gReturn = get.get('XML');
    // gReturn = get.get();
    alert('Enames=' + 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");
    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);
    </script>
    On Page 6: 'Form on TBK_HARDWARE_LOCATION' I have the following items (plus some others):
    Name: P6_COUNTRY_CODE
    Display as: Select List
    HTML Form Element Attributes: onchange="get_select_list_xml1(this,'P6_STATE_CODE');"
    Source Used: Only when current value in session state is null
    Source Type: Database Column
    maintain session state: Per session
    Source value or expression: COUNTRY_CODE
    Named LOV: LIST OF COUNTRIES
    Name: P6_STATE_CODE
    Display as: Select List
    Source Used: Only when current value in session state is null
    Source Type: Database Column
    maintain session state: Per session
    Source value or expression: STATE_CODE
    Named LOV: - Select named LOV -
    List of Values definition:
         select state_code || ' - ' || state_desc d, state_code r
         from tbk_state
         where country_code = :P6_COUNTRY_CODE
         order by 1
    LIST OF COUNTRIES is defined as:
    select country_code || ' - ' || country_desc d, country_code r
    from tbk_country
    order by 1
    Now to the problem:
    I run page 5 (the report) to see the list of locations and then I try to edit a record (page 6). When I
    try to select a different country I get the following error (on IE):
    "Problems with this web page might prevent it from being displayed properly or functioning properly.
    In the future, you can display this message by double-clicking the warning icon displayed in the status
    bar.
    Line: 17
    Char: 5
    Error: Object expected
    Code: 0
    URL: http//cmrac4.cm.timeinc.com:7777/pls/htmldb/f?
    p=114:6:1413254636072443110::::P6_HARDWARE_LOCATION_ID:2
    I don't see any of the alert messages.
    I also tried to run the application process code in the SQL - Command Processor (I replaced
    :cascading_selectlist_item_1 with 'CA' or 'US') and got the following:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    Only one top level element is allowed in an XML document. Error processing resource
    'http://cmrac4.cm.timeinc.com:7777/pls/...
    <select><option value="99">- All States -</option><option value="X1">X1 - X1</option><optio...
    Can someone help me please?

    Varad,
    First, thank you for taking the time to try to help me with this problem.
    When I view the page's source code (here are the first few lines):
    <html lang="en-us">
    <head>
    <script src="/i/javascript/core.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/i/css/core.css" type="text/css" />
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='Would you like to perform this delete action?';
    //-->
    </script>
    <script>
    function get_select_list_xml1(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    //alert ('Dept no=' + pThis.value);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
    get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
    gReturn = get.get('XML');
    // gReturn = get.get();
    //alert('Enames=' + 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");
    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);
    </script>
    It looks like line 17 is:
    var l_Select = html_GetElement(pSelect);
    I'm still not sure why I'm getting this error and why it's not working?
    Thanks,
    Eti

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • JQuery UI problem

    Hello everybody! I hope not to bug you do to my frequent question but without your help I simply do not get past these little problems I have.
    I've been reading a lot about the jQuery and jQueryUI liabraries today and also use them by referencing them on google.
    google.load('jquery', '1.3.2');
    google.load("jqueryui", "1.7.2"); What I'd ultimately like to have is a new "confirm delete" dialog that appears once the delete button is pressed. On pressing the button, a grey overlay should appear while the underlying divs are locked. In fact it should be like here:
    URLhttp://www.jqueryui.com/demos/dialog/#modal-message[URL]
    The code is already partially working, which means that it displays the dialog and greys out the window once the page is loaded. Instead of being carried out on page load, it must be called when the "delete button" is pressed. However, I had no success calling the code from my delete button.
    Further more, I don't know exactly how to obtain the functionality of htmldb_delete_message,'MULTI_ROW_DELETE'; in the new dialog box.
    I hope you can follow me inspite of my poor English!?
    If you have an idea how the code needs to be tweaked for it to work as described please let me know! I'd really appreciate your help!
    A thousand thanks for your patience and effort,
    Sebastian
    Below is the code that I put into the HTML Header of my page. Somehow it has to be able to call the code instead and not have it running on page load...
    I'll try my best to find out, although I'm starting to get a little pessimistic about my success, since I've already tried it for hours!
    <script type="text/javascript">
         $(function() {
              $("#dialog").dialog({
                   bgiframe: true,
                   modal: true,
                   buttons: {
                        Ok: function() {
                             $(this).dialog('close');
         </script>
    <div id="dialog" title="Are you sure???">
    <p>
    <span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 30px 0;"></span>
    Do you really want to delete the dataset?
    </p>
    </div>

    Sebastian,
    Here's some example code from another demo:
    http://www.shellprompt.net/pls/apex/f?p=566:21
    This is from the HTML Header:
    &lt;link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/start/jquery-ui.css" type="text/css" />
    &lt;script src="http://www.google.com/jsapi">&lt;/script>
    &lt;script type="text/javascript">
       google.load('jquery', '1.3.2');
       google.load('jqueryui', '1.7.2');
    &lt;/script>
    &lt;script type="text/javascript">
    //&lt;![CDATA[
       var htmldb_delete_message = '"DELETE_CONFIRM_MSG"';
       var empIDElmt;
       $(document).ready(function(){
          $("#comment_dialog").dialog({
             autoOpen: false,
             bgiframe: true,
             resizable: false,
             modal: true,
             buttons: {
                'Cancel': function() {
                   $(this).dialog('close');
                'Ok': function() {
                   $('.ui-dialog-buttonpane,#cancel_request_p1').hide();              
                   $(empIDElmt).siblings('input[name="f07"]').val($('#emp_details').val());
                   $(this).dialog('close');
          $('.dtlsEdit').live('click', function(i) {
                var $elmt = $(this);
                empIDElmt = $elmt.siblings('input[name="f02"]').get();
                $('#emp_details').val($(empIDElmt).siblings('input[name="f07"]').val());
                $('#comment_dialog').dialog('open');
    //]]>
    &lt;/script>
    &lt;div id="comment_dialog" title="Enter Comment" style="display:none;">
       &lt;div class="ui-state-highlight ui-corner-all" style="margin-top: 20px;">
          &lt;p>
             &lt;span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;">&lt;/span>
             Enter your comment below.
          &lt;/p>
       &lt;/div>
       &lt;textarea id="emp_details" rows="5" cols="40" wrap="virtual">
       &lt;/textarea>
    &lt;/div>Regards,
    Dan
    http://danielmcghan.us
    http://www.skillbuilders.com
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Show/hide based on Multiple selections in a select box

    In my http header I have the following code...
    it works great as long as only one value is selected:
    if you highlight the ARRAMO value the DUNS field appears...
    if you highlight anything else the DUNS field disappears...
    but if I highlight both ARRAMO and another field, I want the DUNS to SHOW and it DOESNT..
    how do I fix this?
    <script type="text/javascript" src="#WORKSPACE_IMAGES#jquery-1.3.2.min.js"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script type="text/javascript">
    $(document).ready(function(){
    $('#P1_DUNS_NUMBER').attr("disabled", true);
    $('label[for=P1_DUNS_NUMBER],#P1_DUNS_NUMBER').hide();
    $('#P1_APP_REQUESTED').change(function(){
    if($(this).val() == 'ARRAMO'){
    $('#P1_DUNS_NUMBER').attr("disabled", false);
    $('label[for=P1_DUNS_NUMBER],#P1_DUNS_NUMBER').show();
    }else{
    $('#P1_DUNS_NUMBER').attr("disabled", true);
    $('label[for=P1_DUNS_NUMBER],#P1_DUNS_NUMBER').hide();
    </script>

    Using LOV, you can have multiple selection.
    For this you can write code in the KEY-LISTVAL trigger.
    Create an LOV for store code.
    In the text-item of store_code (where you want mul. selection), you assign the LOV to that item.
    In key-listval trigger,
    You can have something like
    Declare
    m_val varchar2(1000);
    a boolean;
    Begin
    m_val := :store_code;
    a := show_lov('STORE_LOV');
    if a then
      If m_val is null then
         m_val := :store_code;
      else
          If instr(','||m_val||',' ,||','||:store_code||',') = 0   /*check whether store code already selected, to get excat string comma is concatenated*/
             m_val := m_val||','||:store_code;
          end if;
      end if;
    end if;
    :store_code := m_val;
    End;Note :To check for validation, additional coding is required...

  • Disable columns in a tabular form on select list

    I am trying to void out or disable certain columns based on the option value selected from the select list. I have done this on a form with regualr page items. However, I am now trying to accomplish the same on a tabular form. I have tried the following function and onChange event but it doesn't seem to be working. Any idea what could be wrong?
    var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function Disable()
    var sel = document.getElementById('f08_0001');
    if (sel.options[sel.selectedIndex].value != '5' || sel.options[sel.selectedIndex].value != '7') {
    document.getElementById("f04_0000").readOnly = true;
    document.getElementById("f05_0000").readOnly = true;
    } else {
    document.getElementById("f04_0000").readOnly = false;
    document.getElementById("f05_0000").readOnly = false;
    THe onChange event : onChange="Disable()"

    I've even gone ahead and tried th following code but still am having no luck
    function Disable(pThis)
    var currIndex = $('select[name="'+pThis.name+'"]').index(pThis);
    if (pThis.value=='2') {
    $('select[name="f04"]')[currIndex].disabled=true;
    } else {
    $('select[name="f04"]')[currIndex].disabled=false;
    }

  • Delete column in an interactiv report

    Hello
    I would like have a column in an interactiv report to delete the row,
    with an X or a "delete" or so...
    is that possible?
    or how is that possible?
    regards
    markus

    Hi Markus,
    I made an application for the ORACLE APEX AWARD in Germany this year with exactly this feature in it.
    Here is the link http://apex.oracle.com/pls/otn/f?p=25500:1
    Login with Loginame: guest and Password: apexuser
    On the first page you can see an IR go on the detail button and you will get linked to another page. In it you find what you need in action. You also can download this sample application: http://www.oracle-apex-award.de/TIA-Technische-Infrastruktur.70.0.html
    Unfortunately the application is in German. I hope you will understand.
    Howto:
    Go into Report Attributes&gt;Column Attributes and change the values for:
    Link text: &lt;img src="#WORKSPACE_IMAGES#tmp_user_delete.png" alt="delete contact person"&gt; // for the picture
    Target: URL
    URL: javascript:confirmDeleteGET(htmldb_delete_message,'f?p=&APP_ID.:8:&SESSION.::::P8_ACTION_DELETE:#ID#');
    Go into Edit Page and edit the HTML Header:
    &lt;script language="JavaScript" type="text/javascript"&gt;
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function confirmDeleteGET(msg,url){   
    var confDel = msg;
    confDel= confirm("Would you like to perform this delete action?");
    if (confDel== true){      redirect(url);}}
    &lt;/script&gt;
    Now add a Before Header process
    Under source:
    begin
    delete files where id = :P8_ACTION_DELETE;
    commit;
    :P8_ACTION_DELETE := '';
    end;
    Under Conditional Processing
    Type: PL/SQL Expression
    Expression1: :P8_ACTION_DELETE IS NOT NULL
    Greetings,
    Tobias

  • Change language in messages

    Hello,
    I have a form created with the wizard and it contains a button delete in that isolated ' Optional URL Redirect ' the property ' URL Target ' programmes:
    Javascript:confirmDelete (htmldb_delete_message, 'DELETE');
    The message appears in English but I would like it in another language, how it is possible to change?
    Thank you very much

    Hello,
    You should go to the shared component module and under shortcuts, look for the “DELETE_CONFIRM_MSG” entry, and change the message to whatever you need.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • Java Script Disable/Enable Items Problem

    Hi,
    I followed the directions to disable/enable items from http://www.oracle.com/technology/products/database/htmldb/howtos/htmldb_javascript_howto2.html#disable.
    And I'm getting an error.
    I have fields like :
    Issue Summary
    Issue Description
    Identified By
    Identified Date
    Status (Values: Open, On-Hold, In-Process, Closed)
    Priority
    Target Resolution Date
    Whenever the Status changes to 'In-Process' I would like to disable 'Issue Summary and Issue Description'.
    Both the fields (Issue Summary and Issue Description) are being disabled when the Status changed to 'In-Process'
    but when I click the 'Apply Changes' button I'm getting the error: 'Issue summary cannot be null.'
    I do have a Not Null validation on Issue Summary field, but I'm only updating the Status field.
    Following is the JavaScript:
    In the Page Attribute (HTML Header)
    <script language="JavaScript" type="text/javascript">
    <!--
    //htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    // This function takes in:
    // 1. A string expression to evaluate. For example:
    // 'document.getElementById(\'P125_STATUS\').value=InProcess'
    // Notice the quotes are escaped using a "\"
    // 2. One or more arguments which are item ID's as strings. For example:
    // ...,'P1_ENAME','P1_SAL'...);
    // Notice the ID's are the item names, NOT item labels
    function disFormItems(testString,P125_ISSUE_SUMMARY,P125_ISSUE_DESCRIPTION){
    theTest = eval(testString);
    if(theTest){
    for(var i=1;i<4;i++){
    if (arguments){
    disItem = document.getElementById(arguments[i]);
    // disItem.style.background = '#cccccc';
    disItem.disabled = true;
    else{
    for(var i=1;i<4;i++){
    if (arguments[i]){
    disItem = document.getElementById(arguments[i]);
    disItem.disabled = false;
    // disItem.style.background = '#ffffff';
    //-->
    </script>
    In the Footer:
    <script language="JavaScript1.1" type="text/javascript">
    disFormItems('document.getElementById(\'P125_STATUS\').value==\'In-Process\'','P125_ISSUE_SUMMARY','P125_ISSUE_DESCRIPTION');
    </script>
    In the Status field HTML Form Element Attributes:
    onChange="javascript:disFormItems('document.getElementById(\'P125_STATUS\').value == \'In-Process\'','P125_ISSUE_SUMMARY','P125_ISSUE_DESCRIPTION');"
    Can somebody let me know what's wrong?
    Any help is greatly appreciated.
    Thanks in advance

    FYI: I used the following JavaScript to make it work:
    In the Header Text
    function SetReadOnly()
    var status = document.forms[0].p_t09.value;
    if(status == 'In-Process')
    document.forms[0].p_t02.readOnly = true;
    document.forms[0].p_t03.readOnly = true;
    //-->
    In the Footer
    <script language="JavaScript1.1" type="text/javascript">
    SetReadOnly();
    </script>
    In the HTML Form Element Attributes
    onChange="javascript:SetReadOnly();"
    Thank you very much for your suggestion

  • How to set "Files of type" when using a "File Browse" item.

    Apex 4.0.2
    Internet Explorer 7 +
    I have a "File Browse" item on a page and need to limit the types of files display to just "text (.txt)" files. How can this be done? Currently, the "Files of type" list shows "All File (*.*)", "Pictures (*.gif,*.png)", and HTML (*.htm,*.html)". In the best case, I would like to not have the "Files of type" list and have the user just limited to text files. However, adding Text files (*.txt)" to the "Files of type" list is ok.
    thanks,
    William

    Thought i'd do a bit of research after seeing Scotts wonderful ideas.
    So it turns out, IE made the file item read only from version 8, for security reasons. Read more: http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
    File Upload Control
    Historically, the HTML File Upload Control (<input type=file>) has been the source of a significant number of information disclosure vulnerabilities. To resolve these issues, two changes were made to the behavior of the control.
    To block attacks that rely on “stealing” keystrokes to surreptitiously trick the user into typing a local file path into the control, the File Path edit box is now read-only. The user must explicitly select a file for upload using the File Browse dialog.
    Additionally, the “Include local directory path when uploading files” URLAction has been set to "Disable" for the Internet Zone. This change prevents leakage of potentially sensitive local file-system information to the Internet. For instance, rather than submitting the full path C:\users\ericlaw\documents\secret\image.png, Internet Explorer 8 will now submit only the filename image.png.To resetting the actual items, suggestions I found were to replace the actual item. So instead of using $s, I just replace the element, with the existing element, causing it to re-initialise.
    var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function fileCheck(el){
        if(el.value){
            var validFile = false;
            var validExtensions = ["csv"];
            var filename = el.value;
            var fileExtIndex = filename.lastIndexOf(".");
            var fileExt = filename.substring(fileExtIndex+1, filename.length);
            for(i = 0; i < validExtensions.length; i++){
                if(validExtensions[i] == fileExt){
                    validFile = true;
                    break;
            if ( !validFile || fileExtIndex == -1) {
                alert("Invalid Extension. Permitted files must end with: " + validExtensions.toString());
                var htmlContents = el.outerHTML || new XMLSerializer().serializeToString(el);
                $('#P16_BINARY').replaceWith(htmlContents);
    }(obviously, replacing what you need to, to suit your page - i prefer scotts idea of passing in supported file types in the function, so would just pass in an array instead; but this is just for demonstration)
    with an onchange="checkFile(this)" on the element attributes.
    On a slightly un-related note, I found out IE doesn't support the wonderful indexOf function on arrays, that checks for the existence of the value in an array. Sucks.
    Edited by: trent
    Ah well, jQuery is there, maybe i should use that for searching arrays in the future.
    http://api.jquery.com/jQuery.inArray/
    Edited by: trent
    Forgot a demo link, for csv files: http://apex.oracle.com/pls/apex/f?p=45448:16
    Edited by: trent
    Modify function. Didn't work in Firefox

  • Javascript with only 'OK' option

    Hello,
    How do I modify the following Javascript so that there is no 'Cancel' option, only an 'OK' option?
    Thanks.....
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script language="JavaScript" type="text/javascript">
    function unable(msg)
    var confDel = msg;
    confDel= confirm(msg);
    if (confDel== true)
    </script>

    Hi Carl,
    I've posted an example: http://apex.oracle.com/pls/otn/f?p=16803:2
    What I'm trying to accomplish is when the user presses the Delete button, a javascript popup appears warning them that they can't delete if P2_BEACON_SDN_ID is NULL, otherwise, they can Delete. I appreciate your help.
    Hello,
    Yes it would help.
    Are you getting a javascript error? (no error)
    Are you using a select list, a text item or a text
    area? (see example and response above)
    Is it being called in the button wrong? (I don't understand your question)
    What your doing is fairly simple but something is
    wrong. But because I can't see it in context I can't
    debug it.
    Carl

Maybe you are looking for