Pop-up alert if the value is not equal to the other element.

Hello

I need a pop-up alert if the value of P1_ITEM_A is not equal to with P1_ITEM_F


I HAVE 6 point

P1_ITEM_A

P1_ITEM_B
P1_ITEM_C
P1_ITEM_D
P1_ITEM_E
P1_ITEM_F

mY FORMULA IS

P1_ITEM_A =13

P1_ITEM_F =1*:P1_ITEM_B+2*:P1_ITEM_C:+3*:P1_ITEM_D+4*:P1_ITEM_E

Ex : P1_ITEM_A =13

1*2+2*2+3*1+4*1

After Calculation value Comes into P1_ITEM_F =13
I need a pop-up warning when, after calculation of value of P1_ITEM_A! = P1_ITEM_F like 13 = 15

then see the me a pop up window with massage please enter cotrrect not.



How can I do that.

Published by: 805629 on March 9, 2011 04:15

Add an onblur = "calcItems()"; at one point then or modify the 'onchange' to "onblur" event hook

Tags: Database

Similar Questions

  • Drag the item over the other elements

    I have a canvas where I drop from several textarea. As I move things moved around, they hang out or drag under the other items previously ignored. The last point of fall passes on all the elements previously ignored. The sooner the ignored items disappear below. The question is: How do the point I'm always dragging display above the other elements?

    Here's a quick example. Drag and drop the two items in the list to the canvas. Then drag the two elements around. The second element that you drag and drop will always overlap the first item when you drag. The first item will always appear below. It is a problem because if you have a mouse until eventlistener on the first point, it will be called, but won't run correctly function, at least with regard to the update of the display and resizing of the dragged item (height, width, backgroundColor, etc.). I think it's a bug.


    <? XML version = "1.0"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" width = "500" height = "620" borderStyle = "solid" creationComplete = "initApp (); ">

    < mx:Script >
    <! [CDATA]
    Import mx.controls.Button;
    Import mx.controls.Alert;
    Import mx.events.DragEvent;
    Import mx.controls.List;
    Import mx.managers.DragManager;
    Import mx.core.DragSource;

    private function initApp (): void {}
    var dp:Array = (]
    {label: "First", data: '25' "},
    {label: "second", data: '50' "},
    ]);
    listOne.dataProvider = dp;
    }

    private void dragEnterHandler(event:DragEvent):void {}
    var dropTarget:Canvas = event.currentTarget as canvas;
    dropTarget.setStyle ("largeurBordure", 5);
    DragManager.acceptDragDrop (dropTarget);
    }

    private void dragExitHandler(event:DragEvent):void {}
    var dropTarget:Canvas = event.currentTarget as canvas;
    revertBoxBorder();
    }

    public void dragDropHandler(event:DragEvent):void {}
    var dropTarget:Canvas = event.currentTarget as canvas;
    var buttonA:Button = new Button;
    buttonA.label = listOne.selectedItem.label;
    buttonA.height = listOne.selectedItem.data;
    buttonA.addEventListener (MouseEvent.MOUSE_DOWN, mouseDown);
    buttonA.addEventListener (MouseEvent.MOUSE_UP, mouseUp);

    If (event.stageY.valueOf () > = 10 & & event.stageY.valueOf < 110 ()) {}
    buttonA.x = 0;
    buttonA.y = 0;
    }
    else {}
    If (event.stageY.valueOf () > = 110 & & event.stageY.valueOf < 210 ()) {}
    buttonA.x = 0;
    buttonA.y = 110;
    buttonA.width = 150;
    }
    }
    dropBox.addChild (buttonA);
    revertBoxBorder();
    }

    public void mouseDown(event:MouseEvent):void {}
    If (event.target is button) {}
    var selectedButton:Button = event.target as Button
    event.target.startDrag ();
    selectedButton.focusEnabled = true;
    selectedButton.setFocus ();
    }
    }

    public void mouseUp(event:MouseEvent):void {}
    var selectedButton:Button = event.target as Button
    If (event.target is button) {}
    event.target.stopDrag ();
    }
    }
    private function revertBoxBorder (): void {}
    dropBox.setStyle ("largeurBordure", 1);
    }

    []] >
    < / mx:Script >
    < mx:List id = "latte" dragEnabled = "true" dropEnabled = "false" x = "10" y = "10" > < / mx:List >
    < mx:Canvas x = "190" y = "10" width = "308" height = "200" borderStyle = "solid" borderColor = "#000000" backgroundColor = "#FFFFFF."
    dragEnter = "dragEnterHandler (event); "id ="dropBox"dragExit ="dragExitHandler (event); »
    dragDrop = "dragDropHandler (event); ">
    < / mx:Canvas >
    < / mx:Application >

    var childIndex:Number = (myCanvas.numChildren - 1).
    myCanvas.setChildIndex (selectedButton, childIndex);

  • Small pop-up alert in the taskbar

    I installed new kkkkk updated and it is popping up 70% of the time that I go to another program.

    So I would like to know if their is a way to avoid this?

    PS: The last time was on the notification, but I hide notification icon, so it bothers me no more, it's now.

    PS2: I now that Windows 8 support ended, but I think that this would happen in any version of Microsoft Windows above the XP including Win10, so answer to that that will help me, when I go to Win10

    Hello

    KKKKK is a 3rd party program and you will have to contact them for any problems with it.

    See you soon.

  • Pop - up alert to the Virus will not disappear in Safari

    I get these pop-up windows (I have pop-ups disabled) for some kind of scam to virus removal.  I run Cocktail and repair permissions and remove all history... nothing helps.  Are these windows disrupting my use of Safari, they also changed my browser default Google to Yahoo even if the box is checked for Google.

    I'm completely lost on this one... anyone of another dealing with this?

    Tommy Holt

    Please disable all extensions Safari and test. If the problem is resolved, re - activate the extensions one or a few at a time until you find the culprit.

  • Accidents vascular cerebral at the symbols do not properly flatten with other elements (CS5 and CS6)

    Hello

    We have a bunch of symbols of round button for navigation elements that are built in the following way:

    1. Symbol of the circle with a background and outline
    2. Symbol of circle placed in the symbols of button (for example, magnifying glass or arrow)
    3. Button symbols placed on the page

    This allows us to update the symbol of the bottom circle and have all the buttons (about 30 of them) update both.

    But when symbols return on a dark background, they look like some evil claire raster images - i.e. the edges of crenelated look like they have been flattened on white instead of merging with the background color as a 24-bit png.

    I hope you can see the kind of bitsy edge in the image below to see what I mean:

    search-button.png

    I don't remember having this problem in the past - I fiddled with the settings of the race, but still no luck, here are the settings as they exist currently:

    stroke-settings.pngstroke-options.png

    Is there a setting that controls this behavior I could have changed or missed?

    See you soon

    Ben

    There is a dirty little secret with 1 pixel lines: they are not actually aligned in the Center. (How could they be and still stay?) So that your line of single pixel is actually aligned inside. And it is anti-aliased. Most likely what you are noticing is the color fill slightly showing through the semi-transparent parts of the race.

    A couple ideas on how to solve this problem: a) set STROKE width of 2px, centered and choose 'Fill on line' under stroke Options, line width b) leave to 1px, line up outside and reduce the dimensions of the object of 1px, STROKE c) Set against zero and adds the line using Photoshop live effects. Somehow, any position is chosen for the alignment of the line in Photoshop live effects, filling line along the outer edges is not a problem. However, each solution will change how the circle is rendered a little, in order to find the best solution requires trial and error.

  • HA when ESX host are not equal to each other

    Hello

    Please, describe me my misunderstanding of HA...

    I have 3 servers ESX and 2 of them have 4 CPU 1 only have 2 CPU. I can create cluster HA with these 3 hosts, and if I can - how VM is migrated to ESX with 2 CPU, when one or two ESX with 4 CPUS will fail, in case when I have VMS with 4 CPUS per VM (even though admission control will be disable)?

    A vm with v 4cpus will not be able to be propelled to a host with only 2 physical processors. HA will not be able to failover in this case, even if the HA admission control is disabled.

  • Set the value of the page elements using apex.submit

    Hey,.

    Does anyone have an idea how to set the value of several page elements using apex.submit?

    Here is my request, she works for this element of the page, but I want to first the value of the other elements of the page (i.e. P30_SHOW_REF) as well.

    select s.nr as NRR, 
    '<input type="button" value="clickme2" onclick="document.getElementById(''BUTTONS'').style.display = ''block'';apex.submit({request:''SET'',set:{''P30_KLT_NR'':'||s.nr||'});"/>' Button 
    from klant s
    

    Thanks in advance!

    Hi Julijan,

    Here is the example:

    apex.submit({
      request:"DELETE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
    

    Concerning

    J

  • Can just disable us the pop-up alert message "Windows - delayed write failed"? for example to change the pc registry policy or change etc...?

    Can just disable us the pop-up alert message "Windows - delayed write failed"?

    for example to change the pc registry policy or change etc...?

    not a virus infection problem.

    Our PC operating system have been using XP and Win7.

    These error message that we ran the backup with Windows XP and Win7 PC client process.

    Backup the software client PC named SSR 2011.

    Tom

    Hi Tom,

    The question you posted would be better suited to the TechNet community. Send the query in the link.
    Hope this information helps.
  • Click on the button conditional and alert when the condition is not met

    Hello

    I have a problem with the click of a button; in my form when the user clicks on a button I have to run the True action only if an element has the value; otherwise I would show an alert message like "enter value < element >...". ».

    It seems a simple problem, I tried to insert the condition "Is not null" and warning that the action of false, but it does not work.

    Who is the Apex way to solve?

    Thanks in advance.

    Cry

    1. replace the button URL type

    Code - javascript:validate();

    2. create a javascript function in the page function and declaration of global variables

    function validate()

    {

    If ($v ('YOUR_ITEM_NAME') == ")

    Alert ('XYZ');

    on the other

    Apex. Submit ('BUTTON_NAME');

    }

  • My requirement is, if we click on the POP UP LOV element so I want the dependent value of this item in column of the text element in a table.

    My requirement is

    If we click on the POP UP dot LOV button then I want the dependent value of this item in column of the text element in a table.

    How do I get this as a table?

    Hi Dan,.

    I have a table, in the first column is popup LOV.and second column key is text element.

    So my question is if we click contextual key lov and select employee name, then I want to show the email address of this employee in the second column of tabular presentation.

    This can be done with AJAX. Write a JavaScript function on the onchange event of popup LOV item (Employee) key and pass the number of the employee selected to your AJAX call, go get the employee email and assign it to your entry corresponding to the key LOV popup text has changed.

    As your dealing with Form (Wizard Based/APEX_ITEM Based-not specified) in a table, you take insofar as each column is the table of elements mapped to APEX_APPLICATION input. G_FXX tables and therefore to write JavaScript to locate the item to update.

    I hope this helps!

    Kind regards

    Kiran

  • Value of the page element in the APA process not maintained after the send this page

    Hello - I have a sequence of events that goes like this:

    (1) region 0 REG_1 Page is rendered before footer
    -REG_1 region uses javascript / AJAX to call App process PROC_1
    -PROC_1 defines Page1 item PAGE1_MESSAGE for X
    -After that PROC_1 runs correctly, REG_1 don't doSubmit()

    (2) region 0 REG_2 Page is rendered before footer; in this case
    After the page sent by REG_1. (Requirements to ensure that)
    REG_1 has not yet reached)
    -REG_2 region shows an alert PAGE1_MESSAGE (= X).
    -REG_2 region uses javascript / AJAX to call App process PROC_2
    -PROC_2 sets page 1 point PAGE1_MESSAGE to Y
    -PROC_2 sets point Application DEBUG to PAGE1_MESSAGE (this is for debugging)
    -PROC_2 defines the point of Application APP_MESSAGE to Y (this is also for debugging)
    -After that PROC_2 runs correctly, REG_2 don't doSubmit()

    (3) after that REG_2 sent the page, here's what I have:
    -Point application APP_MESSAGE = y. good. That's what it has been for PROC_2.
    -Point Page 1 PAGE1_MESSAGE is bad. X. That's what he has been put to in PROC_1.
    -Point application DEBUG = y. good. This shows at least that PAGE1_MESSAGE was
    the value Y in PROC_2... but for some reason this value is not be kept
    After the application process is running.
    -There's that several other elements of the application located in PROC_2, and they are all correct.


    Any ideas as to why this is happening? It seems like it should be
    quite simple: set the value, send page, the value must be that
    I put it.

    Thank you
    Carol

    Hello

    Exhibition (doesnot save session state), I am not changing who is P1_MESSAGE_1.

    Why does that matter? Why does the hidden item behave differently?
    

    Yes, Hidden Items by usually default state saves. But this isn't the problem in this case because I had changed the item to display only (state saved) and that did not help. Finally back in doesnot save state.

    Try to replace alert (ajaxResponse); with the lines below

    $s('P1_MESSAGE_1',ajaxResponse);
    alert($v('P1_MESSAGE_1'));
    

    Maybe the session state is defined (server), but the value in the DOM HTML (browser) to P1_MESSAGE_1 is not defined. If adding the line above works then the hypothesis is correct.

    And I see that you made the source "static" assignment ...
    

    Yes, I made this change, because it was a reference in itself I think it was redundant. And I had to correct what I thought is not just before debugging. Which cannot be linked to the problem though.

    Kind regards

  • Firefox has crashed, and now I have a constant stream of blank tabs that keep popping up in front of all the others. They will not erase.

    First all the tabs I had open suddenly lacking at the Firefox help page. Now I have a constant stream of blank tabs that keep popping up in front of others. I click again to remove the but they back just pop up. Also whenever I delete a tab while browsing a Web site, I get another white added to the front of all the others. I uninstalled and reinstalled the program and it did not help.

    You ensure that you do not have a problem with a sticky key F1 on your keyboard?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    If this does not help then try a new profile.

    See basic troubleshooting: a new profile

    Your above posted the details of the system tampon() obsolete show with known risks to stability and security that you should update.

    1. Shockwave Flash 10.1 r53
    2. Next-generation Java plug-in 1.6.0_14 for Mozilla browsers

    Update the Flash plugin to the latest version.

    Update the Java plugin to the latest version.

  • My iPhone think that my headphones are plugged when they are not if will not play music or alerts through the speakers. What should I do?

    My iPhone randomly started thinking my headphones are plugged when they are not. As a result, it won't play music or message/call alert through the speakers. What should I do?

    Try to push the helmet a few times to move the switch. If not, then please post something here and I'll be happy to help you further.

    AppleMan

  • Backflip: A lot of "alerts", but the phone does not appear what it is me for alert

    I hope I'm doing this right. kind of a beginner on this site, and they seem to have specific rules for the first assignments. In any case, maybe I shouldn't have gotten the Backflip. After a few days, updates to the facebook got tedious. I'm not really a kind of facebook/twitter/myspace person. In any case, to save battery power and get it out of my sight, I moved to facebook and a cup of other widgets on the home page. Also, I went to facebook and off alerts or w/e this is out there. I always get these audio alerts, but when I turn on my phone to check out them, nothing is there! I check facebook (even online and nothing happened), no one has texted me or tried to call me and I check the Universal Inbox, too, and nothing new is there. This has happened in the last days and is getting boring. Maybe, I need to get back to the form of the plant and try again, even if I'm not even sure how to do this. I wouldn't wipe out all my contacts, too. Any ideas /.

    Most of the alerts will also appear in the notification area (the bar at the top of the screen). Put your finger just above the bar and slide down. This will open the notification area. Is there any alerts? If you can type on it and you will be redirected to the app associated with this alert.

    Move a widget on the main home page won't stop him, he just puts it out of sight.

    If your motoblur account is configured properly, you won't lose your contacts by resetting the phone. If reset you it, you will be asked to enter your MotoBlur account information when it restarts and the phone syncs with a copy saved to your contacts on the MotoBlur server. All the contacts stored in your gmail account will be also synchronized to the phone - if you have the possibility to do so allowed.

    I do not use Facebook or any of the other social networks so that someone else can provide more information about your problem with them.

  • How the LED lights up when a threshold is reached, then turns off only when the value does not reach the threshold for a while?

    Hi, I want to write a program that can turn on the LED when a range of value, this is the threshold and only when the value does not reach the threshold for a period of time, say 5 seconds, then the LED will turn off, otherwise it will remain. How can I achieve this in labview? Can someone help me? Really thanks!

    I assume that you use a while loop to keep the updated value.

    Add a record to offset to your looping it initialize with a U32 (time in ms)

    Add the registry to offset to your loop that keeps the previous value of your bool

    When your reaches the threshold value => the light and set the current time in your shift register.

    In the next iteration of the loop weather check value is still above threshold

    => Y-online previous set to true?

    => Y-online the next iteration

    -Online N => turn switch on and set the current time in your shift register.

    -Online N => subtract the time current less time shift record-online more then 5 seconds?

    => Is => keep turning on

    -Online N => turn given

Maybe you are looking for