Help with date calculation

Need help to calculate a future date.  Right now I have it where he Calc. 25 days in the future.  But need 25 working days in the future.

Form1. Page1.Button1::click - (JavaScript, client)

var oNow = new Date();
Add 25 days and subject to the new date
oNow = new Date (oNow.getFullYear (), oNow.getMonth (), (oNow.getDate () + 25))
view the new date information
sMsg = "in 25 days, it will be" + util.printd ("mm/dd/yyyy", oNow);
sMsg += "\n" + "the day of the week will be" + util.printd ("dddd", oNow);
App.Alert (sMsg, 3, 0)

Hello

I have not tried this, but it should be close:

var oNow = new Date();
var oDay = util.printd("dddd", oNow);
// add 25 working days and make new date object
if (oNow == "Saturday")
{
     oNow = new Date(oNow.getFullYear(), oNow.getMonth(), (oNow.getDate() + 35 + 2));
}
else if (oNow == "Sunday")
{
     oNow = new Date(oNow.getFullYear(), oNow.getMonth(), (oNow.getDate() + 35 + 1));
}
else
{
     oNow = new Date(oNow.getFullYear(), oNow.getMonth(), (oNow.getDate() + 35));
}
// dispaly new date information
sMsg = "In 25 working days it will be " + util.printd("mm/dd/yyyy", oNow);
sMsg += "\n" + "The day of the week will be " + util.printd("dddd", oNow);
app.alert(sMsg, 3, 0);

The 35 is seven days for each of the 5-day work weeks. The + 2 and + 1 grow a weekend in the next business day.

Hope that works,

Niall

Ensure the dynamics

Tags: Adobe LiveCycle

