"Submit to" will depend on the number of table cell

Hello

When you click on a "submit" button, I try to have my form go to some people based on a number in a table cell.

For example, if the amount in dollars in the table cell, I have named "TotalPrice" is $ 1,000 or more, he goes to a group, and if it is less than $1,000, he goes to another group.

Here is the script I am trying me, but not having not successful...

var vEmail;
var vCC;


if (Page1.Table1.Row[11].TotalPrice.rawValue >= 1000)
{
    vEmail = Page1.Buyer.rawValue; 
    vCC = Page1.RequestorEmail.rawValue + "[email protected]";
}
else
{
    vEmail = Page1.Buyer.rawValue;
    vCC = Page1.RequestorEmail.rawValue;
}

Any advice would be appreciated.

Kind regards

ZeroZone

var vEmail;
var vCC;

if (Page1.Table1.Row.all.item(11).TotalPrice.rawValue >= 1000)
{
    vEmail = Page1.Buyer.rawValue;
    vCC = Page1.RequestorEmail.rawValue + ";[email protected]";//make sure to separate emails with semicolons(;)
}
else
{
    vEmail = Page1.Buyer.rawValue+";[email protected]";
    vCC = Page1.RequestorEmail.rawValue;
}

app.mailMsg({bUI:true,cTo:vEmail,cSubject:"My Subject",cCC:vCC})

Kyle

Tags: Adobe LiveCycle

