Help with Javascript for the button Delete

Hi, Im new JavaScript and have my code works partially, but the trouble with a nested if-then-else statement.

I have a page element, P4_COUNT, and if its value is 0, the button Delete will allow the user to delete the record. If the number is > 0, a message should appear stating that the record cannot be deleted. That's what I have so far and it works, but the first ELSE is misplaced. This code is the URL target for my button remove.

JavaScript:var response; response = confirm ("are you sure you want to delete this POC?'");
If {(response)
If (document.getElementById('P4_COUNT').value == 0) {}
doSubmit ('DELETE');
}
}
else {-this other fires when the user hits cancel on the first question above not what I want, I want another one here who said only: "removal cancelled '"}
-This one should only be fired if p4_count is not equal to 0
var answer2;
answer2 = confirm ('you cannot remove this POC, that this POC is associated with a RIF.');
If {(answer2)
Alert ('cancelled deletion');
}
else {}
Alert ('cancelled deletion');
}
}


The above should follow this logic:

Are you sure you want to delete this POC?
Yes - if p4_count = 0 then
delete the record
on the other
second line: cannot delete this record
OK - prompt removal cancelled
Cancel - prompt removal cancelled
end if;
Cancel - prompt removal cancelled


Help, please. Thank you, Laura

Published by: user8936524 on May 10, 2010 14:14

Hello

Try if it works. I didn't test it

javascript:if($v('P4_COUNT')*1==0){
var answer=confirm('Are you certain you want to delete this POC?');
if(answer){doSubmit('DELETE');}
else{alert('Deletion Cancelled');}
}else{alert('You may not delete this POC, as this POC is associated to an FRR.');}

BR, Jari

Tags: Database