Similar Questions

  • Problems with date calculation

    I have a java (and much more far vb) background and it seems that I'm really dependent functions for date calculations.  I'm trying to do a few things, but have not been able to accomplish them.

    I do not have

    Calendar.add()
    

    I briefly contemplated an add function by converting into long then do the calculation and returns a new calendar object, but the problems with this approach comes flourishes as soon as I started.  Just trying to find out if a date was yesterday was me banging my head against the wall.

    Any help please?

    I wrote this, but I don't know if there is a simpler method, go to this issue the wrong way, etc.

    public static boolean isYesterday(Calendar c) {
        Calendar today = Calendar.getInstance();
        int newDay = today.get(Calendar.DAY_OF_MONTH);
        if (newDay == 1) { //get last day of previous month
            int newMonth = today.get(Calendar.MONTH);
            int newYear = today.get(Calendar.YEAR);
            /* If jan 1, get dec of last year */
            if (newMonth == 0) { //Java Calendar.MONTH is zero-based
                newMonth = 11;
                newYear -= 1;
            today.set(Calendar.YEAR, newYear);
            }
            today.set(Calendar.MONTH, newMonth);
            newDay = DateTimeUtilities.getNumberOfDaysInMonth(newMonth, newYear);
        } else {
            newDay -= 1;
        }
        today.set(Calendar.DAY_OF_MONTH, newDay);
        return DateTimeUtilities.isSameDate(today.getTime().getTime(), c.getTime().getTime());
    }
    

    'convert to tz to the device.

    I recommend that stick you with using UTC for everything.  If you want to display to the user, then a DateField will convert the hour UTC to local time.  SImpleDateFormat.formatLocal will also print you long time UTC to local time.  So I recommend that you do not have to convert once at the local level.

    Remember that System.currentTimeMillis () is time not UTC/GMT.

    Of course, that's a good advice or not depends on your app.

    I'm not aware of any third-party code that helps, I reinvented wheels square to all my treatment to date.  But I never really looked at.

    About your code, assuming that c calendar uses the local time zone, so I think that the code works.

  • Help with date code

    SRY about that amount of lines of code... but I really need help...

    I have to insert into a table, the date as 12/10/2009 and time, like 22:34:12... but, when I select a date picker date and insert into a text field... the time I got this result:

    If the inserted date was 12/12/2009 time 22:34:12
    The result is... 12/12/0922 34:12:00 < < < < < s get just the number two last year and by inserting the two number first time in the year, as the year 0922...

    I m using a javascript source to create a date picker...

    and this is the procedure to insert in the table...



    PROCEDURE set_atendimento)
    p_id_chamado_atendimento IN chamado_atendimento.id_chamado_atendimento%TYPE,
    p_id_chamado IN chamado_atendimento.id_chamado%TYPE,
    p_informacao IN chamado_atendimento.informacao%TYPE,
    p_datahora_inicio IN chamado_atendimento.datahora_inicio%TYPE,
    p_datahora_fim IN chamado_atendimento.datahora_fim%TYPE,
    p_hora_inicio IN VARCHAR2,
    p_hora_fim in VARCHAR2
    )
    IS

    v_inicio DATE;
    v_fim DATE;

    BEGIN
    --
    v_inicio: = TO_DATE (TO_CHAR(p_datahora_inicio || p_hora_inicio), "DD/MM/YYYY HH24:MI:SS");
    v_fim: = TO_DATE (TO_CHAR(p_datahora_fim || p_hora_fim), "DD/MM/YYYY HH24:MI:SS");
    --
    UPDATE
    chamado_atendimento
    SET
    Informação = UPPER (p_informacao)
    WHERE
    id_chamado_atendimento = p_id_chamado_atendimento;
    IF SQL % NOTFOUND THEN
    INSERT INTO
    chamado_atendimento
    (id_chamado_atendimento, id_chamado, id_operador, datahora_inicio, datahora_fim, Informação)
    VALUES
    (SEQ_CHAMADO_ATENDIMENTO.nextval, p_id_chamado, pkg_operador.get_id_operador, v_inicio, v_fim, UPPER (p_informacao));
    END IF;
    --
    END;

    -------------


    Here's the JAVASCRIPT
    ------------


    < script language = "JavaScript" type = "text/JavaScript" >
    $(function() {})
    $. datepicker.setDefaults({)
    showOn: 'button ',.
    ButtonImageGadget: ' / i/themes/fwsac/includes/jquery/images/calendario.gif',
    buttonImageOnly: true,
    closeText: 'can ', he said.
    prevText: "< previous ',"
    nextText: ' Pr & oacute; ximo > ',
    currentText: "Hoje,"
    monthNames: ['Janeiro', 'February', 'March & eacute; o', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
    monthNamesShort: ['Jan', 'Feb', 'Mar', 'Abr', 'May', 'June', 'July', 'There are', 'Set', 'Out', 'November', 'December'],
    dayNames: ["Domingo","Segunda-feira ',' Ter & ccedil;"] [' a - feira ","Quarta-feira","Quinta-feira","Sexta-feira","Saturday"],
    dayNamesShort: ["Dom", "Seg", "Ter", 'Quality', 'Who', 'Sex', 'Sab'],
    dayNamesMin: ["Dom", "Seg", "Ter", 'Quality', 'Who', 'Sex', 'Sab'],
    dateFormat: dd/mm/yy"."
    firstDay: 0,
    isRTL: false,
    showAnim: "creep".
    });
    $('#P5004_DATAHORA_INICIO,_#P5004_DATAHORA_FIM').datepicker ({beforeShow: fdateRange});
    });
    function fdateRange (input) {}
    return {}
    minDate: (input.id == 'P5004_DATAHORA_FIM'? $("#P5004_DATAHORA_INICIO").datepicker ("getDate"): null);
    maxDate: (input.id == 'P5004_DATAHORA_INICIO'? $("#P5004_DATAHORA_FIM").datepicker ("getDate"): null)
    }
    };
    < /script >


    what I need to change to get the 4 digits of the year and all the numbers of the hour and the conca "|" with the date?

    can anyone help with this, pls?

    Hello again,

    Yes, maybe you need to change them all to varchar2. You work with 2 different types of data, trying to concatenate them and then convert them. I would start with them all the same.

    Don.

  • Help with date required

    Hello

    I have two columns with the date and the other with time, but both are vchart2.

    What is the best way to convert a column of actual date

    or add a column with the effective date and fill it with data from the first and second column

    in the format (12 October 2013 10:31:11 ', JJ 24HH:MI:SS)?

    Thank you very much

    Hello

    user9223521 wrote:

    ...  You're right, that a space between column1 and column2 is useful.

    I do not think that a space it is useful, but if you think it is, go ahead and add - we.  The important thing is that the data in the 1st argument to TO_DATE having match format in the 2nd argument.  If there is no space between the year and the time in the 1st argument, then do not use a space between the year and hour in the 2nd argument.

    This code is not convert the column or add a column? ...

    It's true.  Replace the 2 columns existing VARCHAR2 with a DATE column is a good idea.  Here's a way to do it:

    1. Use ALTER TABLE to add a new column (let's call it entry_dt.  You cannot use the same name as one of the existing columns.)
    2. UPDATE the table using TO_DATE as shown above, to set the value of entry_dt
    3. Use ALTER TABLE to drop the old column1 and column2
    4. If you want to rename entry_dt to one of the old names of columns, use ALTER TABLE to this

    If you have incorrect or invalid data, then step 2 fails.  See

    Re: How to select valid dates only

    of the means to detect bad data without triggering an error, then you can fix before the UPDATE, or ignore it all by doing the UPDATE.

  • Help with automatic calculation field


    I'm doing a form to include an automatic calculation for feet cubes (Lxwxh/1728).

    Even if this is possible in the simplified field notation I need to automatically round up for and decimal point. I tried to use the custom calculation script, but I have no experience with java.

    Event.Value = Math.ceil (this.getField("LENGTHRow1").value * this .getField ("WIDTHRow1") .value * this 1728/d("HEIGHTRow1")) .getFiel;

    It's like I had with Googling but I believe that there is some sort of error with the calculation. I would be very happy if someone can show me what should be the script.

    You are missing the part 'value' after the second getField command.

  • Need help with this calculation

    Hi members,

    Im trying to do some logical columns for calculations. It is a very simple calculation, but I can't seem to make it work in the repository.
    The data upon which I make eyes of calculation as follows.

    Issue Nr. | Question | Meet Nr. | Response | Answers (number of responses)
    1. | Job satisfaction | 1. | Very good | 8
    1. | Job satisfaction | 2 | Good | 2
    1. | Job satisfaction | 3 | Bad | 5
    1. | Job satisfaction | 4 | Very bad. 0

    It is an example of the data. Now, I want to make a logical column to calculate the 'happiness factor '. The formula looks like:

    (Very good + good) / (very good + good + good + bad) * 100 = happiness

    So it would be 10 / 15 * 100 = 66.66.

    Very simple, but I have no idea on how to accomplish this formula in the repository. What I was aiming for in my head, it was something like:

    Select the answers where [answer] Nr. (3,4) / select responses where [answer]. Nr in (1,2) * 100 = :)


    Does anyone know how to do this in the repositroy? It would be highly appreciated.

    Erik.

    Hello

    This happens when we don't know all the facts and we create our scenarios and responses only what we know...

    Now you can do if you do not use 'no opinion' or 'Empty response' in our 'answers' but again to tuition assistance box...

    'All answers worth calculation' =
    case when answer in ('list of what answers I want to aggregate', ((Very) Happy... (Very) Unhappy))
           then 'my new All answers'
           else 'answers I need to ignore'
    end
    

    and our dimmnesion should look like:

    'Type of survey' -> 'Question' -> 'All answers worth calculation' -> Happiness -> Answer
    

    in this case the levels should be no to the 'Question' but to our new "answers a calculation value..."

    So, for an issue with 21 responses it is only 6 entries ((very) happy, (very) unfortunate, Blank, do not know)
    A separate account solves your problem...

    In addition, in your last post I don't understand how you can sum UP non-numerical data (Happy/headaches)
    No aggregate data not digital (Happy/headaches)
    you aggregate your fact group by happiness(Happy/Upset)

    sum ('Table'.) ("' #Answers" by BOX WHEN in Answer (' very good ',' good ') THEN ELSE 'Evils' END 'Happy' *) *.

    I think you've got the ideea of how play with several groups on the same Assembly and how to manipulate BI...
    All you have to do is to play with your data to add or exclude what you need
    If the data is not there you want you allways can create a view in the database or in physical layer so it can help you more.
    On another thing... There is a way to filter data at the logical level at the source of the logical table, the content tab, where clause. Don't say you use here, just give it a shot

    Best regards and fun of it
    Nicolae

  • Help with data &amp; Apps!

    I noticed on my friends phone all of its newspapers of 0bytes data, someone knows why?

    She was also very secret making a new icloud I found as well as the apple, where in addition to his phone can it ID to hide apps? Sorry to ask just so frustrated with him in support when she is not working she is just on a phone that 'I' pay for.

    jeff2965 wrote:

    I noticed on my friends phone all of its newspapers of 0bytes data, someone knows why?

    She was also very secret making a new icloud I found as well as the apple, where in addition to his phone can it ID to hide apps? Sorry to ask just so frustrated with him in support when she is not working she is just on a phone that 'I' pay for.

    We can not help you with your relationship problems.  If you are having problems with privacy and trust to your girlfriend, you may need that back with her.  We do not know any of you.

  • Help with the calculations of time

    I tried several searches but can't seem to find what I need to do. I need to read a file with two columns, the first column is the time of an event. Then I need to calculate the time between each event (row). I know I have to use a loop to read the file but I cannot find any information on what the best way to calculate the time between each event so that I can get statistics such as average time per cycle, time since the last cycle, etc.. The only way that I can think is to read the file as a string and then parse time, but that doesn't seem like an effective way of doing things.

    example: data.csv

    08:00 10

    08:12 8

    10:00 2

    11:12 3

    Use '% <%H:%M> t' as format string instead. Capital T formats time as an absolute time, which according to your format is not what you are working with. The tiny t he reformatted as a relative timestamp and you should be able to calculate your time between events of.

    Hope this helps,

    Rob

  • need a little help with time calculation

    Hello

    I tried to implement oauth2 and youtube api. I can connect and can recover the access_token and other oauth required as expires_in json values.

    What I'm trying to do is drive if my access token is valid or not before making another call to their api - youtube gives a value - expires_in that normally contains 3600, which I suppose is seconds. I'm trying to add this time now using clock_gettime(), but I don't get correct values for my calculation - nowTime + expiresInt.

    Anyone can point out the problem with my code please? It could be a bad way to do it, but I thought that I spent a few hours on this subject before asking for help.

    Thank you.

    token = c.value("access_token").toString().toStdString();
        refreshtoken = c.value("refresh_token").toString().toStdString();
        saveValueFor("access_token", QString::fromStdString(token));
        string expires = c.value("expires_in").toString().toStdString();
        saveValueFor("refresh_token", QString::fromStdString(refreshtoken));
        struct timespec* start;
        clock_gettime(CLOCK_REALTIME, start);
        int nowTime = start->tv_sec;
        std::stringstream str(expires);
        int expiresInt;
        str >> expiresInt;
        nowTime += expiresInt;
        stringstream nowTimeString;//create a stringstream
        nowTimeString << nowTime;//add number to the stream
    

    Now you install milliseconds and seconds.

  • Need help with Data Bridge/DataAssist!

    Hi all

    So Ive recently brought Data Bridge I need to create a search box on a site I'm developing. I have a limited knowledge of Dreamweaver and so advised to buy Data Bridge to help me create my search box. This is what I would like as my Web page to do.

    The site is a funeral and I need to create a page for donations with a search box, so that donors can enter the name of the deceased and therefore a name (or names that are similar to what has been entered) will appear. Next to the name will be a URL.  Every deceased person will have a unique URL, used gift payments actually being taken on this site, the URL will link to a page of different gifts for that person on another site, the link will redirect them to this site (I hope all this makes sense!).

    Ive Setup MAMP on my computer, created a database table in phpmyadmin, deamweaver connected to this base with a Recordset, created a page php DataAssist Search Wizard automatically inserts the form on my donations.html page (see below - donations.html and php)

    But I'm stuck now what to do next. The results will appear on this page or do I create a html page appear on the results and a new php page for results? I'm confused as to what I should do?

    Any help REALLY appreciated!

    screenshot.jpg

    <? php require_once('Connections/milesdata.php');? >

    <? php require_once("webassist/database_management/wada_search.php");? >

    <? PHP

    (Copyright 2005, WebAssist.com) WA database search

    Recordset: milesdata;

    Advanced: donations.html;

    Form: form1;

    $WADbSearch2_DefaultWhere = "";

    If (! session_id()) session_start();

    If ((isset($_POST["WADbSearch2"])) & & ($_POST ["WADbSearch2"]! = "")) {}

    $WADbSearch2 = new FilterDef;

    $WADbSearch2-> initializeQueryBuilder("MYSQL","1");

    statements of keyword tables

    $KeyArr0 = array ('name');

    comparison list additions

    $WADbSearch2-> keywordComparison (' $KeyArr0, "".) ((isset($_POST["Name"])))? "$_POST ['Name']:" ") ."","and","includes",",%20","%20","%22","%22",0);"

    Save the query in a session variable

    If (1 == 1) {}

    $_SESSION ['WADbSearch2_search'] = $WADbSearch2-> whereClause.

    }

    }

    else {}

    $WADbSearch2 = new FilterDef;

    $WADbSearch2-> initializeQueryBuilder("MYSQL","1");

    get a session variable filter definition

    If (1 == 1) {}

    If (isset($_SESSION["WADbSearch2_search"]) & & $_SESSION ['WADbSearch2_search']! = "") {}

    $WADbSearch2-> whereClause = $_SESSION ["WADbSearch2_search"];

    }

    else {}

    $WADbSearch2-> whereClause = $WADbSearch2_DefaultWhere;

    }

    }

    else {}

    $WADbSearch2-> whereClause = $WADbSearch2_DefaultWhere;

    }

    }

    $WADbSearch2-> whereClause = str_replace ("\" "," "", $WADbSearch2-> whereClause);

    $WADbSearch2whereClause = ";

    ? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    @mysql_select_db ($database_milesdata, $milesdata);

    $query_milesdata = "SELECT url OF Don WHERE name = 'name' ORDER BY name ASC";

    setQueryBuilderSource($query_milesdata,$WADbSearch2,false);

    $milesdata = mysql_query ($query_milesdata, $milesdata) or die (mysql_error ());

    $row_milesdata = mysql_fetch_assoc ($milesdata);

    $totalRows_milesdata = mysql_num_rows ($milesdata);

    ? >

    <? PHP

    mysql_free_result ($milesdata);

    ? >

    DO NOT copy anything from the donation.php page is the reason why it probably doesn't just copy the code I pasted above and paste it into a new .php file - save as what you want BUT remember to point the scope of shapes on the page.

  • Help with Date Picker months classic display in 4.2.5.00.08

    Version: 4.2.5.00.08

    Topic: business 3

    Hello

    I have two selectors classical fields of dates that represent a Date "from" and "to this day".

    When you click on the calendar icon and change the month in the select list on the "Date from" and selecting a date, and then by opening the 'to Date' by clicking on the icon of the month calendar is displayed corresponds to the current month (sysdate) in the Select list.

    Demand for the user must have the month in the match of the calendar 'To Date' the month selected on the calendar "Date from" when you click on the calendar icon on "Date to the.

    Since this announcement, the current month is September. If the month is changed in October and a date is selected in the 'Date' then I click on the 'To Date' calendar icon the month displayed in the list select should be October not September.

    How can this be achieved?

    Thank you

    Joe

    Joe R wrote:

    Version: 4.2.5.00.08

    Topic: business 3

    I have two selectors classical fields of dates that represent a Date "from" and "to this day".

    The two dates selectors 'Business' and classic theme 3 are well beyond their expiration date. A modernization program for this app would be a very good idea...

    When you click on the calendar icon and change the month in the select list on the "Date from" and selecting a date, and then by opening the 'to Date' by clicking on the icon of the month calendar is displayed corresponds to the current month (sysdate) in the Select list.

    Demand for the user must have the month in the match of the calendar 'To Date' the month selected on the calendar "Date from" when you click on the calendar icon on "Date to the.

    Since this announcement, the current month is September. If the month is changed in October and a date is selected in the 'Date' then I click on the 'To Date' calendar icon the month displayed in the list select should be October not September.

    How can this be achieved?

    It can be done with dynamic action of executing JavaScript Code. I'd like to think that there is a better way to do it than that, which basically extract the picker of the year and month, then rewrites the JS code that triggers the date picker To use them as parameters month and year.

    Dynamic action

    Event: Mouse enter

    Selection type: jQuery Selector

    jQuery Selector: #P1_TO_IMG

    Real Actions

    Action: Run the JavaScript Code

    Fire on Page load: NO.

    Code:

    var from, d, y, m, button, href, js, p;
    
    from = $v('P1_FROM');
    
    if (from) {
      d = new Date(from);
      y = d.getUTCFullYear().toString();
      m = (d.getUTCMonth() + 1).toString();
    
      button = $('#P1_TO_fieldset.datepicker a');
      href = button.attr('href');
      js = href.match(/^(javascript:void\(\$p_DatePicker\()(.+)(\)\);$)/);
      p = js[2].split(',');
    
      p[8]  = "'" + y + "'";
      p[13] = "'" + ((m.length === 1) ? "0" + m : m) + "'";
    
      href = js[1].concat(p.join(), js[3]);
      console.log(href);
      button.attr('href', href);
    }
    

    Replace P1_FROM and P1_TO with the names of your items as needed.

  • Help with the calculations of the form

    I have a form with fields 4R, 4W, 4 p and 4 M.  I want the sum of all the numbers in one of these fields and multiply the total by 6 to get 6 (4R + 4W + 4 P + 4 M) how this enter a calculated field?  I tried several ways and they simply return 0.  Thank you.

    Yes, because then you can use the option of rating Simple field integrated and just enter:

    (R4 + W4 + P4 + M4) * 6

  • help with custom calculation / boxes

    Hello.

    I'm trying to link the boxes for a total of overall points as follows:

    Question1 [] yes [] no

    Question2 [] yes [] no

    1 point if either 'Yes' is selected. (Max 1 point only)

    Question3 [] yes [] no

    Question4 [] yes [] no

    2 points in total for each '' Yes. '' (Maximum 4 points)

    I set each box to a value of exports of 1.

    I have a score box "box2".

    // first section questions
    // set vars
    var points = this.getField("YesOne").value + this.getField("YesTwo").value;
    // if then
    if ((points > 0)) {this.getField("box2").value = 1} 
    else {this.getField("box2").value = 0};
    

    I got stuck on the first part, because it doesn't work as I said above, any help would be appreciated.

    I am trying to post the actual PDF, but I can't find a way to put it in this ad...

    Thank you!

    Here is an example with all 3 approaches and the display of the value of each field:

    Boxes amount

  • Need help with custom calculation Script

    Hey everybody.  I'm using Acrobat X Pro and stumbling a bit on the syntax of the following equation.  I need to add the value of "Cell1" & "Cell2" then add the value of "Cell3.  However, the value of "Cell3" is entered by the user and specifies a percentage of the sum of "Cell1 &"Cell2".  For example: If the user enters "3" in "Cell3" I need the value returned at 3% of the sum of "Cell1" + "Cell2".  If the user enters "9" in "Cell3" I need the value returned for "Cell3" 9% of the sum of "Cell1 and Cell2" and the end result should be the sum of "Cell1 Cell2 + Cell3.  In more detail:

    If "Cell1" = "Cell2" $ 500 = $500 and "Cell3" = '3' then I need the returned value to be $1030,00.

    I hope this makes sense. Here's what I have so far, but alas, it does not work.  Any help would be GREATLY appreciated.

    Get the first value in the field, as a number

    var v1 = + getField("Cell1").value;

    Get the second field value, as a number

    var v2 = + getField("Cell2").value;

    Get the value of a field, a number transformation

    var v3 = + getField("Cell3"/100).value;

    Calculate and set the value of this field for the result

    Event.Value = v3 + (v1 + v2);

    Thank you

    Solan

    I have posted a reply, but realized that it wasn't what you wanted. There is some confusion about what you want for Cell3. A hand, you say that the user enter a vaule in the area, but them you say you want its calculated value based on what the user has entered and two other field values. It seems to me Cell3 should be the domain that the user enters the percentage, and the calculated field (Cell4) script could be:

    Get the first value in the field, as a number

    var v1 = + getField("Cell1").value;

    Get the second field value, as a number

    var v2 = + getField("Cell2").value;// get treatment field value, as a number

    Get the percentage

    var v3 = + getField("Cell3").value;

    Calculate and set the value of this field for the result

    Event.Value = (1 + v3 / 100) * (v1 + v2);

  • If anyone can help with a calculation in Acrobat forms?

    I have a form created in Acrobat and impossible to get a calc to function. Field ' # guests_2 ' Gets an amount and should be multiplied by $75 for a total field of '2' HELP Please! Thank you

    There are two ways to do this. Tab in calculation of the properties of the field for the field '2' do either:

    1 field option simplified rating:

    Enter the following information: #\ guests_2 * 75

    It would be better if you changed the name of the field to something like "num_guests_2", so the entry could be changed to:

    num_guests_2 * 75

    2. custom calculation script:

    Enter the following text:

    Set this field value

    GetField("#_guests_2").value = Event.Value * 75.

    Assuming that the ' guests_2 # ' the field is numeric. You don't have to change the name of the field for that, but I think it would still be a good idea.

Maybe you are looking for

  • iMac (21.5 inch) end 2012 hangs constantly

    Hi guys,. I hope someone can help me with this problem. I have a big problem with my iMac (21.5 inch) end 2012. It crashes constantly, I can't even watch video YouTube 360 more or look at picture with low preview 500 KB. My iMac freezes, crashes, won

  • Internet Library/Telnet. time-InetTelnetWrite

    Hello I set up a server Telnet to echo on an FPGA, and I want to communicate with him using the ICB and the library Internet/Telnet. It works very well so far, but between the reading of the echo response and send the following information, there is

  • Cannot hear the sound of radio stations online

    I have a laptop Compaq Presario CQ61 running Windows Vista 32 bit. Recently I experienced problems of listening to online radio stations that I can no longer hear live broadcasts. In addition, I cannot hear any sound when you watch programmes broadca

  • Installation hangs at the backup data when reinstalling Win8 recovery Dell &amp; restore USB

    I need to clean and reinstall Windows 8.1 because the administrator password has been lost, no password recovery disk is available and that newspapers now only machine in the guest account and you can't run the Dell recovery and restore from a guest

  • "Code 43 Windows has stopped this device because it has reported problems - Windows 8.

    'Code 43 Windows has stopped this device because it has reported problems.' How to rectify this problem in my pc windows 8? Original title: "Code 43 Windows has stopped this device because it has reported problems." How to rectify this problem in my