Similar Questions

  • Can we restrict the number of table rows to display on a page that is only 2 or 3 rows appear? How to do this?

    Mr President.

    Can we restrict the number of table rows to display on a page that is only 2 or 3 rows appear? How to do this?

    Concerning

    Tender,

    Set the RangeSize property on the table.

    See you soon

    AJ

  • Pulse width depends on the number of pulses (pci-6602)

    Hello

    I'm trying to generate samples done with pci-6602.

    I use CO Pulse ticks + implicit options

    External impulses is 1ms 1PPS pulse from the trimble GPS receiver

    If I set the number of pulses = 1, then I had to pulse length (high ticks - 1) =

    If I set the number of pulses > = 2 and low ticks > = 3, then I got pulse length = (high ticks)

    If I set the number of pulses > = 2 and low ticks = 2, then I got last puls width = (high ticks - 1) and all other vegetables dry with length = (high ticks)

    With a single generation pulse width pulse is (high ticks - 1)

    Is there an option to configure the same pulse width for any number of pulses for a train over (N pulse)

    screens to fix


  • How to stop auto depending on the number of backup

    It seems in numbers when I get out the program it automatically saves the content without my run a backup on the file menu.  How can I disable this feature?

    Hi Bob,

    This isn't how it works on my machine. OS X 10.11.4 and numbers 3.6.2. That's how it worked for me as long as I can remember: I left numbers and one dialogue askes if I want to save or restore the changes.

    I make my selection, and the program closes.

    Numbers of leaves without dialogue? It's very strange for me.

    With Time Machine I can go back to a previous version easily if I need to.

    Quinn

  • The horizontal bar in all the number of table

    Hello world

    I use JDev 11.1.1.7

    My problem is there is a horizontal bar in all adf table. Before it there is no problem like this; because all my components are stretching.

    But why are there horizontal Board in the table all now? I don't understand. I don't change any design or component. It happened all of a sudden

    Thank you

    Good job

    Hello

    Instead of using AFStretchWidth, you can decide which column will be is not stretched by using the columnStretching attribute for example columnStretching = "c1".

    Please surround table with panelCollection.


    For the DMS - it can persist the resizing of columns by the preferences of the user - so each user gets its layout, exactly as they want.

    Roger Suen blog: ADF tips and tricks: stretch the component panelCollection and table

    Thank you

    Amey

  • Format mask for the size of table cells

    Hi all

    I'm working on a catalog with a lot of products, and each product has a table for its specifications.

    The catalogue is ready for printing, but now the customer asks me to enlarge certain parts of the text in the table.

    This means that I have to give some cells more space. The cells have different sizes, and that's the problem:

    Is there a way to define the new cell widths and heights as a sort of "master format" so that I can change the tables
    for the design of new without marking of each column and adjusting by hand?

    Unfortunately, the layout is too complex to have tables on a master page, as they are not on a particular coordinate

    throughout the catalog.

    I hope I described my problem quite clearly I'm no native speaker

    I thank very you much in advance!

    Max

    The script linked in the post one of this thread will allow you to adjust automatically to match - table column widths it allows to save the widths of a table in the style of the table and then apply them to other tables of this style.  I don't know about heights, but if all the heights will be the same within a given table, you can select all the lines and enter the exact height of the cell.

    Re: width of column in the specs of the cell

  • How to check the number of servers, a unique summer migrated database?

    Is it possible to check the information of the previous server where the database has been migrated.

    Ajay Vijayan wrote:

    The binaries have been transferred from the old server and grid has been installed in the new ASM migration server.

    Alert log is purged according to police.

    Ajay

    1. logically, it can not be followed from the point of view of database. Since when we migrated to new server we can just copy the data files and take the help of rman and migrate (hope you are aware)

    2. If we are not reset all the newspapers during the process, if we do it due to a problem we knew that the level of incarnation (date/time)

    3 database does not take care of these information

    4. perhaps there is an alternative, you can get it from 'DBA_HIST_DATABASE_INSTANCE '.

    that keeps INSTANCE_NAME and HOST_NAME... .When you database runs from host A for 6 months and then you moved to server 'B '.

    5 to start and next stop he will track this new server (provided during migration if you have made a rebound at this time, then you can have alteast moving day)

    6. IF you are looking for server then in the course of the interview you can bounce while patching so separate hostname is able to follow

    -Note - rest depends on the number of records that he takes for his life

    It may be useful

    -Pavan Kumar N

  • Importing problems - will not display the preview or import.

    I am a Professor of photo H.S (black and digital room).  I have Photoshop and Lightroom.  'Digital' students mainly use Lightroom.  Everyone in class is successful, but I have a student who has a problem with uploading images on an sd card.  She tries to download the images from the sd card using a card reader.  They are a 3300 of Nikon nef files.  We are using lightroom 4.  They import but say "Preview is unavailable" if she can't see his images.  She can see images if it opens in Photoshop.  She sees in Photoshop, choose the files that she loves, will return to Lightroom, selects the files she wants import (depending on the number of files) and they won't open in lightroom.  What we're doing wrong?  Can someone explain how to solve this problem?

    Hi j.prange,

    Greetings.

    • Nikon 3300 is too new to LR 4, either upgrade to LR 5 or 6 LR else use the DNG Converter

    Adobe - Adobe Camera Raw and DNG Converter: for Windows: Adobe DNG Converter 8.4

    Concerning

    Rohit

  • How to display the number of dynamics and the progress bar graphic on the title of the region

    Hello

    I have several show/hide parts of a report on a dashboard page. When the user comes to this dashboard page, it see areas collapsed and a status appropriate for each region and click on the region concerned the status listed in the title bar of region-based. Each region show different reports as "Exits", "Tasks", "Communiqué of progress" etc., for example, the user want to see the number of questions and tasks as a number displayed on the side right of the 'from', 'Tasks' area, in the same line as the title of the region. In addition, the user wants to see a progress bar graphic of liitle for the region 'Progress of the liberation' displayed on the right side of the area, in the same line as the title of the report. I have the return function to get these numbers and the graphic progress bar, but do not know how to post them on the right side of the area in the same line as the title of the region. all the ideas are really appreciated.

    Thanks for your time,
    Surya

    Seems interesting. Could create an example on apex.oracle.com experiment?

    Try this approach:

    Create an item hidden in each region to receive these values of synthesis (e.g. P1_DASH_TASK_COUNT) and calculate them the or some functions in regions before calculations.

    These values using the notation of substitution in the region of reference titles:

    Tasks &P1_DASH_TASK_COUNT.
    

    This can then be styled with CSS to get the look required, starting with:

    .dash-summary {
      float: right;
    }
    

    Exactly what is required in the CSS will depend on the theme/template used, why it would be a good idea to see on apex.oracle.com.

  • Is it good to keep my macbook on charge all the time? This reduces the number of cycles of battery I would have otherwise?

    I have a 2015 13-inch macbook pro Retina display. What is the best way to keep the battery in good conditions? In particular: When should I charge it? Only when the power is low)<20%) or="" anytime="" that="" i="" can?="" more="" in="" particular:="" if="" i="" keep="" it="" in="" charge="" all="" the="" time,="" will="" this="" be="" good="" or="" bad="" for="" the="" battery?="" will="" it="" reduce="" the="" number="" of="" battery="" cycles="" that="" i="" would="" otherwise="" have?="" many="">

    Keep the computer plugged in whenever possible.

    If you keep the computer always connected, make sure that at least twice a month

    Run it on battery until battery charge level falls to about 40-50%.

    Please don't completely discharge the battery. Discharge the battery completely will reduce wear and tear on the battery.

    Trying to keep the number of Cycles of battery low does ' t help.

    For more information:

    Section: To optimize the battery life

    http://support.Apple.com/en-us/HT204054

    Best.

  • get the number of wired physical channels?

    Hello

    I need to create a Subvi, and in this sub - VI, it is important to know the number of physical channels connected to the entrance of the Subvi.

    Is the only way to do than writing another "channel search and County" - Subvi, which examines the "physical" channels - wire? Something looking for a ': 'and',' and who treats this information then.

    Or is there a better way to do it?

    Or has someone already written such a Subvi, which counts the number of channels wired?

    Thank you very much

    Andy

    If you ask to know how many channels is in a physical channel DAQmx? If so, just the physical channel to Unflatten DAQmx channel chain wire. You'll get a table. The size of table function will give you the number of channels.

  • Laptop keyboard is locked on the number and symbols.

    Keypad is locked on the blue numbers/symbols instead of type normal letters. For example, because me, the keyboard step 5. It's a HP Pavilion Entertainment PC laptop running Windows Vista. How to move this back to normal typing? I have a wireless keyboard for Windows I use to work around the problem, but I want to disable this and use the computer to places other than the office. Thank you.

    Try combinations of keys like Shift + NumLock or Fn + NumLock to activate turn off the number lock feature, see the documentation for your laptop or HP web site for more details on which combination of keys will turn off the number lock feature.

    "judeeshleman" wrote in the new message: * e-mail address is removed from the privacy... *

    Keypad is locked on the blue numbers/symbols instead of type normal letters. For example, because me, the keyboard step 5. It's a HP Pavilion Entertainment PC laptop running Windows Vista. How to move this back to normal typing? I have a wireless keyboard for Windows I use to work around the problem, but I want to disable this and use the computer to places other than the office. Thank you.

  • Expression to determine the number of effects on a layer?

    Hello

    I'm writing an expression that takes into account the number of effects has a of the layers.  In a perfect world, it would be nice to get a count of only some effects (ex: how many Slider controls are applied)... but I prefer to start at base and make my way up to that (if we can do it at all).


    So... did someone done something like this before / is it possible?

    ~ pemling

    Oh, and I use (as of today, at least) the most recent version of the AE: 13.2.0.49

    I think this will give you the number of effects:

    numEffects = thisComp.layer ("Layer 1")("Effects").numProperties;

    Getting the number of controls Slider might be difficult, if they have been renamed year is no longer "Cursor" in the name.

    Dan

  • JavaScript which will show you the best scores

    I am working on a form where people answer the questions, add up the results to find out which area they score higher.

    I put calculations in place for auto fill the scoresheet, but I wish that the results page to AutoFill with the name of the 3 best scores in the order 1, 2, 3.

    Is this possible with Javascript? I'm an absolute beginner.

    OK, so if you create 3 fields on page 6, called "TopScore1", "TopScore2" and "TopScore3", then you can place this code in the custom the first field calculation script:

    var fieldNames = ["Administration", "Craftsmanship Arts", "Craftsmanship Manual", "Evangelism", "Exhortation", "Faith", "Giving", "Helps", "Hospitality",
        "Prayer", "Knowledge", "Leadership", "Mercy", "Music Vocal", "Music Instrumental", "Serving", "Shepherding", "Teaching", "Wisdom", "Writing"]
    
    var fields = [];
    for (var i in fieldNames)
        fields.push(this.getField(fieldNames[i]));
    
    fields.sort(sortByValue);
    
    event.value = fields[0].name;
    this.getField("TopScore2").value = fields[1].name;
    this.getField("TopScore3").value = fields[2].name;
    
    function sortByValue(a,b) {
        return b.value-a.value
    }
    

    Of course, when the fields are empty (or when you have more than one field with the same score), first results will depend on the initial order, although there could be more.

    It is possible to create a script that will bring together the categories and output a list to the high score fields (instead of a single category name), but that would require a script more complex.

  • Dependent on the table

    Hello
    If I delete a table, then the following, which will be automatically removed by oracle if they depend on the same deleted table?

    VIEW (forced the view and the normal display mode)
    SYNONYM
    PROCEDURE
    FUNCTION
    TRIGGER

    904298 wrote:
    all of them will be invalid if the table is dropped?

    NO, now prove me right or wrong.

Maybe you are looking for