How to create a script for the calculation of the VO2max using text on a pdf form field values.
I'm trying to create a script that calculates the VO2max based on user input in several text fields.
My form is set up so that the user can enter values in the 4 fields of text:
1 weight = weight in kilograms
2. age = age in years
3 time = time to walk 1 mile in decimal
4. the heart rate (HR) = heart rate recovery immediately after you have finished walking 1 mile
The VO2max equation that I use is:
VO2max = 132.853 - (0.1692 * weight)-(0.3877 * Age) + (6,315) - (3.2649 * time)-(0.1565 * HR)
After the user enters values in 4 text fields, I want the text of VO2max field automatically calculate the above equation and display the result to the user so that the user doesn't have to get all those numbers into a calculator.
Any suggestions on how to write the script?
Assuming that your domain names are what you entered in the formula, you can use the simplified field notation:
132.853 - (0.1692 * weight)-(0.3877 * Age) + (6,315) - (3.2649 * time)-(0.1565 * HR)
If you want the value to display only after al the data fields are complete you need to use a JavaScript calculation:
function GetField (cName) {}
oField var = this.getField (cName);
if(oField == null) app.alert ("field of error for access to the" cName + "\nPlease verify the name of the field.", 1, 0 ");
return oField;
}
var weight = GetField ("Weight");
var Age is GetField ("Age");.
var time = GetField ("Time");
var h = GetField ("HR");
Event.Value = "";
If (Weight.value! = 0 & Age.value! = 0 & Time.value! = 0 & HR.value! = 0) {}
Event.Value = 132.853 - (0.1692 * Weight.value)-(0.3877 * Age.value) + (6,315) - (3.2649 * Time.value)-(0.1565 * HR.value);
}
Tags: Acrobat
Similar Questions
-
How to create a script for the name of the channel to take and insert text on profile in CS5
I am a silkscreen and I print my Photoshop starts. I regularly work with multi channel files or RGB files with additional color channels. I created actions to place check marks, resize images, etc. to be ready to print manually but I create for each display text labels, if they are absent from the original work.
The files I work with have named pipes as "basic white, red, green, blue 284" etc. which indicates the color of the ink. I want to be able to do is create a script that copies the text of the channel name and insert it into a separate or each/all channels to the top of the file, so that when I print every positive there is a label corresponding to the color of the ink.
I don't know if this is even possible, and I am limited in my knowledge when it comes stock and no experience with scripting and have had pretty good luck in the past for actions to do what I want without unnecessary steps.
On my target action registration, it creates a new channel with each individual reg mark then combined in a separate channel in which I just copy the contents and select all channels of ink and fill with black to make them appear, I am happy with the steps that must be that it is not too complicated and if it could do the same with labels I would be happy with that.
Thanks in advance!
Something like that?
// the color used for the text var black = new SolidColor(); black.rgb.hexValue = '000000'; // set this to space the labels var horizontalOffest = new UnitValue(20,'pt'); var doc = app.activeDocument; var currentLayer = doc.activeLayer; var textLayer = doc.artLayers.add(); textLayer.kind = LayerKind.TEXT; // font requires the postscript name of the font textLayer.font = "ArialMT"; textLayer.textItem.size = new UnitValue(9,'pt'); textLayer.textItem.justification = Justification.RIGHT; // set the position for the text. this sets to top right corner of the channel // here it is set so the text baseline ends 40pts from the right edge, 15pts down textLayer.textItem.position = [new UnitValue(doc.width.as('pt')-50,'pt'),new UnitValue(15,'pt')]; textLayer.textItem.contents = 'label';// temp label string for(var channelIndex = 0; channelIndex
-
How to create an ERD for the vista sp2 x 64?
How to create an ERD for the vista sp2 x 64?
How to create an ERD for the vista sp2 x 64?
If you do not have a Microsoft Vista DVD, make a repair disc to do a Startup Repair:
Download the ISO on the link provided and make a record of repair time it starts.
Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.
At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.
When you have changed that, insert the Bootable disk you did in the drive and reboot.
http://www.bleepingcomputer.com/tutorials/tutorial148.html
Link above shows what the process looks like and a manual, it load the repair options.
NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.
Read all the info on the website on how to create and use:
http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/
ISO Burner: http://www.snapfiles.com/get/active-isoburner.html
It's a very good Vista startup repair disk.
You can do a system restart tool, system, etc it restore.
It is NOT a disc of resettlement.
Make sure you get the 64 bit version.
See you soon. Mick Murphy - Microsoft partner
-
How to create a password for the user account for my child?
How to create a password for the user account for my child?
You can create the user with the parental control account. This will act as a protection for the child's account.
You can take a look at the following links on setting up parental controls:
http://Windows.Microsoft.com/en-us/Windows/set-up-family-safety#set-up-family-safety=Windows-7
http://Windows.Microsoft.com/en-us/Windows/set-parental-controls#1TC=Windows-7
http://www.howtogeek.com/HOWTO/10524/how-to-use-parental-controls-in-Windows-7/
-
How to create a password for the pdf file
The Adore Acrobat XI, how to create a password for the file? Aid says going to the Tools Menu and clicking on the Protection tab - but there is no option. In the security file - properties - screen, it shows the security details but doesn't allow for no change.
I think you can be mixing two different products: (free) Adobe Reader and Acrobat ($$).
-
How to create a list for the tabs 2nd level
Dear Experts
I created a view
I need to create a dynamic list based on this view of the * 2nd level tabs * (of my model of two-level tabs page), to be used in a region bordered on page 0. However, I found that the code in the list should be as follows:CREATE OR REPLACE FORCE VIEW "MY_VW_TABS" ("APPID", "PTTARGET", "PTTABNAME", "PTTABLABEL", "TABNAME", "TABLABEL", "TABPAGE") AS select pt.APPLICATION_ID APPID,pt.TAB_TARGET PTTARGET,pt.TAB_NAME PTTABNAME,pt.TAB_LABEL PTTABLABEL,t.TAB_NAME TABNAME,t.TAB_LABEL TABLABEL,t.TAB_PAGE TABPAGE from APEX_APPLICATION_PARENT_TABS pt,APEX_APPLICATION_TABS t where t.tab_set = pt.TAB_NAME and pt.APPLICATION_ID=t.APPLICATION_ID order by pt.TAB_NAME,t.TAB_NAME
Now, I have two questions:select level, labelValue label, [targetValue] target, [is_current] is_current_list_entry, [imageValue] image, [imageAttributeValue] image_attribute, [imageAltValue] image_alt_attribute, [attribute1] attribute1, [attribute2] attribute2, [attribute3] attribute3, [attribute4] attribute4, [attribute5] attribute5, [attribute6] attribute6, [attribute7] attribute7, [attribute8] attribute8, [attribute9] attribute9, [attribute10] attribute10 from ... where ... order by ...
(1) how to use the view above to be used in the code of dynamic list?
(2) is a good way to create a list for the tabs 2nd level?
Best regards
MahmoudMahmoud
Are you sure that you view is correct?
>
where t.tab_set = pt.TAB_NAME
Should be
where t.tab_set = pt.current_for_tabset
Nicolette
-
How to create a function for the function date two
Hai All
How can we create a function for the date function two and to return the number of hours between two dates
For example
1 January 2010 0815' - '01-jan-2010 1715' and I need to calculate the time between two dates
How can I create a procedure
Thanks I advance
Srikkanth.MWhat have you tried?
Here is an example (untested):
CREATE OR REPLACE FUNCTION RETURN_HOURS ( pDateStart IN DATE , pDateEnd IN DATE ) RETURN NUMBER DETERMINISTIC AS BEGIN RETURN (pDateEnd - pDateStart) * 24; END RETURN_HOURS;
-
Create a script of the class dynamic text field
Hi all
I came across a few subjects that relate to t my question but after reading, try different approaches and internet research, I'm still confused. How to create Visual elements, for example a text field, dynamically from Actionscript in a class file?
Basically, I created a class file that loads an external XML file and now I want to create fields of dynamic text for the items in the XML file. I did some debugging and I know that the XML is properly loaded. I can also get it to create dynamic text fields when I place the code inside the fla. The problem is when the code is in the class file. I read that you must pass the display for the class object, but I'm still not clear on how to do it.
Any help would be greatly appreciated! Thank you in advance!
My fla has the following code on the first frame:
Import classes.estimatesheet;
var sheet1:estimatesheet = new estimatesheet("xml/estimationSheetFields.xml");
Here's my class file:
{classes package
flash.xml import. *;
import flash.display. *;
import flash.events. *;
flash.net import. *;
import flash.utils. *;
import flash.text. *;public class estimatesheet extends Sprite {}
public var textFields:Array = new Array();
public void estimatesheet (file:String) {}
xmlLoader (file);
}
public void xmlLoader (file:String) {}
var loader: URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener (Event.COMPLETE, handleComplete);
Loader.Load (new URLRequest (file));
}
public void handleComplete(event:Event) {}
try {}
var allXml = new XML (event.target.data);
{for each var item: XML (in {allXml.elements ())}
createSheet (element);
}
} catch {(e:TypeError)}
trace ("cannot parse for XML");
trace (e.message);
}
}
public void createSheet(data:XML) {}
var textFormat:TextFormat = new TextFormat ("Verdana", 11);{for each var item: XML (in {data.elements ())}
var textField:TextField = new TextField();
textField.setTextFormat (textFormat);
textField.text = element.@label;
textField.x = 150 * i;
textField.y = 150 * I
stage.addChild (textField);
i ++ ;
}}
}Each feature display MovieClip, Sprite, TextField, etc. should be added to the display list/stack. The addChild in your class only adds TextFields to the estimatesheet class by using addChild (textField) and adds them to the scene of the film using stage.addChild (textField). Note that the latest works if estimatesheet is added to the movie because if estimatesheet is not added to the film the stage property is zero and you can't add items to something that is null, does not exist. AddChild (estimatesheet) prepares the ground for reference the main movie.
As for making your class of the document class, you need to rearrange some things in your class and add a way to load the XML file. Things aren't sure how flexible can be.
Sean
-
How to create a model for the State of the column plus four?
Hello
I want to create a report for a tabular presentation model must have more than 4 conditions of column model (more than 12 conditions I need) to get the coloring for line according to the conditions.
so please tel me how to make a model to meet my needs.
APEX VERSION: 4.2
Database: 11 GR 2.
See you soon
Tulasi.Take a look: http://apex.oracle.com/pls/apex/f?p=54687:41
-
How to create a chart for the exact values in PivotTable
Hi all
How can I create a graph exactly indicating swivel values. I created a PivotTable and suppress the display of the table. When I create the chart it does not show the graph for the pivot table values.to do this, you must modify pivot table properties, and then select chart pivot results tab in the top middle... hope this helps
-
How to create a 'category' for the brushes?
I've collected a ton of different types of paint brushes. To keep all in my active brush Panel seems to slow down Photoshop and my computer, and it is difficult to sort all the when you are looking for a particular brush.
Is there a way I can create a category for certain types of brushes, as the default categories that appear at the bottom of the context menu brush Panel (calligraphic, false finish brushes...)? An example would be a category for all my brushes of foliage (leaves, grass, Moss, trees, etc.).
Or is there a better way to keep similar brushes orgainized together and accessible in the PS brush Panel? Thank you
Hi rich,
Yes, you can get your brushes to show up in the menu of the Panel under all the built-in brushes. But it is a few steps, follow me.
Start by creating your predefined. Looks like you already know how to do this, but I'll repeat the steps for someone else.
Click the create predefined in the Panel forms.
The name of the brush.
Create as many other preset that you like.
When you have all your brushes. Choose the Preset Manager in the brushes Panel menu.
This opens the preset manager.
Shift + click or Cmd/Ctrl-click to select the brushes you want to have in their own game. Then click on the button Save the value. This opens the dialog box save the value.
This should open in the brushes folder that is located in the Presets for Photoshop. Don't go anywhere else. This is where you want to be.
Name your game (such as foliage), and then click Save.
You can now delete these brushes from the preset manager.
Restart Photoshop.
Your brushes custom if poster at the bottom of the Panel forms Preset.
At any time, you can choose the brushes. An alert will ask you if you want to replace (throw all your other brushes and insert those custom) or append (add brushes to those you already have). I usually add.
Let us know if that helps.
-
Need help to create a Script for the labelling of Finder of Indesign files
Try to find a way to have a script run in InDesign CS4, who tagged a RED text file once it's been imported into InDesign.
Import multiple text files in an InDesign template. Since there are several text files in the same folder, it must somehow 'delineate' that we have imported this file and move to the next import. I created a 'service' with a keyboard shortcut Automator to label the Red file in the finder, but it would be great if we could have this occurs automatically after we imported in InDesign.
If import us the text wrong by accident and it gets missed in fermentation, it costs us a lot of money with the printer.
Thanks for all the ideas.
Jim
At its heart, it's what you want to do.
tell application "Adobe InDesign CS4" set placeFile to choose file tell active document tell selection --Assumes you have preselected the picture or textbox to place file in place placeFile end tell end tell end tell tell application "Finder" set label index of placeFile to 2 end tell
You can expand on it pretty easily. The script for InDesign dictionary must be in the Library palette in the Applescript editor and the docs for Applescript are all online.
If you need further assistance, you may wish to ask someone to write a complete script for you to spec for real moneyz.
Best o ' luck!
Eric.
-
How to create a report for the various sets of payroll
Would like to know the select query which can help me to create a report for a monthly payroll payroll courses in a single pay period.
We sometimes 1 or 2 payroll run as long as single pay period.
I want to see all my reports based on a payroll including run how can I do this please?
Help, please!SELECT< columns="">
of pay_payroll_actions App.
pay_all_payrolls_f women's wear,
TPP per_time_periods
where papf.payroll_id = ppa.payroll_id
and ppa.effective_date between papf.effective_start_date and papf.effective_end_date
and ppa.action_type IN ('Q', 'R')
and ptp.payroll_id = papf.payroll_id
and papf.payroll_name =: pPayrollName
and ppa.date_earned BETWEEN ptp.start_date AND ptp.end_date
and: pDate BETWEEN ptp.start_date AND ptp.end_dateMake a Date and the name of payroll. The query should list all series pay down in the period in which falls the date.
-
How to create a shortcut for the Windows on the desktop community?
Original title: widdget windows community?
can I get a widget for the windows community? I don't know if widdget is the word just sorry, I'd like something for my office (sort of click and go) kind of thing.
Hello
Thanks for posting your query in Microsoft Community.
According to the description, it seems that you want to create a shortcut to the Windows community on the desktop. Correct me if I misunderstood the question.
(1) what do you mean by Windows community? Microsoft Community are you referring?
If so, I suggest you follow the steps to create a shortcut to the site and check out:
(a) open the Web sites.
(b) copy the link, right-click on the desktop and select new , and then click shortcut.
(c) Paste the link in the shortened window then click Next and type a name for the shortcut.
(d) click Finish.
I hope this helps. Try the above steps and get back to us for further assistance if you have questions about the Windows operating system. We will be happy to help you.
-
When you try to create an earlier date for the restoration of my pc (windows 8.1) for the first time (no previous restore point) the only option I get is to create point of restoration of the date and time of today. I need to restore to an earlier date. Does anyone have a solution?
You can click on the box "Show more restore points" to view the older, but they may not be as reliable (they may fail to apply or they may not actually work).
If you do not see the box to check, or the oldest, so it is not of the ancients still show. If this is the case, you will need to use the 'Refresh PC'.
Maybe you are looking for
-
I just upgraded to ver. 18.0 if there isn't a way to remove the Yahoo logo please direct me to re - install the latest previous version.Thank you.
-
Responded to upgrade Firefox 11 reviews. Downloaded and installed following the instructions. Message on RealPlayer supplement that need manual update. No other errors with the installation. Poster opening crash reporter. In safe mode, also rapporteu
-
Qosmio G50-10 and Blu - ray device
Hello Is that the Qosmio G50 10 t-Tower can be inserted in the napend funkcie game bluray.If so I would ask your model (100% compatible) for my laptop.
-
How to change network name on Time Capsule
Hello I want to change the name of the network on my Time Capsule, to match that of my home, all other routers network so I can use it as an access point more easily. How should I do it under OSX? Thank you.
-
I have to do a ground up to Windows 7, re - install media re-installing Win7 provided, due to the failure of the hard drive (so no available recovery partition). The machine is a XPS 9000 (circa 2010). The first phase (partitioning, file copy and