How do I add a Message Box if calculations don't match?

I am developing a form where the user inputs an amount on field Amt, then distributes that amount into up to six "funds" fields (Budget1, Budget2, Budget3...), which determine where the money will come from. I created a screen-only verification field (AmtVerif) that allows the user to see if the divided funds add up to the total shown on Amt.
I want AmtVerif to:
1. add up the amounts on fields Budget 1-6 (which I managed to do using FormCalc)
2. match the total with the entered value on Amt
3. pop-up an error message that says "You went over the total", or "Please verify the allocation of funds" in case totals don't match.
I tried using "if" expressions with FormCalc in the Validate and Exit Events, and although they seem to be correct, they do not show the error message. What am I doing wrong? Please help!
Debora

Hi Raghu,
Thank you for responding!  I just re-created my fields in the same form you attached, so now you can see exactly what I did.
The last field (AmtVerify) contains the calculation piece, but now I need to match that total with the amount on the first field, and enable the error messages in case it goes above or below the original amount.
Debora.

Similar Messages

  • How do I add a text box to an ibook?

    How do I add a text box to an ibook page?

    Not very user-friendly IMHO, but ok here goes:
    Place a picture of the band in your body background's CSS
    with repeat:
    no-repeat. Then add a scrolling division to your html page -
    like so:
    <div align="right">
    <div style="font-family:'Verdana', 'Arial', 'Sans-serif';
    font-size:12px;
    color:#FFFFFF; text-align: left; background-color:#000000;
    border:2px solid;
    overflow: auto; padding:10px; width:auto; height:200px;
    border-color:
    #333333;"><h3>Your heading goes
    here</h3><br><br> More text goes
    here<br><br> and more text goes
    here...</div>
    <p> </p>
    <div style="font-family:'Verdana', 'Arial', 'Sans-serif';
    font-size:12px;
    color:#FFFFFF; text-align: left; background-color:#000000;
    border:2px solid;
    overflow: auto; padding:10px; width:auto; height:200px;
    border-color:
    #333333;"><h3>Your heading goes
    here</h3><br><br> More text goes
    here<br><br> and more text goes
    here...</div>
    </div>
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "strippedman" <[email protected]> wrote in
    message
    news:g4h1ac$pqh$[email protected]..
    > I'm looking more for something like this:
    >
    > www.muse.mu
    >
    > See how there's essentially a picture of the band in the
    background and
    then
    > two text boxes with scrolling capability on the right?
    That's all I
    want...two
    > locked scrolling text boxes on a picture...without using
    flash.
    >

  • How do I add text messages to my icloud account

    How do I add text message to my online icloud backup account?

    Hello mawardjr,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iCloud: iCloud storage and backup overview
    http://support.apple.com/kb/PH12519?viewlocale=en_US
    Here’s what iCloud backs up:
    Purchased history for music, movies, TV shows, apps, and booksYour iCloud backup includes information about the content you have purchased, but not the purchased content itself.
    Photos and videos in your Camera Roll
    Device settings
    App data
    Home screen and app organization
    iMessage, text (SMS), and MMS messages
    Ringtones
    Visual Voicemail
    Have a nice day,
    Mario

  • How can i add the check box beside the directory?

    how can i add the check box beside the directory? anybody can help?
    tis r the panel of my program :
    // FileTreePanel.java
    // JPanel for displaying file system contents in a JTree
    // using a custom TreeModel.
    package com.deitel.advjhtp1.mvc.tree.filesystem;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    import com.deitel.advjhtp1.mvc.tree.filesystem.FileSystemModel;
    public class FileTreePanel extends JPanel {
    private JTree fileTree;
    private FileSystemModel fileSystemModel;
    private JTextArea fileDetailsTextArea;
    public FileTreePanel( String directory )
    fileDetailsTextArea = new JTextArea();
    fileDetailsTextArea.setEditable( false );
    fileSystemModel = new FileSystemModel(
    new File( directory ) );
    fileTree = new JTree( fileSystemModel );
    fileTree.setEditable( true );
    fileTree.addTreeSelectionListener(
    new TreeSelectionListener() {
    public void valueChanged(
    TreeSelectionEvent event )
    File file = ( File )
    fileTree.getLastSelectedPathComponent();
    fileDetailsTextArea.setText(
    getFileDetails( file ) );
    JSplitPane splitPane = new JSplitPane(
    JSplitPane.HORIZONTAL_SPLIT, true,
    new JScrollPane( fileTree ),
    new JScrollPane( fileDetailsTextArea ) );
    setLayout( new BorderLayout() );
    add( splitPane, BorderLayout.NORTH );
    JCheckBox check = new JCheckBox("Check me");
    add( check, BorderLayout.SOUTH );
    public Dimension getPreferredSize()
    return new Dimension( 400, 200 );
    private String getFileDetails( File file )
    if ( file == null )
    return "";
    StringBuffer buffer = new StringBuffer();
    buffer.append( "Name: " + file.getName() + "\n" );
    buffer.append( "Path: " + file.getPath() + "\n" );
    buffer.append( "Size: " + file.length() + "\n" );
    return buffer.toString();
    public static void main( String args[] )
    if ( args.length != 1 )
    System.err.println(
    "Usage: java FileTreeFrame <path>" );
    else {
    JFrame frame = new JFrame( "JTree FileSystem Viewer" );
    FileTreePanel treePanel = new FileTreePanel( args[ 0 ] );
    frame.getContentPane().add( treePanel );
    frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    frame.pack();
    frame.setVisible( true );
    }

    You can maybe explore button and forms feature in InDesign. It was added in CS6.

  • How do you add a combo box into a Jfilechooser?

    how do you add a combo box into a Jfilechooser?
    thanks

    See the API For JFileChooser
    public void setAccessory(JComponent newAccessory)Extend a JPanel or Such like, put your Combo Box on it, fiddle around with event handling code for the ComboBox..
    Set an Instance of that as The Accessory for the JFileChooser.
    Look In Your Docs:-
    <JAVA_HOME>/Demo/jfc/SwingSet2/src , unpack SwingSet2.jar if neccessary
    In there is a demo of using A JFileChooser with an accessory Panel, and Source code that is adaptable...

  • How can I add cloud message im my app?

    Hi,
    How can I add Cloud message in My app?

    Thanks ChrisJ4203.
    The developer did everything including sending to the App store.
    I can see the app in the app store, and the developer is listed there as Bacchus Lifestyle and the seller is a personal name. However, I am not able to find them.
    When you click on the "App Support" link to go to their web site, the site comes up with a 404 error.
    Can't see them in google either.

  • How do you add a comment box

    how do you add a comment box in iweb?

    There are 3rd party comment sites that can be added to an iWeb site for visitors to add comments: Disqus, Intensedebate and Echo are just 3 that are available.
    Guestbooks are another way for visitors to make comments primarily for your viewing but you can embed the comment page in a website like in this demo page: Guestbook.
    This is an example of the Disqus comments from Roddy's iWeb for Musicians site: Disqus Comment in a Scrolling iFrame
    OT

  • How to turn off printing message box that appears every time I send a document to the printer?

    How to turn off printing message box that appears every time I send a document to the printer?  Appears bottom right corner of screen above task bar.  Printer is HP c309a All-in-One PhotoSmart printer.

    I have an Iphone 4s, and every time I receive a call and i dont answer it, the cell shows a black screen with many things to do and automatic messages to send, like "call back, save, remind, call now, call later, etc". If I don´t close it as soon as i receive the call, then the cell gets frozen in that screen and i have to restart it. Sory for my english, i´m from argentina! thaks for your help !!!

  • How do I add verizon messaging on mulitple phone lines

    How Do I add Verizon messaging on multiple phone lines?

        rockstarsher,
    What an amazing application! Each individual can download the Verizon Messaging application. Once downloaded and messages are sent it will be deducted from your messaging plan.
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • How do I add a negative to a calculation in Acrobat 10 Pro?

    How do I add a negative to a calculation in Acrobat 10 Pro?
    I am using Acrobat 10 Pro in Windows 7.
    I have a form with columns of numbers (Millions, Thousands, hundreds) that I concatenate and then perform simple calculations on (addition, subtraction, division, etc).
    I have a new section of the form that has a column for a negative sign. The calculation is simple addition but it is possible for the numbers to be negative as symbolized by the minus sign in the negative column:
    Line 23 adds lines 20 + 21 + 22 and displays the sum. If any of lines 20-22 have the minus sign in the Neg column, I need the calculation to see that and add the negative number, essentially subtracting it.
    NOTE: the neg column is so formatted that the only possible entries are null and "-"
    So, I see two ways to go, one is a script for each line that looks at the neg column and if the "-" is present, makes the entry a negative number. I have not had much luck with this.
    The other path is to do this all in the calculation in line 23. I have fiddled around with some "if" statements but no joy yet.
    NOTE: If it makes it easier, I could change the column input to a drop-down box with "-" or null as the options if that makes it easier to call out somehow.
    any thoughts out there?
    Steve

    You can use a custom JavaScirpt calculation or the simplified field nation calculation, if your field names follow the required convention, with the "-" operator.
    If you are using the "The field is the ____ of the following fields:", you need to create a hidden field with a default value of "-1", a second hidden field that calculated the product of the "-1" field and the field you want to subtract. You can then use that second hidden field in the calculation.

  • How can I fill a message box with an empty option whit UIX?

    Hi dear forum:
    I created a message box in UIX and I filled it with data from a table, but I need that the first option be in blank; I need an empty option.
    thanks dear forum

    If you are using a ADF/BC4J view object to get the data, you can modify the sql query statement to add a null option UNION'ed with the original query. Example:
    SELECT NULL DEPARTMENT_ID,
    NULL DEPARTMENT_NAME,
    NULL MANAGER_ID,
    NULL LOCATION_ID
    FROM DUAL
    UNION ALL
    SELECT Departments.DEPARTMENT_ID,
    Departments.DEPARTMENT_NAME,
    Departments.MANAGER_ID,
    Departments.LOCATION_ID
    FROM DEPARTMENTS Departments
    I also saw this tip somewhere but I don't know how (or if) it would work with uix:
    http://www.oracle.com/technology/products/jdev/tips/mills/null_list_entry.html

  • How can i display a message box when error comes in jsp?

    Hi,
    i need to display a message box whenever an error comes in my jsp. Actually my appln is that i am creating a bar chart using one applet by taking data from the database. When a user does not select a number data for y axis, now in the centre of the web page one java error is coming. "not in number format". it is looking very odd.
    so i want to display the error in a message box whenever it comes as above. pls help me how can i do the same...
    Regds,
    Abhi...

    Hi,
    thanx for ur response. so u mean to say that i can
    display the errors in the web page itself instead of
    displaying as a message box?Either way. You can have the JSP send a message to the applet to display a message box. Or you can just have the JSP do it. or you can have the applet detremine if the JSP would produce an error and then display the message it would display.
    >
    actually i am using servlets. jsp pages are used only
    as the front end. all the background works are doing
    in servlet only.It should be the same in any case. Is the applet connecting to the JSP pages or are you having the browser do it?
    >
    pls get back...

  • How do I add a black box over text?

    Hello,
    I was wondering if that with Premiere Elements 9 if you could add a black box over text to make it stand out more because of the content I have in the background. I have tried various menus in Premiere Elements 9 but to no avail. If you know how to do this please help me out!
    -Compute

    ComputeGamin
    Consider a more subtle effect to make the text pop out more. Have you tried applying one of the Styles to the text in the Premiere Elements 9.0/9.0.1 Titler?
    Please let us know the outcome.
    Thank you.
    ATR

  • How to force file download message box appear????

    I download file from oracle
    how to set response header to make download message box appear??????
    I just see lots of :
    ���?������ Y�Dl?��>��hn��?g�x~����?7���}��h`a�F��?P?!P��*�X��?/?U ��A?|?/??$�T=��t ��?^!i��f��/?]?�c��7?�UZ�Gz?��SbU��p���Q�T������?��e JyN�/�X^��w��/Bo�k�O��������^��$��?�������yg���C(??[�[+?��R�����p��?te@?��o��?M:D�_s#h�����H��g/?�nE"�PQI���A!��bE������?C`A�������?V��2�^��<�NK?[��k�k$??yJ>?sg-hm�AW(���S��?l[��[���� ��?dL4��6!�N��*���N?Q2?���JoP��>|�sb�_�^�_����~�r��X
    on the screen
    I am a chinese, happy new year everyone!

    and the file.size() is semicode, meaning there isnt a function for it. So you might end up with something like this
         response.setContentType( "application/zip" );
         String fileName = Globals.getAttachmentLocation() + readFile;
         response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
         BufferedInputStream bufferedInputStream = new BufferedInputStream( new FileInputStream( fileName ) );
         ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
         int start = 0;
         int length = 1024;
         byte[] buff = new byte[length];
         while ( bufferedInputStream.read( buff, start, length ) != -1 ) {
              byteArrayOutputStream.write( buff, start, length );
         bufferedInputStream.close();
         response.setContentLength( byteArrayOutputStream.size() );
         response.getOutputStream().write( byteArrayOutputStream.toByteArray() );
         response.getOutputStream().flush();

  • How do you add a combo box item in Forte?

    Okay how do I add items to a JComboBox using the Forte form editor.

    String stuff = new String{"1", "2", "3", "4" };
    I think you ment to make stuff an array of String.
    In component inspector under Code Gneration
    select post creation, select the ... box and type in
    new JComboBox(stuff); or = new JComboBox(stuff);
    might have to put the equal sign in there I forgetI did this and I am not getting any items dropped down.
    >
    >
    Hope that helps
    Jim

Maybe you are looking for