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

Similar Messages

  • Authorizations to restrict Query Designer with Only Display option

    Hello,
    I have looked all most all possible ways in internet to find out a suggestion/solution for the below. But Invain.
    I would like to know the Transactions, authorization objects and profiles  that are responsible to restrict users not to change and copy queries from QD.
    I need only display option for queries.
    Also,please confirm shall we restrict the same from Transaction SCC4.
    Thanks In Advance.

    Hi there,
    Since you're talking about a QD system, you should lock it in transaction SCC4.
    In case you need to change things in QD without opening the system in SCC4, you can go to transaction rsa1->transport connection and click on Object Changeability. In there you can define what paricular options are "opened for changes" even with SCC4 in close mode.
    Also, for roles having that objects, you should use the authorization object S_RS_COMP and S_RS_COMP1 with Activity with value 02 - Display
    Diogo.

  • HT4796 migration assistant will not download to my XP pc, it says successful, then a window opens saying an error with only the option of QUIT

    Using my iMac has been nothing but frustrating, out of the box and it works, yeah, plug in and power comes on...but then amatuerish tutorials, then try migrating data, phone support offered not help and a return call that somehow never made in the proposed 1 hour window.
    All i want to do is migrate my data from pc to mac...but maybe i don't.

    First on my pc,XP pro the Windows Migration Assistant says you have "successfully downloaded."  Then I go to start>all programs>windows migration assistant.  A single click and a Apple window appears with the two finder faces and displays the following message in total:
         "An error occurred while preparing your information for transfer."
    The Go Back option is grayed out, the only option I have is Quit. 
    This is all there is.  Apple tech is preplexed after 2 hours.  His solution is for me to purchase an auxiliray HD and call back.

  • Lync 2013 user appears twice in Lync, once with all features, a second time with only the option to make a voice call

    Hi,
    I'm using 15.0.4551.1007.
    A user appears twice in my contact search but in the second instance he has a phone icon and I can only make a video call to the user.
    His contact card only shows a phone number in 'Other'.  The number appears in his other contact card but not in the same format.
    I suspected he is somewhere in my contacts but a search found nothing.  He's not listed twice in the Exchange GAL either.
    Where can Lync be getting this information?  it doesn't happen to every user and he's enabled the same way as everybody else in Lync.
    Thanks,
    rudif

    Open Lync option, click Personal tab. Choose None under Personal information manager.
    Then sign out and sign in to check if you can see the contact twice for the specific user.
    Please also check if other users have this issue. If they do have, the problem locates on the address book server or Active Directory.
    If only you have this problem, try to delete the Lync cached file for you user.
    Lisa Zheng
    TechNet Community Support

  • I want to install apps from itunes to my ipod and manage them manually but there is only one option to do that replaces my apps on ipod with apps in my itunes library . Is there any way to install the apps without replacing them??

    I want to install apps using itunes from my pc but there is only on option for doing that i.e. itunes replace the installed apps with apps on itunes. Is there any other way for doing that without replacing my apps ???

    Ipod touch will sync with one computer at a time.  If you sync to another then it will erase the current content and replace with content from the new computer.

  • I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to sen

    I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to send emails with photos embedded. I like adding the frames and backgrounds and I think it's easier for recipients to look at the photos. Thanks for any suggestions of things to try.
    Gail

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • I formatted and re-installed itunes. now it flashing massage that my ´ipod is synced with another iTunes library. An ipod can be synced with only one library at a time.´ now it is giving 2 options,  1- erase and sync, 2- transfer purchases. what to do?

    i formatted and re-installed itunes. now it flashing massage that my ´ipod is synced with another iTunes library. An ipod can be synced with only one library at a time.´ now it is giving 2 options,  1- erase and sync, 2- transfer purchases. what to do?

    Follow these instructions:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • I am doing a book.  Can I select the option of 13 photos on a page, put only one photo on the page in the middle box and expect the page to be printed with only that picture surrounded by white?

    I am doing a book.  Can I select the option of 13 photos on a page, put only one photo in the middle box and expect the rest of the page to be printed with only white aroind that photo in the middle?

    No
    All photos frames must contain photos or you can not order the book
    LN

  • I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    P.S. Site is http://www.coldwatercreek.com

  • Please help me out with  "Data only excel option "

    Post Author: pavan pusuluri
    CA Forum: Crystal Reports
    When i am trying to spool the data with data only excel option using crystal reports XI, the records are appearing in two rows instead of single row. i have studied that when we use data only excel option entire record will be displayed in a single row,but it is not appearing in that way.Please help me out in fixing this bug. I am very much new to crytal reports.

    Post Author: pavan pusuluri
    CA Forum: Crystal Reports
    I thank you for the prompt reply.  
    All the field are of same size and height.  The format is fine.  The report is designed in such a way that data is   displayed in three detail sections. What i would like to have is " i want the data in these three sections to be displayed in a single row when i select the data only excel  export option".Please help me  out in fixing this issue.
    Thanks in anticipation

  • HT204291 Hi, I have the apple tv icon in i Tunes  but when I click the icon only a small window comes up with only speaker control, no option of turn mirroring off or on. any ideas?

    Hi, I have the apple tv icon in i Tunes  but when I click the icon only a small window comes up with only speaker control, no option of turn mirroring off or on. any ideas?

    thats not how airplay mirror works
    read this
    http://support.apple.com/kb/ht5404

  • When i try to sync photos from iPhoto to my iPad using iTunes,  the "Selected Folders" option is greyed out with only the "All Folders" option available, how do i change this?

    When i try to sync photos from iPhoto to my iPad using iTunes,  the "Selected Folders" option is greyed out with only the "All Folders" option available, how do i change this?

    I add the keyword 'sync' to any photos I want added to the iPhone/iPad.
    Then, during the regular process of syncing the iPhone/iPad with my computer (mac), the photos with that keyword would be copied onto the iPhone, iPad.
    I've been doing it this way ever since I was shown how to; ie after I got my iPhone 2 years ago. And every time the process worked - until the last few weeks. Suddenly it doesn't do it any more.
    I believe I have upgraded software (either iTunes or iPhoto or both) during this period. I try to keep my software updated but have noticed previously that the new version often is disappointing.
    I've not tended to use Smart albums much.
    MM

  • HT1766 Hello my ipad 4 has been locked what should i do? it gives a message only your ipad has been locked with no other options. Thanks.

    Hello my ipad 4 has been locked what should i do? it gives a message only your ipad has been locked with no other options. Thanks.

    it cant just be locked. it may have 'ipad is disabled' if you have a passcode. give me more detail about what is going on.

  • I have a Mac Book Air with 10.6.8. Is Montain Lion my only update option? Is it a must do?

    I have a Mac Book Air with 10.6.8. Is Montain Lion my only update option? Is it a must do? Thanks

    You can also get Lion, but personally, I think Mountain lion is what Lion was supposed to be.
    In any case, there is absolutely no reason for you to get either one; Snow Leopard is a nice and reliable OS - of course, if you want any of the added features of the newest OS, then you will have to buy and install it.
    So, the decision is up to you. Also note: any older PPC apps that still worked on Snow Leopard will no longer work on the new OS - you'd have to purchase upgrades if one is available.

  • Executing Javascript with button

    How can I go about executing javascript with an item level button?
    In the HTML DB 2 day tutorial it says this:
    Calling a JavaScript from a button is a great way to confirm a request. Oracle HTML
    DB actually uses this technique for the delete operation of most objects. For example,
    when you delete a button, a JavaScript Alert Box appears asking you to confirm your
    request. Consider the following example:
    <script language="JavaScript1.1" type="text/javascript">
    function deleteConfirm(msg)
    var confDel = msg;
    if(confDel ==null)
    confDel= confirm("Would you like to perform this delete action?");
    else
    confDel= confirm(msg);
    if (confDel== true)
    doSubmit('Delete');
    </script>
    This example creates a function to confirm a delete action and then calls that function
    from a button. Note that the function optionally submits the page and sets the value of
    the internal variable :REQUEST to "Delete," thus performing the delete using a process
    that conditionally executes based on the value of request.
    Note that when you create the button you would need to select the Action Redirect to
    URL without submitting page . Then, you would specify a URL target such as the
    following:
    javascript:confirmDelete('Would you like to perform this delete action?');
    Can I only do this from a region button?

    hi,
    I have created a javascript form validation and finally (if its passes the validation) I am setting the :REQUEST as doSubmit('GO');
    I am calling a conditional process with condition as request = expression1
    with expression 1 as GO.
    The javascript is as follows
    function message_name_not_null(){
    if(document.getElementById('P14_MESSAGE_NAME').value.length==0)
    alert("Message Name is Mandatory!!");
    return;
    else if(document.getElementById('P14_MESSAGE_TEXT').value.length==0)
    alert("Message Text is Mandatory!!");
    return;
    else
    doSubmit('GO');
    My problem is my process is not getting called in button click(I have called the javascript from this button as javascript:message_name_not_null(); in Optional URL Redirect section)
    I have specified the :REQUEST value in the branches also.
    Any sort of help please..
    Thanks in Advance
    Kaushik

Maybe you are looking for

  • Intrastat report generation

    Hi Experts, I am facing a problem with VX99 T code .this T code is related "Foreign trade: Cockpit" where we are supposed to generate the INTRASTAT report for the  data arrivals (purchase orders) in FRANCE. as of now in the intrastat reporting the da

  • Old iPod mini can't be recognized after formatting, and iTunes 'Apple Mobile Device Driver not found.'

    My roommate gave me an old iPod Mini a few days ago. It was working fine 'til I plugged it into my computer and it asked me to format it. I did, and now it cannot be recognized by iTunes or my computer. My computer views it as a "removable disk" whic

  • My iPad is not being recognized by iTunes...

    My iPad is not being recognized by iTunes.  I am trying to sync with my desktop so that I can reset everything since a train wreck associated with provider change has occured.  I've tried my iPod as well, and it isn't being recognized either.  Does a

  • ORA-00235 Standby Database Controlfile problem

    Dear fellow dbas, I am just starting to become acquainted with high availability and have to solve following problem. We have a RAC database with a standby database that is out of sync. In fact the standby database is running in async mode but archiv

  • Runtime error : OBJECTS_NOT_NUMLIKE.

    Hi All, We are getting abap programming error in st22. " the current statement only supports number-type data objects. Runtime error : OBJECTS_NOT_NUMLIKE.   actually we are trying delete internal table. can you please advice me.. Jimmi