Need help subtraction formula.
Hey aboard.
I have a form with some math on it and everything was fine until I had to do the subtraction between two
two fields; to my surprise, Acrobat 9 Pro will add, multiply, and a few other things but
you won't not subject. Strange.
In any case, I found a formula on the net to use the custom calculation script (I guess it's Java)
calculate function in the tab - nice and good, the formula works, BUT does no rounding. For example
instead of giving me the right amount of 112,87 it gives me 112.8766554433221; that is, it will forever.
So, how can I get my formula to round cents to two numbers?
Event.Value = this.getField('QPBGrand').value - this.getField('BravGrand').value;
See you soon,.
PCA.
The calculation is simple in JavaScript. Here is an example of what has been proposed:
// Custom calculate script (function () { // Get the field values, as numbers var v1 = +getField("QPBGrand").value; var v2 = +getfield("BravGrand").value; // Perform the caluclation var result = v1 - v2; // Set this field value, rounding the result to two decimal places event.value = util.printf("%.2f", result); })();
More information on util.printf are available here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1252.html
Tags: Acrobat
Similar Questions
-
Hello
Still looking for advice! What I'm hoping to do is, I want to be able to choose a plan from the drop menu and plan what I choose, it would put the amount in the cell to the right.
Please notify
Ron
Hi Ron,
I rework your table of choice and then use INDEX/MATCH.
Quinn
-
Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column; Determines if the entry price column is subtracted from the price of output column (buy) or subtracted from (Sell) entry exit. Thank you for your help
Hi B',.
Buying and selling in column B
Price of entry in column c.
Exit in column D price
Formula (and outcome) in column E
If the column will B always contained 'Buy' or 'Sell', it works. It is default to a calculation of 'sell' if sale or has been specified.
E2: = IF (B = "Buy", D - C, C - D)
If you want to delay the calculation until the amounts entered in C and D, use this version:
E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, C - D) ")
If you want to delay the calculation until all three ducks are on a line (B contains buy or sell, C and D contain both data), use this version:
E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, IF(B="Sell",C-D,) "" ")))
Third version used in this table.
Kind regards
Barry
-
Need help with an expiration date
I have as of today on my spreadsheet, need help to make a column of expiry date which will go to the Red 20 days before expiry. Not to find the formula, please help? Thank you.
Hi Emtsrus,
Conditional highlighting in column A. Select the cells and then click Conditional highlighting
Add rule > Dates > in the next
Another reminder, formula in B2 (and fill down)
= DATEDIFF (TODAY (), A2, "D")
Kind regards
Ian.
-
Hi team,
I need assistance with forms (2).
My first ask is the following:
I have two hierarchies with some of the same members each according to level (I inserted the).
I need the formula run all Member in 1 prefix with CCV hierarchy, then go to 2 of hierarchy and return his grandparents pillar value (Core.Abbrev).
I already called formula Custom.GrandParent Just need help to navigate.
My second ask is the following:
Concate (propvalue (Core.ABBREV) with the propvalue (Custom.AccountName) of the CHILD if the child begins by AAA, if this is not the case, down 1 level more and use this value (Custom.AccountName).
Don't know how to go down a level (or 2).
Thank you!
Hello
For your first case create a property derived with this formula:
If)
And)
Equals (String, SUBSTRING (ABBREV (), 1, 3), CCV),
Equals (String, PropValue (Core.HierName),Hierarchy1)
),
HierNodePropValue (Hierarchy2, Abbrev(),Custom.GrandParent),
)
Assuming that your grandparent property is a property derived local containing the formula-
ParentPropValue (Core.Parent)
Second case-
NodePropValue (ListRelatedNodesWith (Descendants, Equals (String, SubString (PropValue (Core.Abbrev), 1, 3), AAA), yesterday, 1), Custom.AccountName)
Let know if thid worked for you
THANKS & Cheers
Denzz
-
Need help with a script (o - o8) *, see the Virgin if there is no
Hi all what I need help with a script I can't find an example.
I'm trying to subtract 2 numbers and then multiply this product. (o o8) * one but I just want to do the calculations if all fields have the numbers IE field o, o8 of field and field one.
Thank you in advance. I was stuck on this days searching the Internet.
Assuming you want to affect the outcome of this calculation in another text field, use this code as a custom field calculation script:
var o = this.getField("o").valueAsString; var o8 = this.getField("o8").valueAsString; var a = this.getField("a").valueAsString; if (o!="" && o8!="" && a!="") event.value = (Number(o)-Number(o8))*Number(a); else event.value = "";
-
need help for a conditional query
guys this is just. as an extension of this post that Frank was helping me. IM reposting because my needs change slightly and im having a hell of a time trying to change the query.
Here are the previous post.
need help with query can find data back please help.
dataCREATE TABLE "FGL" ( "FGL_GRNT_CODE" VARCHAR2(60), "FGL_FUND_CODE" VARCHAR2(60), "FGL_ACCT_CODE" VARCHAR2(60), "FGL_ORGN_CODE" VARCHAR2(60), "FGL_PROG_CODE" VARCHAR2(60), "FGL_GRNT_YEAR" VARCHAR2(60), "FGL_PERIOD" VARCHAR2(60), "FGL_BUDGET" VARCHAR2(60) )
I need to find the year of greater subsidy for the granting by a period setting.Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100'); Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');
Once I found the great year, I need to check the value of the period 14 this grant for the previous year and add it to the amount of the budget for this grant. However if there is an entry in the biggest year for period 00 so I need to ignore the period 14 of the previous year and the current calculation period + (current period - more great year 00)
hope that makes sense, so in other words, with the new data above. If I asking me a second period of the grant year 11. I'd end up with $800
because the greatest year is 11 it contains one point 0 with $ 400, so my total should be
amount of period $2,600
period $0 400 - period $2 600 = $200
600 + 200 = $800
If I have question period 1 grant 360055 I'd end up just with 800 grnt year 10.
I tried to edit this query you have provided me with no luck. I tried for several embarrassed day but I'm saying I can just do what im trying to do.
can you please help me.
Here's the query provided by frank kulash who graciously put it together for me.
MiguelWITH got_greatest_year AS ( SELECT fgl.* -- or whatever columns are needed , MAX ( CASE WHEN fgl_period = :given_period THEN fgl_grnt_year END ) OVER () AS greatest_year FROM fgl ) SELECT SUM (fgl_budget) AS total_budget -- or SELECT * FROM got_greatest_year WHERE ( fgl_grnt_year = greatest_year AND fgl_period = :given_period ) OR ( fgl_grnt_year = greatest_year - 1 AND fgl_period = 14 ) ;
Hi, Miguel.
You are waying that when larger year who has: given_period also a period = '00' (or '0', or whatever it is you want to use), then you want to double the budget of the given_period (subtract the '00' budget and do not count '14' year pevious)? If so, add another condition to the CASE statement that decides what you've summarized:
WITH got_greatest_year AS ( SELECT TO_NUMBER (fgl_grnt_year) AS grnt_year , fgl_period , TO_NUMBER (fgl_budget) AS budget , MAX ( CASE WHEN fgl_period = :given_period THEN TO_NUMBER (fgl_grnt_year) END ) OVER () AS greatest_year FROM fgl ) , got_cnt_00 AS ( SELECT grnt_year , fgl_period , budget , greatest_year , COUNT ( CASE WHEN grnt_year = greatest_year AND fgl_period = '00' THEN 1 END ) OVER () AS cnt_00 FROM got_greatest_year ) SELECT SUM ( CASE WHEN grnt_year = greatest_year -- New AND fgl_period = :given_period -- New AND cnt_00 > 0 THEN budget * 2 -- New WHEN grnt_year = greatest_year AND fgl_period = :given_period THEN budget WHEN grnt_year = greatest_year AND fgl_period = '00' THEN -budget WHEN grnt_year = greatest_year - 1 AND fgl_period = '14' AND cnt_00 = 0 THEN budget END ) AS total_budget FROM got_cnt_00 ;
You will notice it is the same as the previous query, I posted, with the exception of 3 lines marked 'new '.
-
Need help with this problem please
Hi all
I have 2 tables and I am runnig the following query against it:
and get the following dataset:select t1.ID_NBR, t1.START_DATE,t1.END_DATE,t1.SAMPLE_ID,t2.END_INTV_TIME,t2.CIN_DATA_ID from sample t1,weekend t2 where t1.SAMPLE_ID=t2.SAMPLE_ID_1 and t1.WEEKEND_FLAG='Y' and t1.SITE_ID_NBR='000097117011'
What I wanted was to add 2 columns to all data above, the reason is the dataset above has 72 files, one file per hour for 3 days from Friday 01:00 and ending the Sunday i 2400, but all have in all of the above data is just the date of beginning and end, so I created the following query to add the columns :ID_NBR START_DATE END_DATE SAMPLE_ID END_INTV_TIME CIN_DATA_ID 97117011 91908 92108 143493 100 131834 97117011 91908 92108 143493 200 131835 97117011 91908 92108 143493 300 131836 97117011 91908 92108 143493 400 131837 97117011 91908 92108 143493 500 131838 97117011 91908 92108 143493 600 131839 97117011 91908 92108 143493 700 131840 97117011 91908 92108 143493 800 131841 97117011 91908 92108 143493 900 131842 97117011 91908 92108 143493 1000 131843 97117011 91908 92108 143493 1100 131844 97117011 91908 92108 143493 1200 131845 97117011 91908 92108 143493 1300 131846 97117011 91908 92108 143493 1400 131847 97117011 91908 92108 143493 1500 131848 97117011 91908 92108 143493 1600 131849 97117011 91908 92108 143493 1700 131850 97117011 91908 92108 143493 1800 131851 97117011 91908 92108 143493 1900 131852 97117011 91908 92108 143493 2000 131853 97117011 91908 92108 143493 2100 131854 97117011 91908 92108 143493 2200 131855 97117011 91908 92108 143493 2300 131856 97117011 91908 92108 143493 2400 131857 97117011 91908 92108 143493 100 131858 97117011 91908 92108 143493 200 131859 97117011 91908 92108 143493 300 131860 97117011 91908 92108 143493 400 131861 97117011 91908 92108 143493 500 131862 97117011 91908 92108 143493 600 131863 97117011 91908 92108 143493 700 131864 97117011 91908 92108 143493 800 131865 97117011 91908 92108 143493 900 131866 97117011 91908 92108 143493 1000 131867 97117011 91908 92108 143493 1100 131868 97117011 91908 92108 143493 1200 131869 97117011 91908 92108 143493 1300 131870 97117011 91908 92108 143493 1400 131871 97117011 91908 92108 143493 1500 131872 97117011 91908 92108 143493 1600 131873 97117011 91908 92108 143493 1700 131874 97117011 91908 92108 143493 1800 131875 97117011 91908 92108 143493 1900 131876 97117011 91908 92108 143493 2000 131877 97117011 91908 92108 143493 2100 131878 97117011 91908 92108 143493 2200 131879 97117011 91908 92108 143493 2300 131880 97117011 91908 92108 143493 2400 131881 97117011 91908 92108 143493 100 131882 97117011 91908 92108 143493 200 131883 97117011 91908 92108 143493 300 131884 97117011 91908 92108 143493 400 131885 97117011 91908 92108 143493 500 131886 97117011 91908 92108 143493 600 131887 97117011 91908 92108 143493 700 131888 97117011 91908 92108 143493 800 131889 97117011 91908 92108 143493 900 131890 97117011 91908 92108 143493 1000 131891 97117011 91908 92108 143493 1100 131892 97117011 91908 92108 143493 1200 131893 97117011 91908 92108 143493 1300 131894 97117011 91908 92108 143493 1400 131895 97117011 91908 92108 143493 1500 131896 97117011 91908 92108 143493 1600 131897 97117011 91908 92108 143493 1700 131898 97117011 91908 92108 143493 1800 131899 97117011 91908 92108 143493 1900 131900 97117011 91908 92108 143493 2000 131901 97117011 91908 92108 143493 2100 131902 97117011 91908 92108 143493 2200 131903 97117011 91908 92108 143493 2300 131904 97117011 91908 92108 143493 2400 131905
And the problem I have now is instead of 72 for 3 days I get only 71 and time 2400 is paased on the next day, I tried to use CEIL instead and ended up getting 48 reocrds instead, the following dataset is when I used the above querySELECT * FROM (SELECT t.*, TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24), 'Day' ) AS weekday, TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24), 'mmddyy' ) AS next_date FROM (SELECT t1.id_nbr, t1.start_date, TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'), 'fmDay' ) AS start_day, t1.end_date, TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'), 'fmDay' ) AS end_day, t2.sample_id_1, t2.cin_data_id, t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id) AS rn, COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1) AS cnt, t1.weekend_flag FROM sample t1, weekend t2 WHERE t1.sample_id = t2.sample_id_1 AND t1.weekend_flag = 'Y') t) WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday') AND nbr = '000097117011'
Need help please.ID_NBR START_DATE START_DAY NEXT_DATE WEEKDAY END_DATE END_DAY SAMPLE_ID CIN_DATA_ID END_INTV_TIME 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131848 1500 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131849 1600 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131850 1700 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131851 1800 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131852 1900 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131853 2000 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131854 2100 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131855 2200 97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131856 2300 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131857 2400 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131858 100 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131859 200 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131860 300 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131861 400 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131862 500 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131863 600 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131864 700 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131865 800 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131866 900 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131867 1000 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131868 1100 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131869 1200 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131870 1300 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131871 1400 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131872 1500 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131873 1600 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131874 1700 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131875 1800 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131876 1900 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131877 2000 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131878 2100 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131879 2200 97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131880 2300 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131881 2400 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131882 100 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131883 200 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131884 300 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131885 400 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131886 500 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131887 600 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131888 700 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131889 800 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131890 900 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131891 1000 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131892 1100 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131893 1200 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131894 1300 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131895 1400 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131896 1500 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131897 1600 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131898 1700 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131899 1800 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131900 1900 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131901 2000 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131902 2100 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131903 2200 97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131904 2300
Thank youHello
Hours in a range of 0 to 23 hours day after midnight. You count from 1, not 0, so the 24th hour (from Friday) is actually from 00:00 on Saturday, and the 72nd hour is 00:00 Monday, that you are not counting in the WHERE clause.
Maybe when you calculate tn, you might simply subtract 1:
SELECT * FROM (SELECT t.*, TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24), 'Day' ) AS weekday, TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24), 'mmddyy' ) AS next_date FROM (SELECT t1.id_nbr, t1.start_date, TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'), 'fmDay' ) AS start_day, t1.end_date, TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'), 'fmDay' ) AS end_day, t2.sample_id_1, t2.cin_data_id, t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id) - 1 -- Added AS rn, COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1) AS cnt, t1.weekend_flag FROM sample t1, weekend t2 WHERE t1.sample_id = t2.sample_id_1 AND t1.weekend_flag = 'Y') t) WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday') AND nbr = '000097117011'
To view the actual end time, add one hour before posting.
What happens if you are missing a row for some reason any? Just using ROW_NUMBER won't take the missing line into account. It would be preferable to derive the time of the end_intc_timecolumn. Of course, it would be even better to store the date and time ending in a DATE column all the way.
I hope that answers your question.
If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
Explain, using specific examples, how you get these results from these data.
You must not post a lot of data: 6 hours, ending at midnight Monday, should be enough to show the problem and its solution.Always tell what version of Oracle you are using.
-
Need help with a declaration of 'IfThenIfNot '.
Every year couple I need help with a script statement and these forums have been incredibly useful. Once more, I was hoping that someone out there had knowledge of something I am writing for a form, I need to automate:
In the jargon of Excel that I try to write to would state so @if (("Subtotal"+"InvestigativeFee"+"PlanReviewFee") > 1000, + 100, + (("Sous-total" + "Investigativ Manar" + "PlanReviewFee") *. 1))
What I have here is three form named subtotal, InvestigativeFee & PlanReviewFee fields. The formula in question says it's a 'technology assessment fee"of 10% on the total part of what above mentioned 3 fields but there is a maximum charge of $100 for this tax. The statement that I wrote above would have worked in Excel (not tested, but generally is the idea). I was hoping someone mastering JavaScript could help me with a statement that I needed to do this work.
Hope to hear from someone,
Warmly yours.
Steven L in Eugene OR
Try the following in the custom calculation of the fresh field of evaluation script:
Custom calculation script
(function () {}
Maximum package
var max_taf = 100;
Get the values of the field as numbers
var v1 = + getField("Subtotal").value;
var v2 = + getField("InvestigativeFee").value;
var v3 = + getField("PlanReviewFee").value;Calculation of tax
TAF var = (v1 + v2 + v3) / 10;
Set this field to royalty calculated value if less than maximum, otherwise the maximum value
Event.Value = (taf< 100)="" taf="" :="">
})();
-
Need help with Java Script to perform a calculation in the form of Adobe Acrobat Pro 9
I have a form (test) I created in Adobe Acrobat 9 Pro.
I need help to create a custom JavaScript, so I can get the desired response.
1) there are several questions in each group requiring a numeric response between 0-4
2) there is a total set up field to calculate the sum of the responses of all of the above questions
(3) the final "score" takes the answer in step 2 above and divide by the total possible response
Any help to what Java Script I need to fill it would be greatly appreciated!
I have attached a spreadsheet "" which shows more in detail as are the result of what I used in Excel to get the desired end formulas.
Thanks in advance.
Have you tried the "field is the average of:"?
-
I need help converting a Crystal Reports formula for a logical column field in the responses.
The current formula is:
(90 - (trunc (sysdate) - greatest (NVL (trunc (logondatetime), to_date (' 01/01/1980 ',' mm/dd/yyyy')), (createdate) trunc, trunc (modifydate))))
Thank you!in the physical layer of the RPD create physical table - select sql
type this formula in the sql windowname of the pass for example col1
Drag this pass to the business model, then the presentation layer
Now you can use it in your reports, as the pass is get calculated next to the RPD will be also faster
-
my iphone need help doesent work!
my iphone need help doesent work! 5 minutes ago my iphone 4S felt on the ground and now it doesent start but I can still hear the sound of loading until I can do?
PS: Sorry for my bad English, I'm from the Germany
Try restarting it by maintaining deep-set buttons home and power together. It may take up to 20 seconds. If she does not return to life, better make an appointment at the genius bar to your Apple store.
-
Recently had to withdraw Windows 10 votes against 7, on doing so, iTunes didn't work. I tried to remove iTunes, but get an error not found the path iTunes6464.msi. So I can't uninstall. I tried to download the latest version, but when it comes to uninstall the old version it fails because it cannot find this file. Need help to remove and reinstall so it can connect again my devices.
See this user of ASC. See the section on deleting and reinstalling iTunes. Troubleshooting problems with iTunes for Windows updates
-
NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he tried to put the itunes thing but it says enter password I put in what I rember, then said lokced for five minutes help me pls
Without knowing the password for your iPhone, there is no way to unlock it, bring even you to the Genius Bar. If you continue to enter the wrong password, you will be locked out of your iPhone, and your data will be unaccessable.
-
I need help to recover my iphone
I got my iphone 6 for more than two years know I default to set up factory reset me gives error tha my sim card is not supported, but I've been with you even with the phone sim card before I reset it please need help.the phone imei-* please help me.
< personal information under the direction of the host >
It sounds as if your iPhone may have been hacked for use with the carrier that you used, and now that you have updated, it is locked to the original carrier.
Maybe you are looking for
-
The battery: Cycle Count
I recently bought a new macbook pro 13 inch (my first macbook never) and decided to read a little about the life of the battery. To my surprise, I realize that my cycle was 7! (Note: I only bought the macbook for about 4 days and charged for 3 - 4 ti
-
IPad cannot sync photo after ios 9.3
After having updated my Ipad to air 2(64G) to version 9.3 and Itune on my PC version 12.3.3 I can't synchronize my PC (Win7) on my Ipad photo. Before update I can sync without any problems. I try many ways -Restart the PC/Ipad 2 -Uncheck the sync - r
-
4.0b9 crash on startup just after loading a page
Firefox crashes immediately after loading a Web page.This happens even in safe mode.It started to happen after I installed the plugin, gtalk.This is the error message: (process: 9837): CRITICISM of GLib *: g_slice_set_config: assertion 'sys_page_size
-
When I run weekly manual backup on Vista Home Basic, should back up anything new or just what are the files that have changed since the previous backup?
-
HP Deskjet 1050 Cartiadge application compatibility
Well,. I bought a HP 1050 while ine printer - Cairo - Egypt now I have problem finding 61 HP cartridges in order to to use, if I found them very high prices. I heard that the 122 HP is compatible and can work with ine all-in deskjet 1050 and this one