How do I make JHeadstart confirm delete action

Hi gurus
How do I make my JHeadstart application confirm my action when I try to delete one or more rows? I have not seen any attribute to specify this... can it be done?
Claus

You can do this by modifying the doEvent javascript function in form.js as follows:
// doEvent submit routerForm
function doEvent(event, eventValue, checkForChanges, rowKeyStr ,doRollback)
// reset hidden fields for IE
resetValues(routerFormName);
var form = getRouterForm();
if (form.action == "" || form.action == null)
form.action = document.forms[dataFormName].action;
var confirmedDelete = true;
if (event == "Delete" )
var confirmedDelete = false;
// hardcoded message, you could use confirm(getMessage("messagekey")) instead
confirmedDelete = confirm("Are you sure you want to delete this record");
if(checkForChanges == null)
checkForChanges = true;
var changed = false;
var confirmed;
if (!ignoreChanges && checkForChanges && confirmedDelete)
changed = hasChanges();
if (changed)
confirmed = confirm(getMessage("hasChanged"));
if ((!changed || confirmed) && confirmedDelete)
form.event.value = event;
form.rowKeyStr.value = rowKeyStr;
form.eventValue.value = eventValue;
if(doRollback == null)
doRollback = 'true';
form.event_Rollback.value = doRollback;
form.submit()
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How i can make in the same action 2 condition (check the exemple down)

    how i can make in the same action 2 condition (check the exemple down)
    this is an example and I really thank you for helping me(any body plz)
    http://www.2shared.com/file/DPpdgC_a/Exemple_Edge.html

    1. make each rectangle a symbol  (Symbol_1 and Symbol_2) and uncheck autoplay()
    2. Delete your code on the click event and put the following code in compostion ready:
    var toggle=true;
    function btnPlay(){
              if (toggle){
                        toggle=false;
                        sym.getSymbol('Symbol_1').play();
              else{
                        toggle=true;
                        sym.getSymbol('Symbol_2').play();
    sym.$('Ellipse').click(function(){
              btnPlay();

  • Acrobat X Standard Bookmarks - How do I make the Zoom Level action default to "Fit Page" when combining to one pdf?

    Acrobat X Standard Bookmarks - How do I make the Zoom Level action default to "Fit Page"?
    When I combine multiple pdf files into a single binder, Acrobat creates a bookmark for each file.  In the properties for each bookmark, there is an action created to go to the page in the document and has the zoom level at "fit width".  Question is, how do I change this apparent default zoom level to "fit page" when Acrobat creates the bookmarks when combining the pdf files?

    Is there a way to do it in one step instead of individually on each bookmark?  This gets VERY cumbersome when I have upwards of a hundred bookmarks to change.

  • TS2755 Is there a fix to deleting already deleted address book contact, from messages search? i.e. when you type in say letter c in messages search, all contact with a c, past already deleted and current all appear?  How do you make the old deleted ones a

    Is there a fix to deleting already deleted address book contact, from messages search? i.e. when you type in say letter c in messages search, all contact with a c, past already deleted and current all appear?  How do you make the old deleted ones appear?

    only way is to restore the phone as new.  OR wait until IOS 7 comes out in the fall.

  • How can I customise a default delete action

    Dear's
    In Apex, I have report with edit button. By cliking on edit I can see the edit window with a delete button. I want to restrict this with some checks .
    The delete button should be displayed always.
    I want to utilise the default delete action, I don't want to write a code for deletion.
    On click , if the condition restrict , it should give message and should not delete that record.
    Otherwise the record shoud be deletd.
    Dennis
    Edited by: DJ on Mar 20, 2012 11:41 PM

    Dear trent
    Thanks,
    Actually I wanted use a complex condition, I want to write a funtion returing some value. Based on that I want to show a message or I want to do the delete action. If i am putting some condition for the delete button, if false, the button will not be displayed. This should not happen.
    What you mean by validation here, On which item or which action or where should I put the validation code in my senario.
    Dennis

  • How can I get a "Confirm delete button inside mail"?

    So that I don't accidently hit wrong button and delete a message or more?

    So that I don't accidently hit wrong button and delete a message or more?
    I don't think you can (provide Apple with your suggestion)
    However if you do make a mistake for most set ups you will find the deleted message in the trash and can simply drag it back to the mail box yo want it in
    Larry Nebel

  • I deleted my old work address but it keeps coming up in icloud how can i make sure its deleted for good?

    I have a macbook pro, ipad 2, iphone 4, 4s and desktop that I always try and sync together. I'm afraid they have put some kind of spy ware on it or remote login so they can see everything. How do I disable therse things so its like Im starting from a new computer. I used to have snow leapord and just switched but I thought it ould that ll go away...I need to be sure they can't see anything on here.  can someone help me"
    Thanks!

    i got the same problem i don't know what to do? also i can't remember my old password and i send to my old e-mail but still nothing what can i do

  • How can I make my ipad delete emails as I delete them on my laptop

    I usually look at my emails at home, in the office, or while traveling but only on one device.  Is there a way that I can set my IPAD so that when I delete an email from my laptop, that it will simultaneously delete from my IPAD?

    Hi lynnfromgrandy,
    Whether you can keep your email accounts synchronized across devices depends on what type of email account you have. IMAP, for instance, is a mail account that keeps all messages and their locations on the mail server. Thus any device will automatically update as long as it is connected to the Internet. Apple's iCloud mail is an example of this.
    POP accounts, on the other hand, do not do this, and thus email received and deleted on one device may be received again by another device and have to be deleted from there.
    Contact your mail service provider to find out which type of email account you have.
    See this article for reference -
    Mail settings you might need from your email provider - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How do I make a Mail Rule action bounce a message

    Is there a way to have a Mail Rule action bounce a message?
    Thank you in advance.
    Jeff

    paste the following into Applescript Editor and save it as a script
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    using terms from application "Mail"
    on perform mail action with messages selectedMsgs
    repeat with msg in selectedMsgs
    tell application "Mail"
    bounce msg
    end tell
    end repeat
    end perform mail action with messages
    end using terms from</pre>
    then have your Mail rule execute this script.

  • How do I make iTunes stop deleting my library?

    So my iTunes library (playlists and all) will spontaneously delete itself when I close it out, but only every once in awhile and not every time. However, the songs are still listed under "My Music>iTunes>iTunes Media". This started to occur shortly (but not immediately) after I transferred songs from a zip drive to my cpu that had been converted to .wav format via a 3rd party program. Thinking that iTunes had somehow become "infected", I uninstalled then reinstalled iTunes, re-adding the songs that I saved on a disc drive. Everything was great for a couple days, then boom, library gone again. Any suggestions? I'm a noob and I appreciate any help!
    -Dan

    Same EXACT thing keeps happening to me. Started happening when I downloaded the newest version of itunes

  • How do I make my mac delete imap emails deleted from another source.

    A verbose question, I know.  Allow me to explain.  I seem to have a problem which prevents my imap emails in the maverics mail app from being arranged as they are on the server and other devices.  This is to say, while my computer still recieves new mail, it will not arrange or delete my old mail as per the moves I had made with regard to this mail on another computer.

    it's only possible with pop3 type email accounts not with imap and exchange
    preference->account->click the account in question-Click advanced and set "remove copy from server after retreiving a message to what you wish it to be

  • How do you disable text cursor movement when scrolling horizontally with a tilt wheel or touchpad; or rather, how do you make these horizontal scrolling actions only scroll horizontally and nothing else?

    Frequently when I use a touchpad or tilt wheel mouse to scroll horizontally, the web page does not scroll at all. Instead, the text cursor moves left or right. If the text box is off-screen, the page will jump to it, losing the spot on the page I was reading. This happens way too often given the sensitivity of touchpads and tilt wheel mice.
    I'd like to just disable the cursor movement function of the horizontal scroll. I don't feel that it is useful and it actually hurts my web browsing experience. I do not want to disable horizontal scrolling though; I just want it to always scroll horizontally and do nothing else.

    You would make this a little easier if you posted a link to the page.
    Most of the jump seems to be some extra padding or margin between the tabs  when you rollover, but I am not able to find it.  Is there any other css that is governing this page? I did remove a couple of <p></p> set of tags you had  and it improved the jump, but it is still there.
    If the page is live, run it through the validator http://validator.w3.org/ , fix whatever errors it finds, if you still have the jump, post a link to the page and the issue might get found.
    Gary

  • Is there a way to make iphoto '09 have a confirm delete?

    Hi,
    New iMac/Apple user here, with a question. I have iphoto 09, and I imported my photos into the iphoto program (They were originally moved from a windows box to my mac desktop. iPhoto copied the files into its photo directory, and I deleted the old pics folder off the mac desktop. (I have it backed up tho). In iPhoto today, i mistakenly hit the delete button while browsing a pic, and deleted 2 pics from iPhoto. 2 Questions:
    1) Are the gone off the drive now? I believe it should go into "Trash," but s it actually gone off teh iphoto directory on the HDD?
    2) Can I make a confirm delete for that program, so when you delete, it says "Are you sure you want to delete this pic?" Then i can hit "ok" so i dont delete anyting else by mistake.
    -- my kids are too "touchy" with the keyboard, and the love looking at pics...i can imagine them hitting the delete button and deleteing stuff by accident.
    Thanks for your help.
    And i love the new mac BTW.

    A J Brutico
    Welcome tot he APple user to user assistance forums
    1) Are the gone off the drive now? I believe it should go into "Trash," but s it actually gone off teh iphoto directory on the HDD?
    It is in the iPhoto trash - in the source pane on the left - to delete from the hard drive you must empty the iPhoto trash - iPhoto menu ==> Empty trash - and it is good to do this every hundred photos deleted or so - iPhoto does not like to delete lots of photos at one time
    2) Can I make a confirm delete for that program, so when you delete, it says "Are you sure you want to delete this pic?" Then i can hit "ok" so i dont delete anyting else by mistake.
    No - but you can select photos in the iPhoto trash and right click (control click) and restore to library
    LN

  • How do I make more room on my startup disc?

    how do I make more room/delete things on my start-up disc?

    Hi Barry ...
    OSX Tips Where did my Disk Space go?
    Freeing space on your Mac OS X startup disk
    Freeing Up Hard Disk Space - Mac GuidesFreeing Up Hard Disk Space - Mac Guides

  • HT204370 i'm attempting to download a movie and it is stating the disk is full i am attempting to use.  How do you make space?

    i'm attempting to download a movie and it is stating the disk is full i am attempting to use.  How do you make space?

    Delete something

Maybe you are looking for

  • How can I see how many songs I have in iTunes 11

    How can I see how many songs I have in iTunes 11?

  • Depreciation calculated on credit memo is more than its own value

    Hi, We have noticed that the depreciation calculated on credit memo is more than its own values. please refer the screen shot below: 24.05.2010     108,044.64     120     Goods receipt     108,044.64-     0     USD 24.05.2010     108,044.64     120  

  • Connecting a monitor..

    Will this work: ----(Last summers Macbook) Mini-DVI port ----Apple Mini-DVI to DVI Adapter (http://store.apple.com/us/product/M9321G/B?mco=NTEwODYxMw) ----Dell G2410 24" Monitor (http://accessories.us.dell.com/sna/products/Monitors/productdetail.aspx

  • WHERE clause in a SMARTFORM loop, problems with parenthesis

    Hi all gurus, a simple question: I'm coding a LOOP in the form builder for a smartform ... this simple loop should bind text elements to every position of a purchase order. The WHERE clause should be as follows: WHERE GUID = WA_ITEM-GUID AND ( TDID E

  • TS3276 Why can't I open Mail anymore?

    I was using mail and suddenly it seemed to freeze. I was sending 3 different emails and it did not register in sent mail. Next thing I know I get the following every time I try to open mail: Mail can't open because you don't have the necessary permis