Similar Questions

  • HELP with animation for the buttons (I tried to search for days for solution)

    Hellooo

    I tried to watch the discussions here for a solution, but I can not find... can someone help me please?

    I design a website in flash8... now, I created a few buttons and I want that when I click the button stars will fly on their part and there will be a sound... I have already created the animation of the separately-star and it's in the library, I also sound file... I just don't remember how put everything together... can someone please remind me what to do step by step so When I press the button that the stars will fly directly from the button and the sound will play? pleaseeeeeeeee, it's very very important to me... I'd be grateful < 3

    in your library, double-click your button.  Select the image down, and in the properties panel, select your sound and assign its sync to the event.  then drag your animation to your library on the stage.

  • How can I remove bookmarks on my toolbar when the "bluestar" is not turned on? (Ditto for the button 'delete' in the menu library).

    Dear Sir/Madam
    I had a quick glance at your solutions page and have tried to use all of the tips suggested however, when I try to remove three items on toolbar, none of them illuminate the "BlueStar" located next to their address. (I got rid of other elements). I also tried to remove the Firefox menu library items, however, the button delete them is not on either. I'm now concerned that items are spyware. I thought to reinstall the software, but it would mean losing all my favorites.

    For your information, I've just updated Firefox to 28.0.

    I would appreciate your help with this matter.

    Kind regards
    Suzanne

    Good to hear! I think you should be able to use the trackpad however. I think I remember to make it work on Mac a friends (first one I've listed below, in this web page)-use two fingers and tap the trackpad. I think you might have to watch that you don't type it too lightly, or he doesn't know what you're trying to do.

    On this second which says to use the CTRL, to my memory, the Mac is not that (it does now, maybe)... I think I had to use a different key that was downstairs left... Google Images, I see that there are four: fn, control, option, command... If the control key does not work, my next guess would be to use the option or command key. It's easy to see which experience.

    If you press and hold the function key, and then regular - click on the bookmark you want to delete, isn't that bring up the contextual menu? It's rather than just giving the bookmark two fingers tap.

    • * * * * * * * * * * * * * * * * * * * * * * *

    Use the tap two fingers on the trackpad, not a click, just a light tap with two fingers.

    • * * * * * * * * * * * * * * * * * * * * * * *

    If you have a mouse with a button, hold down the CTRL key, and then click the mouse button.

    If you have a magic mouse, press and hold the mouse on the right side.

    • * * * * * * * * * * * * * * * * * * * * * * *

    Otherwise, go to system-> Trackpad-> Point & Click Preferences and select your preferred option for "secondary click."

  • Need help with Javascript for Acrobat 9 Pro

    Hello

    I have created a PDF form in Adobe Acrobat 9 of Profession.  Not having not much experience with Javascript, I found this forum very helpful and have many examples of script used to other issues, I had.  I was hoping that someone could help me with the following script, I tried many variations, cannot operate.

    var ratio = this.getField("ratio").value
    concentration of var = this.getField("concentration").value
    var result = this.getField("result").value
    If (ratio.value > = 50.00)
    {result.value = 'PASS' ;}
    If (ratio.value".value > = 40.00)
    {result.value = 'PASS' ;}
    If ((concentration.value ==61) & & (ratio.value > = 49,25))
    {result.value = 'PASS' ;}
    If ((concentration.value ==61) & & (ratio.value > = 39.25))
    {result.value = 'PASS' ;}
    If ((concentration.value ==62) & & (ratio.value > = 48.50))
    {result.value = 'PASS' ;}
    If ((concentration.value ==62) & & (ratio.value > = 38.50))
    {result.value = 'PASS' ;}
    on the other
    {result.value = "FAIL" ;}

    It's just a piece of code, concentration values run from 61 to 99 and the value of the ratio varies for each value of the concentration, there is a high ratio and a low ratio.  The result of this field to complete the field of results with a SUCCESS or a FAILURE.  This isn't working... any help is greatly appreciated!

    If this script is attached to the Calculate of the "result" field event, if I understand correctly the logicm code should be something like:

    // Get a reference to the ratio field
    var ratio = this.getField("ratio");
    
    // Get a reference to the concentration field
    var concentration = this.getField("concentration"); 
    
    // Default
    var res = "FAIL";
    
    if (ratio.value >= 40.00) {
        res = 'PASS';
    }
    
    if ((concentration.value == 61) && (ratio.value >= 39.25)) {
        res = 'PASS';
    }
    
    if ((concentration.value == 62) && (ratio.value >= 38.50)) {
        res ='PASS';
    }
    
    // Set this field's value
    event.value = res;
    

    If the code is placed elsewhere, you must indicate the location.

  • Need help with SQL for the following logic.

    I have a table with 3 columns and the following data:
    DATE NAME S_NO
    1 ABC1 JANUARY 1, 2001
    1 ABC2 JANUARY 10, 2001
    1 ABC3
    1 ABC4
    ABC1 2 1 DECEMBER 2010
    ABC2 2
    2 ABC3 DECEMBER 10, 2010
    2 ABC4 DECEMBER 5, 2010
    3 XYZ1 FEBRUARY 1, 2001
    3 XYZ2 FEBRUARY 2, 2001

    I need to retrieve the value of NAME for each S_NO corresponding to the maximum DATE. In the above example, it will be:
    1 ABC2
    2 ABC3
    3 XYZ2
    /* Formatted on 9/10/2012 2:50:13 PM (QP5 v5.139.911.3011) */
    WITH t AS (SELECT 1 S_NO, 'ABC1' NAME, '1-JAN-2001' dt FROM DUAL
               UNION ALL
               SELECT 1, 'ABC2', ' 10-JAN-2001' FROM DUAL
               UNION ALL
               SELECT 1, 'ABC3', NULL FROM DUAL
               UNION ALL
               SELECT 1, 'ABC4', NULL FROM DUAL
               UNION ALL
               SELECT 2, 'ABC1', '1-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 2, 'ABC2', NULL FROM DUAL
               UNION ALL
               SELECT 2, 'ABC3', '10-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 2, 'ABC4', '5-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 3, 'XYZ1', '1-FEB-2001' FROM DUAL
               UNION ALL
               SELECT 3, 'XYZ2', '2-FEB-2001' FROM DUAL)
    SELECT *
      FROM (SELECT S_NO,
                   name,
                   RANK ()
                   OVER (PARTITION BY s_no
                         ORDER BY TO_DATE (dt, 'dd-mon-yyyy') DESC)
                      rk
              FROM t
             WHERE dt IS NOT NULL)
     WHERE 1 = RK
    
  • Need help with italics for the ePub and InDesign CS5

    Can anyone one help out me. I can't find the answer to this and I know it must be simple, I just lack.

    I create an ePub from InDesign CS5. All I want to do is have the italics that are displayed in the text box in InDesign, see the in the epub file.

    I prefer not to say what I did (I think I've tried everything, but obviously I got them all wrong, so no point listing them) and I hope that someone can make a simple guide, step by step how to make italics appear in the ePub file.

    Sorry if this question is under everyone, it's really annoying that I can't figure this on my own.

    Yes unfortunately sometimes does. ID is really a ship in order to get the content in epub format.

    You must go through your CSS for every job.

    Addition of

    serif; or without serifs; After each occorence a police.

    also, most in CS5 importanley make sure you have font name in the top of the CSS file "" round then, otherwise it appears correctly in the Adobe Digital Editions software, actually to check the rest of the code in this a well for example:

    {@font-face}
    Police-family: Minion Pro;
    make-style: normal;
    make-weight: normal;
    SRC:URL("fonts/MinionPro-regular.OTF");
    }

    I really only the minimum required in ID and do the rest in dreamweaver

  • Help with Sql for the annual report by month

    Hi, I got the task of creating an annual report each month that shows the benefits of the enterprise by month and total in the last column to show what branch was the hightest income.
    Branch | January | February | March | April | Can | June... | Total |
    ABC | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | Total of the Amt |
    DEF | $18.01. $3.88. $18.01. $4.12 | $18.01. $3.97 | Total of the Amt |

    Can someone please help me give an idea of how to write sql for this report... ? I build subqueries for everymonth giving dates for Jan/Feb/March... but I think that this is not the right way to do it...
    -----------------------------------------------------------------------------------------------------------------------
    SELECT
    Sum (a.Commission) December,
    Sum (b.Commission) November
    Of
    (
    Select
    c.account_ID,
    c.Officer,
    c.account_product_class_id,
    Sum (c.dp_monthly_premium) Commission
    Of
    c contract
    Where
    c.account_ID = 109 and
    c.Status = 'APPROVED' and
    c.protection_effective between December 1, 2009 "and on December 31, 2009"
    Group by
    c.account_ID,
    c.Officer,
    c.account_product_class_id
    ),
    (
    Select
    c.account_ID,
    c.Officer,
    c.account_product_class_id,
    Sum (c.dp_monthly_premium) Commission
    Of
    c contract
    Where
    c.account_ID = 109 and
    c.Status = 'APPROVED' and
    c.protection_effective between November 1, 2009 "-November 30, 2009"
    Group by
    c.account_ID,
    c.Officer,
    c.account_product_class_id
    ) b
    -----------------------------------------------------------------------------------------------------------
    I always hight hope this forum. So please help. Thanks in advance.

    Published by: Aditi_Seth on January 26, 2010 14:29

    You may reach the columns using decode:

    Select sum (decode (to_char (c.protection_effective, 'MM'), 1, c.dp_monthly_premium, 0)) January
    , sum (decode (to_char (c.protection_effective, 'MM'), 2, c.dp_monthly_premium, 0)) February

    etc.

    At least, this will improve efficiency, because you need only make one pass.

    no guarantee that the media are quite right - I did not execute the query, but I think that you should get the idea!

  • Override the default behavior of the button Delete of list manager

    Hello

    Everyone please help. I'm trying to override the default behavior of the button Delete of list manager. The first thing, I want to restrict users to select only one option from the list to delete; meaning don't allow multiple options for users to remember. Before removing the selected option in the list; I want to perform a Javascript/AJAX validation on the database to check if the user has permissions to remove the option from the list. If the user has privileges simple delete option selected in the list. If the user does not have privileges and then draw the attention of the user with a message "not authorized...!  and this should occur when the user selects the option in the list to the list manager, and then click Remove from the list manager.

    Remove list manager of the shutter release button of the function 'deleteListElement ($x ('P3_LM_USES'))' on the onclick event. P3_LM_USES is my element of list manager in a form.

    I use the version of Oracle APEX 4.0.2 and Oracle 11 g R2 database.

    I was able to substitute the Add button functionality using the JS function below list manager and perform validation on database by using the method of ajax on request.

    {code}

    < script type = "text/javascript" >

    <!--

    This replaces the default manager of Apex lists which removes embedded spaces from the last item when it is added to the text box

    appendToList function (value, toList)

    {

    First of all, get rid of all spaces

    trimmedValue = value;

    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = VALIDATE_ADD_USE', 0);

    ajaxRequest.addParam('x01',trimmedValue);

    var ajaxResult = ajaxRequest.get ();

    Alert (ajaxResult);

    If (ajaxResult == 1)

    {

    Alert ('after alert ajaxResult');

    Then, divide the string separated by commas in a table

    valueArray = trimmedValue.split(",");

    for (i = 0; i < valueArray.length; i ++)

    {

    If (valueArray [i]! = ' ')

    {

    found = false;

    for (j = 0; j < toList.length; j ++)

    {

    If (toList.options [j] .value is [i] valueArray)

    found = true;

    }

    If (found == false)

    toList.options [toList.length] = new Option ([i] valueArray, [i] valueArray);

    }

    }

    }

    on the other

    {

    Alert ("you cannot add it" "+ theValue +'".) Please contact the administrator of the application. ") ;

    }

    }

    ->

    < /script >

    {code}

    I have this above function JS in a section of text of element the element of P3_LM_USES list manager post. Please help me with your suggestions for the button Delete.

    Thank you

    Orton

    Hello

    I was able to solve the problem by replacing the default functionality of the list manager delete button using a JS/AJAX process. FYI, here's the JS function.

    {code}

    function deleteListElement (toList)

    {

    Alert ("Hello in function");

    var x = $x ('P3_LM_USES');

    for (var i = 0; i)< x.options.length;="">

    {

    If (x.options [i] .selected is true)

    {

    Alert (x.options [i] .value);

    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=VALIDATE_REMOVE_USE',0);

    ajaxRequest.addParam('x02',x.options[i].value);

    var ajaxResult = ajaxRequest.get ();

    If (ajaxResult == 1)

    {

    var y = x.remove (i);

    alert (y + 'removed');

    }

    on the other

    {

    Alert ("you can't remove this" ' + x.options [i] .value +' "item in the list.) Please contact the database administrator.') ;

    }

    }

    }

    }

    {code}

    Thank you

    Orton

  • can anyone help with drivers for Minolta Scan3 double for the Vista operating system

    If anyone can help with drivers for Minolta Dualscan 3 working with Vista?  3 Dualscan will work with Windows 7 or Linux?

    Hi Mike,.

    You can download and install the drivers for Minolta Dualscan 3 from this link.

    http://onyxftp.mykonicaminolta.com/download/Search.aspx?HT=

    Hope the helps of information.

    Please post back and we do know.

  • How can I keep my top bar with "delete" on it to go away when I click it. I want to remove successive emails using the button Delete on top of my Windows Live Mail

    I want to delete several emails in Windows Live Mail. When I click on the button Delete in the upper part, the entire bar disappears. I want to keep it there all the time to use it to remove some of the emails but it keeps going away after a single use.

    Right click on the home tab and click cut the Ribbon to deselect.

    You can also ensure that the delete button is always visible by showing it on the Quick Access toolbar at the top of the window. There is a drop-down menu at the right end of the QUICK access with the controls bar, and others can be added by right-clicking on any command on the Ribbon and select Add to quick access toolbar.

  • Need help for the button to trigger on the text caption effect

    Hello world

    I work in

    Screen Shot 2016-04-13 at 12.52.31 PM.png

    on a Mac (chart below)

    Screen Shot 2016-04-13 at 12.53.04 PM.png

    I'm very new to Captivate (only my second week), but am familiar in other Adobe programs. I'm trying to get a dynamic object that I made in a button to trigger an effect on a text caption. I scrolled the forums here and tried various things of the advanced actions for just using the drop down menus in the property inspector and nothing that I tried gives me the result I want.

    Here is a screenshot of what I'm working with.

    Screen Shot 2016-04-13 at 12.54.37 PM.png

    What I want to do is for the arrows for the buttons (and they are currently). When the slide appears first I don't want that image and the arrows visible. So when the user clicks on the arrow, I want the effect I chose (spiral) that will be triggered with the corresponding text.

    Looks like my property for each caption Inspector (the names are different for each)

    Screen Shot 2016-04-13 at 12.58.03 PM.png

    And I also tried to write a few advanced Actions that follow as well as tutorials that I found online, and nothing gives me what I want.

    When I preview the slide I can see everything on entry and then when I click the button to apply the effect. I rechecked the advanced actions and usually when I try these nothing happens at all.

    Is - it there anyway that I can get that works this way, I'm wanting. It seems that it should be simple and I'm right on it.

    The shape of buttons are all pause at this moment, it's OK.

    I just tried it out and see what you mean. The text is there from the beginning, and that shouldn't be the case. you expect it not to appear when the button is clicked. I have never used this spiral effect myself, but since you have no control over it, I mean you can't see where starts the effect at all, there is no visible path you have with the other effects of the entry. Either, you need to create a custom, effect whose path begins with text outside the scene, or a combination of an Alpha to + a standard entrance effect.

    Tried the first one with a simple left to a straight path. I edited the paths so that they all start at the same position horizontal and end at the same horizontal position. So happy with the leaders and Guides that we finally got in Captivate, they are very useful for this type of design:

    It's the chronology:

  • ToolTip for the button

    Nice day

    I'm new to the blackberry development. I created a bitmapbuttonfield using the examples of the advanced user interface. There is a button with an image. I want to display a ToolTip for the button when the button receives the focus. Can someone please help

    Thanks in advance

    Hello

    Use this code:

    package mypackage;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    
    public final class MyScreen extends TooltipScreen
    {
    
        ButtonField btn1,btn2,btn3;
        public MyScreen() {
    
            btn1=new ButtonField();
            btn1.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                    Dialog.alert("Button 1 Click");
                }
            });
            btn2=new ButtonField();
            btn2.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                    Dialog.alert("Button 2 Click");
                }
            });
    
            btn3=new ButtonField();
            btn3.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                    Dialog.alert("Button 3 Click");
                }
            });
            add(btn1, "Button 1");
            add(btn2, "Button 2");
            add(btn3, "Button 3");
    
        }
    
    }
    
    package mypackage;
    
    import java.util.Timer;
    import java.util.TimerTask;
    import java.util.Vector;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.XYRect;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class TooltipScreen extends MainScreen {
    
        TooltipScreen screen = this;
        boolean doRedraw = false;//prevent infinte redrawing
        Vector tooltips = new Vector();//vector to hold tooltip strings
        private Timer tooltipTimer = new Timer();
        private TimerTask tooltipTask;
        boolean alive = false;//is the tooltip alive? used to pop it after our timeout
        int count = 0;//used to calculate time tooltip is displayed
        //tooltip popup colours:
        int backgroundColour = 0xeeeeee;
        int borderColour = 0xaaaaaa;
        int fontColour = 0x666666;
        //the tooltip:
        String tooltip;
        int tooltipWidth;
        int yCoord;
        int xCoord;
        //region parameters:
        XYRect contentArea;
        int contentBottom;
        int contentRight;
    
        public TooltipScreen() {
            super();
    
            //when timeout reaches 100ms*20 ie. 2seconds set alive to false and redraw screen:
            tooltipTask = new TimerTask() {
    
                public void run() {
                    if (alive) {
                        count++;
                        if (count == 20) {
                            alive = false;
                            invalidate();
                        }
                    }
                }
            };
    
            tooltipTimer.scheduleAtFixedRate(tooltipTask, 100, 100);
    
        }
    
        //override add method adds an empty string to tooltip vector:
        public void add(Field field) {
            tooltips.addElement("");
            super.add(field);
        }
    
        //custom add method for fields with tooltip: add(myField, "myTooltip");
        public void add(Field field, String tooltip) {
            super.add(field);
            tooltips.addElement(tooltip);
        }
    
        public void setColours(int backgroundColour, int borderColour, int fontColour) {
            this.backgroundColour = backgroundColour;
            this.borderColour = borderColour;
            this.fontColour = fontColour;
        }
    
        //reset everything when user changes focus,
        //possibly needs logic to check field has actually changed (for listfields, objectchoicefields etc etc)
        protected boolean navigationMovement(int dx, int dy, int status, int time) {
            count = 0;
            alive = true;
            doRedraw = true;
            return super.navigationMovement(dx, dy, status, time);
        }
    
        protected void paint(Graphics graphics) {
            super.paint(graphics);
            if (alive) {
                Field focusField = getFieldWithFocus();
                tooltip = (String) tooltips.elementAt(screen.getFieldWithFocusIndex());
    
                //don't do anything outside the norm unless this field has a tooltip:
                if (!tooltip.equals("")) {
                    //get the field content region, this may fall inside the field actual region/coordinates:
                    contentArea = focusField.getContentRect();
                    contentBottom = contentArea.y + contentArea.height;
                    contentRight = contentArea.x + contentArea.width;
    
                    //+4 to accomodate 2 pixel padding on either side:
                    tooltipWidth = graphics.getFont().getAdvance(tooltip) + 4;
    
                    yCoord = contentBottom - focusField.getManager().getVerticalScroll();
                    //check the tooltip is being drawn fully inside the screen height:
                    if (yCoord > (getHeight() - 30)) {
                        yCoord = getHeight() - 30;
                    }
    
                    //check the tooltip doesn't get drawn off the right side of the screen:
                    if (contentRight + tooltipWidth < getWidth()) {
                        xCoord = contentRight;
                    } else {
                        xCoord = getWidth() - tooltipWidth;
                    }
    
                    //draw the tooltip
                    graphics.setColor(backgroundColour);
                    graphics.fillRect(xCoord, yCoord, tooltipWidth, 30);
                    graphics.setColor(borderColour);
                    graphics.drawRect(xCoord, yCoord, tooltipWidth, 30);
                    graphics.setColor(fontColour);
                    graphics.drawText(tooltip, xCoord + 2, yCoord);
                }
            }
            //doRedraw logic prevents infinite loop
            if (doRedraw) {
                //System.out.println("redrawing screen: " + System.currentTimeMillis());
                screen.invalidate();
                doRedraw = false;
            }
        }
    }
    
    package mypackage;
    
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.PopupScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    class MyTooltip extends PopupScreen{
        int _x;
        int _y;
        TooltipThread _tooltipThread;
    
        private MyTooltip(Manager manager) {
            super(manager);
         }
        public void sublayout(int width, int height)    {
            super.sublayout(width,height);
            setPosition(_x,_y);
            System.out.println("Tooltip x: " + Integer.toString(_x) + ", y: " + Integer.toString(_y));
        }
        protected void applyTheme() {
            // Overriden to suppress Border etc.
        }
        public void removeToolTip() {
            if ( _tooltipThread != null ) {
                _tooltipThread.dismiss();
            }
        }
        private void display(UiApplication uiApp, int x, int y, int displayTime) {
            _x = x;
            _y = y;
            _tooltipThread = new TooltipThread(uiApp, this, displayTime);
            _tooltipThread.start();
        }
    
        public static MyTooltip addToolTip(UiApplication uiApp, String toolTipString, int x, int y, int displayTime) {
            VerticalFieldManager manager = new VerticalFieldManager(Manager.FIELD_VCENTER|Manager.NON_FOCUSABLE) {
                protected void paint(Graphics graphics) {
                    graphics.setColor(0x00FFFFFF); // White
                    graphics.fillRect(0,0,getWidth(),getHeight());
                    graphics.setColor(0x00000000); // Black
                    graphics.drawRect(0,0,getWidth(),getHeight());
                    super.paint(graphics);
                }
            };
            MyTooltip toolTip = new MyTooltip(manager);
            LabelField label = new LabelField(' ' + toolTipString + ' ', LabelField.NON_FOCUSABLE);
            label.setFont(Font.getDefault().derive(Font.PLAIN, 16));
            toolTip.add(label);
            toolTip.display(uiApp, x, y, displayTime);
            return toolTip;
        }
    
        class TooltipThread extends Thread {
    
            Object _notifyObject = new Object(); // Used to allow user to dismiss this Tooltip
            PopupScreen _tooltip; // Screen we are going to display
            UiApplication _ourApplication; // access to pushGlobalScreen and dismissStatus from our Application
            int _displayTime; // in seconds
    
            public TooltipThread(UiApplication ourApplication, PopupScreen tooltip, int displayTime) {
                _tooltip = tooltip;
                _ourApplication = ourApplication;
                _displayTime = displayTime;
            }
    
            public void run() {
                _ourApplication.pushGlobalScreen(_tooltip, 999, false);
                synchronized(_notifyObject) {
                    try {
                        _notifyObject.wait(_displayTime * 1000);
                    } catch (Exception e) {
                    }
                };
                _ourApplication.dismissStatus(_tooltip);
            }
    
            public void dismiss() {
                // notify the waiting object to stop the Thread waiting
                synchronized(_notifyObject) {
                    _notifyObject.notify();
                }
            }
    
        }
    
    }
    
  • play on the button Delete

    Hi dear,
    I'm trying to create the button Delete Action: redirecting to a URL
    JavaScript:confirmDelete(htmldb_delete_message,'DELETE');
    but the massage of javascript does not, what is the problem...
    FYI,.
    Remove this button as a manual
    Thank you
    ABO Yahya

    ABO Yahya,

    I've changed the reference to htmldb_delete_message to a custom string. It works ok for you?

    Malay Keith

  • Remove the button DELETE in webconsole:OIM9102

    Hi Experts,
    I want to remove the button Delete when I search for users in the console of the IOM.
    http://hostname:port/xlWebApp/searchUser.do
    I modified tjspSearchUserResultsTiles.jsp, commenting on all the tags that refer to DELETION operations. but still it is not reflected.
    I was able to remove the http://HostName:PORT/xlWebApp/manageUser.do delete button by changing the tjspViewUserDetailsTiles.JSP.
    I read in another link, to change TableGenerator.jsp, but I do not see that anything related to the DELETE operation. so don't would not invite risk by changing something else. any of you can suggest me please?
    The goal is to disable the REMOVE Option of the Web console, is there another way, I could do this?
    Thank you

    Try to use javascript based fix

    You can remove the button Delete of the page using a small javascript based snippet that will take place during the loading of the page.

    var loc = window.location + ''; '.
    If (loc. IndexOf("searchUser.do") >-1) {}

    var El = document.getElementsByClassName ("Commandbutton");
    for (var i = 0; i)
    If (El.value == 'User of MSN Search') {}
    El [i] .setAttribute ("Disabled", "Disabled");
    $(El[i]).remove ();
    }
    }

    }

    Please note that this uses the remove method of Jquery, so you would need that which include in javascript to get this working.

  • Where is the button Delete?

    I looked through screens help and FAQ. My button Delete is not the case. How can I get that back?

    You're right, I don't see a delete button either. But if you want to delete a mail, I guess that's what you mean, you can do either:

    • Press Delete on your keyboard,
    • Right click on the email you want to delete, select "Delete Message".

    If you really want to delete the button on your toolbar, you can customize your operate and drag the button remove a toolbar.

    UPD: typos corr.

Maybe you are looking for