"If, Then" Statements Driving Selection

I am creating a price list/order form and need some help with "If, Then" statements and how their result drives a price selection.
I have a product that is priced differently based on both how many is purchased and how many colors it has. My variables are (a) one, two, three or four colors, and (b) 10 to 500 pieces in six tiers (10-24, 25-49, 50-99, 100-249, 250-499, 500+).
I want to autopopulate a price field based on the color number and the quantity, making the pricing foolproof and the total order amount automatically calculated.
Here's my situation:
  - Field A is Number of Colors (let's say 1-color)
  - Field B is Quantity (let's say it's 23, putting us in the 10-24 tier pricing)
  - Field C is Unit Price (1-color @ 23 qty would be $76.63 each)
  - Field D is Total Price (23 x $76.63)
My statement would look like the following, but I don't know how to structure this in the form fields or where to put the quantity or pricing table for the software to calculate B or C:
If A is 1-color, and B is 23, then C is $76.63.
My Field D calculation is pretty straight-forward (Field C x Field D) if I can figure out a way to determine Field C's value.
Help!

Have a look at these tutorials:
http://acrobatusers.com/tutorials/conditional-execution
http://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations
If you still need help afterwards, post here again.

Similar Messages

  • How to convert update,delete statement into select stmt

    Hi all,
         I have a field called dml_stmt, i am getting the dml statement has input from the user.
         My requirement is, if user is giving "update set col_name = 'xyz' from table_name where codition = 'aa'", before updating the table, i need to get old values from the table and put it in the audit table
         For that,i need to convert those update statement into select stmt and need to execute the query to get the data and then i will put it in the audit table..
         can anyone guide how to convert the update or delete stmt into select(need to write in pl/sql)
    Please do needfull things ......
    Regards,
    Jame

    Maybe I'm missing something, but why would auditing help here? It sounds like the user wants to know the prior values of the data, not the SQL UPDATE statement that was issued. Auditing would tell you that a table was updated, fine-grained auditing would tell you what the UPDATE statement was, but you'd need something else to capture the state of the data prior to the update.
    Depending on why putting triggers on every table was discounted, you may also want to take a look at using Workspace Manager or Total Recall (in 11g) to track a history of data changes. But triggers would be the common solution to this sort of problem.
    Justin

  • Scanning photo and does scan then states ;Non writable will not save?????

    scanning photo and does scan then states ;Non writable will not save?????

    If you're having trouble making changes to files that are inside your home folder (represented by a house icon in the sidebar of a Finder window), or if you can't get changes to the settings of an application to stick, then please see below.
    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if it frightens you, or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password dialog will open. You’re not going to reset a password.
    In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
    Select your username from the menu labeled Select the user account if it's not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • If-then statement in formula node

    **Note - The attached file shows the current block diagram.
    I have a formula node inside a for loop. Inside the formula node I am trying to program the if-then statement:
    If T1<2.0E-5 OR T1>5.5E-4 THEN GOTO 3
    U7=U7+V
    I have 4 items I need help with:
    (1) Is 'II' the correct operator for 'OR'?
    (2) Is 'goto' an acceptable operator within LabVIEW?
    (3) 'U7' is building a 1D array. How do I need to define it? Is it simply 'int U7'? Also, I will add an output value named 'U7' on the formula node wall with an indicator wired to it from outside the for loop.
    (4) Is my use of the equal sign appropriate or do I need to use '=='?
    Thanks for the help.
    Philip
    Attachments:
    if-then_in_FN.jpg ‏18 KB

    Thanks for the help. I went ahead and rewrote the program so I could omit the 'goto's. Another problem that I am having is that I want 2 statements for 1 assignment:
    if (T1>=.002004 && T1<=.002584)
    B1=U
    A1=V;
    I want to assign both B1 and A1 values when the above condition is true. I tried a comma between the U and A1 but it doesn't work as well. Should I define A1 and B1 separately? Or would this create problems?
    if (T1>=.002004 && T1<=.002584)
    B1=U;
    if (T1>=.002004 && T1<=.002584)
    A1=V;
    Thanks,
    Philip

  • Alter Statement in Select

    Can we write an alter statement in Select Query?

    Dynamic sql
    SQL> create table t_al (al number(10));
    Table created.
    SQL>
    DECLARE
       v_al   VARCHAR2 (200);
    BEGIN
        select 'alter table t_al modify al varchar2(20)' into v_al from dual;
    execute immediate v_al;
    end;
    PL/SQL procedure successfully completed.
    SQL> desc t_al;
      AL  VARCHAR2(20 CHAR)

  • My MacBook pro won't recognize hard drive I put in it. It boots only to a white screen unless I boot to my recovery USB. If I do that then I can select my USB and my external time machine drive in the disk utility, so no problems there. But what do you

    My MacBook pro won't recognize hard drive I put in it. It boots only to a white screen unless I boot to my recovery USB. If I do that then I can select my USB and my external time machine drive in the disk utility, so no problems there. But what do you think it is? It won't recognize any hard drive I put in the machine, so might it be the sata cable?

    Boot the Recvoery USB, use Disk Utility to select the internal drive makers namea and size on the left.
    Now select erase and select the midde option and click erase, it will take a bit to complete but it's best for the drive.
    Now select Partiton tab, click the big box and Options: GUID and then Format: OS X Extended journaled and click apply.
    Quit and you should be able to install OS X now with your Apple ID and password.
    see
    http://osxdaily.com/2011/08/08/lion-recovery-disk-assistant-tool-makes-external- lion-boot-recovery-drives/

  • DISCOVERER 3.1, IF,THEN STATEMENT

    Dear All,
    I am not an experienced Discoverer user. Please forgive my ignorance.
    I would like to create a column that will "fill in" certain text based on the contents of other columns.
    I have been partially successful by using the DECODE function, but I have only been able to base my result on one column.
    What I need to do is create text statements that will vary based on the contents of 3 different columns. For example IF Fruit=** AND Color=*** AND Date Picked = *** then Statement= MY STATEMENT.
    FRUIT COLOR DATE PICKED STATEMENT
    APPLE RED 30<SYSDATE BAD RED APPLE
    APPLE RED SYSDATE O.K. RED APPLE
    APPLE GREEN SYSDATE BAKING APPLE
    PEACH PINK >SYSDATE GOOD FOR PIES
    Any and all help would be greatly appreciated!
    Thanks
    nancy
    [email protected] or [email protected]

    Dear Andrew,
    Thanks so much for taking the time to reply. I will try this.
    nancy
    Hi Nancy,
    I am not an experienced Discoverer user, but I know SQL. So here is a SQL solution, there might be Discoverer specific ways of doing this I do not know about.
    OK, First try breaking your problem down into parts.
    Outermost: DECODE(fruit,'APPLE', apple_only_section ,
    fruit,'PEACH', peach_only_section ,
    other_fruit_section)
    apple_only_section: DECODE( color , 'RED', apple_red_section ,
    color , 'GREEN', apple_green_section ,
    other_apple_section )
    // Here is where things get 'tricky' to try to determine date ranges.
    apple_red_section: DECODE ( greatest( trunc(sysdate)-30,date_picked) ,
    trunc(sysdate)-30) , 'BAD RED APPLE' ) ,
    'GOOD RED APPLE' )
    The 'greatest' statement above is key to doing date-ranges in a column,
    And you should think about whether the dates should be truncated to remove the time component (as I do for sysdate above).
    And once you have the sections like 'apple_red_section' that you know work, running independently, you start embedding them together to form the higher level statements.
    You end up with hard to understand gobbledegook, but it does work.
    The decode statement is tricky even for a programmer, so work in stages and get each part working before you try to combine them. Better yet get a programmer to write exactly what you want.
    Andrew

  • In a SQL statement, the SELECT clause is used to

    In a SQL statement, the SELECT clause is used to select
    (a) columns
    (b) rows
    (c) tables
    (d) none of the above
    can any one help Immediately

    Is used to select rows of specified column...
    SELECT column_name(s) FROM table_name

  • Select a small area and then use the selected area to paint other areas of the image

    Hello
    My problem is a little hard to explain but I try.
    What I want is to select a small area and then use the selected area to paint other areas of the image. Do not know how to do it and if it's stamp tools or pen tools to be used?

    Howdy.
    Sounds like you're looking for the Clone Stamp Tool. Set to Aligned, the sampling point resets when you release the mouse after painting. Untic Aligned and the sampling point stays in the original spot for the next stroke. It's a good idea to clone onto a separate layer with Sample All Layers selected. Then you don't lose original pixels. Allows you a do over later.
    FWIW.
    Peace,
    Lee

  • I tried to open my Illustrator CS6 today and got the following error message, "To open Adobe Illustrator CS6 you need to install the legacy Java SE runtime". The window then states, "Click More info...to visit the legacy Java SE 6 download website."  I do

    Help. I tried to open my Illustrator CS6 today and got the following error message, "To open Adobe Illustrator CS6 you need to install the legacy Java SE runtime". The window then states, "Click More info...to visit the legacy Java SE 6 download website."  I do click on the More Info... button, but the webpage is blank. Please help.
    Thanks,
    Leo

    Leo,
    Depending on your OS, you should be able to use;
    Win:
    http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419 409.html
    Mac:
    http://support.apple.com/kb/DL1572
    Some have found that the page may turn up blank to start with, so it may be necessary to reload the page.
    Others have found that it may depend on browser. Specifically, a switch from Safari has solved it in one case.

  • Quicktime 10.0 will not play apple trailers from site. I have Mac OS X 10.6.8 - site directs me to download - then states I have it already - all software updated.  What do I do?

    Quicktime 10.0 will not play apple trailers from site. I have Mac OS X 10.6.8 - site directs me to download - then states I have it already - all software updated.  What do I do?

    JessBennet wrote:
    ... I already clicked on the Apple symbol on the top left part of my screen and clicked "Software Update'' but it says I am up to date, which clearly is not right)
    It is Correct for your Current OS = Leopard = 10.5.8
    The first step in Upgrading... is to Snow Leopard = OS X 10.6.x
    It is Not available as a download...
    Do this first...
    Check that your Mac meets the System Requirements for Snow Leopard...
    Snow Leopard Tech Specs
    http://support.apple.com/kb/SP575
    If so Contact Apple in your Country to Purchase a Snow Leopard Disc...
    http://support.apple.com/kb/HE57
    In the US...
    1-800-MY-APPLE or 1-800-676-2775
    After the Successful Install, run Software Update to get the latest updates for Snow Leopard.
    Be sure to make a Backup of your Current System Before Upgrading...

  • Writing an if-then statement

    I would like to write an if-then statement that would hide an element (image of a pause button) when the main timeline is stopped. I have a play forward button that when pressed will switch to a pause button. The same happens for the play reverse button. This way the buttons are like toggles...press once it plays and press again and it stops. I have this working fine, but there are several stop triggers throughout the timeline, and when the animation is stopped my pause/play button will still be in the pause button mode, thus a user will not be able to restart the animation. There are too many of these stop triggers to make it practical to add a hide command to each to hide the pause button (thus making the play button underneath accessable), so what I would love is if I could write a statement that would hide both pause buttons whenever the timeline is not running.
    I need to know the correct way to write the code and where to put it.
    Thanks in advance,
    Greg

    Hi Joel...
    you can view the test site here http://cyclesofyah.com/slider-test_screen-swap-test/
    and you can download the files here http://cyclesofyah.com/chrono/cycles_test.rar
    you won't see much happen until you click on the gear icon. While the timeline is running you can type any number on your keyboard, and it will take you to a stop trigger.
    Thanks

  • Difference between "print" statements and "select" statements , TSQL

     What is the difference between "print" statements and "select" statements when it omces to debugging and watching varibles in the stored procs .....

    SELECT statement is part of the ANSI SQL language.
    PRINT command is not part of the SQL language, it is used for debugging in T-SQL.
    BOL:" Returns a user-defined message to the client.
    A message string can be up to 8,000 characters long if it is a non-Unicode string, and 4,000 characters long if it is a Unicode string. Longer strings are truncated. The
    varchar(max) and nvarchar(max) data types are truncated to data types that are no larger than
    varchar(8000) and nvarchar(4000).
    RAISERROR can also be used to return messages. RAISERROR has these advantages over PRINT:
    RAISERROR supports substituting arguments into an error message string using a mechanism modeled on the printf function of the C language standard library.
    RAISERROR can specify a unique error number, a severity, and a state code in addition to the text message.
    RAISERROR can be used to return user-defined messages created using the sp_addmessage system stored procedure."
    LINK: http://technet.microsoft.com/en-us/library/ms176047.aspx
    The SSMS (client software) returns SELECT output to Results and PRINT output to Messages.
    The SQLCMD -o (output file) option captures all outputs into one file mixed.
    Kalman Toth Database & OLAP Architect
    T-SQL Scripts at sqlusa.com
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • I connected my iphone 4 to the itunes and then i just select Backup. now i lost all songs and photos in my iphone. how can i do?

    i connected my iphone 4 to the itunes and then i just select Backup. now i lost all songs and photos in my iphone. how can i do?

    See: How to Restore from a backup here >  iOS: How to back up

  • I was trying to get my personal computer contacts and calendar in outlook on my iphone and ipad.  I was told to use icloud.  I went to control panel and then icloud and selected my contacts and calendar.  Now ALL MY DATA IS DELETED FROM OUTLOOK.  Help!!

    I was trying to get my personal computer contacts and calendar in outlook on my iphone and ipad.  I was told to use icloud.  I went to control panel and then icloud and selected my contacts and calendar.  Now ALL MY DATA IS DELETED FROM OUTLOOK.  Help!!

    I was just on the line with Apple Tech support.  First of all, I learned that when you link contacts to iCloud, it moves all your contacts to another/new address book...look for aother address books and you will see it.  But I found the new address book dies weird things and changes the "Display Names" format.  Evidently (per Apple support tech) there is no way to avoid this problem...so I just delinked the iCloud from my contacts.  The contacts stayed in the iCloud address book...so I exported them to a CSV (comma separated value) file and saved it on my desktop and then imported that list into my original contacts folder.  Now everything is back the way it was...being able to use my contact address book the way I did before.  I was surprised that they never considered or realized this problem...but then the tech guy admitted that they really don't have A LOT of experience using Windows PC's.

Maybe you are looking for

  • Mac OS 10.4.10 Update and Lost Printers

    I did the software update and also tried the combo update. My hp LaserJet 1300 and Epson Photo R220 were lost and when I tried to add them via the Printer SetUp Utility I would get an error. What is funny is the printers were in my user library print

  • How ican delet my apple id from my iphone?

    how ican delet my apple id from my iphone?

  • Iphone 4s Battery after 5.0.1 still drains very fast

    After upgrading my iphone 4s last night to 5.0.1 OTA the battery consumption is still very bad i can only use my phone for 2-3 hours also ive turned off the location service When ive started to write this discussion my battery was 58 now it is 56 onl

  • Difficulty with java Unicode for internationalization

    First, my appologies for the cross-post. I'm not sure if this is a configuration issue, simple java / jsp problem or something others performing internationalization may have encountered. We're generating UTF-8 HTML pages using .jsp's, Weblogic 5.1 s

  • How can I make a video file smaller?

    I'm having problems with video file sizes.  I've been making cuts to videos I want to put on my website and on Box.com and am not having any problems with the software I'm using to make cuts (iMovie) but when I save them the files are huge.  The orig