Calculate two textInput boxes for a total
I am new to flex and I am trying to figure out how to
calculate two textInput boxes. So basically I have one textinput -
another textinput that outputs the answer into a label. Can anyone
help me with this??
<mx:Label text="-" x="155" y="95"/>
<mx:TextInput id="num1" x="198" y="63"/>
<mx:TextInput id="num2" x="198" y="93"/>
<mx:Label x="309" y="132" text="Total" id="total"/>
<mx:Label x="309" y="132"
text="{Number(num1.text) + Number(num2.text)}"
id="total"/>
Should do it.
Tracy
Similar Messages
-
Using TextInput boxes to change to small Caps lettering with NO ....
Using two TextInput boxes (fName and lName) which are writting at the same time over to a (fullName) Text box, BUT change the data in here automaticly to 'small Caps' lettering with NO spaces.
I'm finding all sort of things but nothing close enough.Any help would be appriciated!
Thanks in advance aktellHow about this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
protected function name_changeHandler(event:Event):void {
var firstName:String = fName.text.toLowerCase();
var lastName:String = lName.text.toLowerCase();
fullName.text = firstName + lastName;
]]>
</mx:Script>
<mx:Label x="156" y="74" text="first"/>
<mx:TextInput x="199" y="72" id="fName" change="name_changeHandler(event)"/>
<mx:Label x="156" y="104" text="last"/>
<mx:TextInput x="199" y="102" id="lName" change="name_changeHandler(event)"/>
<mx:Text x="199" y="132" text="Text" id="fullName"/>
</mx:Application>
I think this does what you were asking for.
Chris -
Can you calculate multiple text boxes to achieve a total value? If so how is that done? I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.
Hi sashby51,
I've moved your discussion to the PDF Forms forum--the folks who visit this forum regularly should be able to point you in the right direction.
Best,
Sara -
I have a 10.2.8 os on a G4 desktop. A week ago I clicked on the AOL icon in the bottom bar. I have not used AOL for six years. Two aol boxes came up. I can not get the boxes to go away for long. They may go away for 15 minutes and they come back while I am working. How can I get these aol boxes to go away?
I will be upgading to Tiger; 10.4.Right click on the AOL icon and select move to trash.
-
Please Help!!!
How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column.
January 2014 January
2013 +/-
Region Entry Exit Total Entry Exit Total (Total of Jan2014-Total of Jan2013)
A 2 3
40 5 7 30 40-30= 10What is a table structure? Sorry cannot test it right now..
SELECT <columns>,(SELECT Total FROM tbl WHERE Y=2014)-(SELECT Total FROM tbl WHERE Y=2013)
FROM tbl
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
I am creating box for two coloums in sap script
hi,
i am creating box for two coloums
when i am creating box for this two coloums this box is displaying from the top.
when i am decreasing this hight it is decreasing from the buttom of the window
i want to decrease from the top of window
can u explan plz
this requirement
plzzsee this:
BOX Command
Syntax
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
Effect: draws a box of the specified size at the specified position.
Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
XPOS, YPOS
Upper left corner of the box, relative to the values of the POSITION command.
Default: Values specified in the POSITION command.
The following calculation is performed internally to determine the absolute output position of a box on the page:
X(abs) = XORIGIN + XPOS
Y(abs) = YORIGIN + YPOS
WIDTH
Width of the box. Default: WIDTH value of the SIZE command.
HEIGHT
Height of the box. Default: HEIGHT value of the SIZE command.
FRAME
Thickness of frame.
Default: 0 (no frame).
INTENSITY
Grayscale of box contents as %.
Default: 100 (full black)
Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
Units of measurement: The following units of measurement may be used:
TW (twip)
PT (point)
IN (inch)
MM (millimeter)
CM (centimeter)
LN (line)
CH (character).
The following conversion factors apply:
1 TW = 1/20 PT
1 PT = 1/72 IN
1 IN = 2.54 CM
1 CM = 10 MM
1 CH = height of a character relative to the CPI specification in the form header
1 LN = height of a line relative to the LPI specification in the form header
/: BOX FRAME 10 TW
Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
/: BOX INTENSITY 10
Fills the window background with shading having a gray scale of 10 %.
/: BOX HEIGHT 0 TW FRAME 10 TW
Draws a horizontal line across the complete top edge of the window.
/: BOX WIDTH 0 TW FRAME 10 TW
Draws a vertical line along the complete height of the left hand edge of the window.
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
POSITION Command
Syntax
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
XORIGIN, YORIGIN
Origin of the coordinate system.
WINDOW
Sets the values for the left and upper edges to match those of the current window (default setting).
PAGE
Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
/: POSITION WINDOW
Sets the origin for the coordinate system to the upper left corner of the window.
/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
/: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
Pre-Setting BOX Position Arguments
You can use the POSITION and SIZE commands to preset some arguments in the BOX command. POSITION presets the start point (upper left corner) of a box or line. SIZE specifies the width and height of a box.
You can use POSITION and SIZE to preset arguments, but you can also set the start point and size arguments of a box or line directly in the BOX command.
By default, if no positioning is specified, the upper left corner of a box or halftone or the top of a line is aligned with current SAPscript window. That is, the upper left corner of the box, halftone, or line starts at the upper left corner of the current window in the active form. By default, the height and width of a box are set to the height and width of the current window.
Use POSITION and SIZE to preset the arguments in a BOX command in the following situations:
The BOX command exceeds the 132-character (1 line in SAPscript) length limitation if you specify all arguments directly in the command. You may exceed this length limit if, for example, you use symbols in a command.
By pre-setting arguments with POSITION and SIZE, you can work around the limitation on the length of a command. You do not need to specify the preset arguments in the BOX command.
You want to use the enhanced capabilities of POSITION for adjusting the starting point of a box or line.
With BOX, you can specify an offset for the starting point only as a whole number (non-negative integer). This command would print a box starting 1 CM to the right and 1 CM down from the left upper corner of a window:
/: BOX XPOS '1' CM YPOS '1' CM
With POSITION; you can adjust the position of a line or box relative to a window much more precisely. In the POSITION command, you can specify positive and negative offsets and use non-integer numbers.
Example: The commands shown below position a box slightly to the left and slightly above a window. This leaves a margin between the edge of the box and the text in the window.
/: POSITION XORIGIN '-.2' CM YORIGIN '-.2' CM
/: SIZE WIDTH '.2' CM HEIGHT '.2' CM
/: BOX FRAME 10 TW
(Note that the box must be enlarged to accommodate the shift. If it is not enlarged, then it will not cover all of the window.)
You can also use POSITION to set the starting point to the upper left corner of the active page format. Example: POSITION PAGE moves the starting point from the active window to the active page format.
You want to use the relative sizing capabilities of SIZE to adjust the size of a box, line, or halftone.
With BOX, you can make only absolute size specifications. BOX HEIGHT, for example, overrides the default height setting to the height of the current window.
With SIZE, you can adjust the size of a box or a line with respect to its previously-set dimensions. The following commands would, for example, draw a frame 1 CM in from the margins of the paper:
/: POSITION PAGE
/: POSITION XORIGIN 1 CM YORIGIN 1 CM
/: SIZE PAGE
/: SIZE HEIGHT '-2' CM WIDTH '-2' CM
REWARD IF HELPFUL -
Two different preferences dialogue box for the "HP Designjet 800PS 42 by HP HPGL2"!
Two different preferences dialogue box for the “HP Designjet 800PS 42 by HP HPGL2”!
I’m wondering why there are two different preferences dialogue box for the “HP Designjet 800PS 42 by HP HPGL2”!
How to have the drivers and software that enable me to have the preferences dialogue box appearing in the second screenshot below?
My windows is 7 64 bits ultimate
Thank you
Best
JamalMany thanks garytech1 for the answer,
I did! The link is below
http://h30499.www3.hp.com/t5/Printers-Designjet-Large-Format/Two-different-preferences-dialogue-box-...
Best
Jamal -
"keep me signed in for two weeks" box
In the past, when I checked the "keep me signed in for two weeks" box, It was possible to forego the signing in every time I wanted to view my email account. Lately however, this is ignored and I must log in with my email name and password every time I go to the home page. This doesn't happen in Google Chrome or AOL. It's a minor thing, but still annoying. Anyone else have this problem?
We have had this problem forever, along with the ever changing MyVerizon Home Page. We can tell when our login is going to fail based upon what user name it greets on the top right-hand side of the page. I continue to post how many logins we can have per day and VZ employees continue to spew the company lie that this is for our protection. The VZ line is that the logouts are to prevent someone else from accessing your account and changing settings. Now we all know how often family members get in and purposely change settings. Perhaps VZ should employ some engineers and programmers who can fix the problem that VZ claims isn't a problem.
-
Popup screen with two check box and a text area for the user to enter value
hi,
i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
is there any function module which has that functionalityHello,
You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
<b>case ok_code.
when 'BUTTON'.
call screen 200 starting at 10 10.</b>
You can design the PBO of this pop-up screen as per your needs.
Regards,
Beejal
**Reward if this helps. -
Multiple Selection Boxes for Data
Hello all,
I need to create a dashboard that will allow me to drill down by two parameters. For example:
I need to see the country in this example USA and then a second critera would be the states.
So I would want to be able to select USA in one combo box potenially and see the totals and then select a specific state in a second combo box and see those totals.
I would then want to do south america and those countries. So South America and then Brazil, mexico, ect.
Any feedback or ideas.HI Jeffrey....
U can try with the filter option for drilling down to your actual content. For clear picture go through the following link.
http://visualbis.com/blogs/multi-select-combo-box-for-sap-businessobjects-dashboards-xcelsius/
Regrads,
P.Gowri -
why is it when i update my status on facebook from iphone it splits the updates into two differents boxes with some funky symbols at the beginning.. I have uninstall facebook and installed it over and it still does it. only the facebook IPHONE app where it says to update staus text to FBOOK i have already update my phone too.
if i go on the facebook site and update there through a brower on iphone it will work fine just cant us IPHONE mobile upload, . But its a pain of not using my IPHONE APP for facebook cause it does that.The warranty entitles you to complimentary phone support for the first 90 days of ownership.
-
Formula that calculate two columns/text
Good afternoon Everyone,
I am trying to write a formula (if it exists) that will allow me to look at two different columns of data and calculate 3 pieces of information:
1. Open items per consultant
2. Closed items per consultant
3. Percentage of open items based on total of open and closed items per consultant.
example: I want it to calculate Stacy has x amount of total open items from the list. Here's part of my spreadsheet. The columns (Open Actions, Closed Actions and % Open Actions) will be a seperate table.
Item #
Requested Date
Main SME
Target Date
Status
Open Actions
Closed Actions
% Open Actions
1
4/28/2014
Stacy
6/27/2014
Open
2
4/28/2014
Stacy
6/27/2014
Open
3
4/29/2014
Stacy
5/29/2014
Closed
4
4/29/2014
Stacy
5/29/2014
Closed
5
4/29/2014
Stacy
5/29/2014
Closed
6
4/29/2014
Stacy
10/1/2014
Deferred to Design
7
4/29/2014
Stacy
5/29/2014
Closed
8
4/29/2014
Stacy
5/29/2014
Closed
9
4/29/2014
Stacy
5/29/2014
Closed
10
4/29/2014
Stacy
5/29/2014
Closed
11
4/29/2014
Stacy
5/29/2014
Closed
12
4/29/2014
Stacy
6/6/2014
Closed
13
4/29/2014
Eric
7/11/2014
Open
14
4/29/2014
Mukund
7/11/2014
Open
15
4/29/2014
Rao
7/11/2014
Open
16
4/29/2014
Stacy
6/27/2014
Open
17
4/29/2014
Sriram
5/29/2014
Closed
18
4/29/2014
Sriram
5/29/2014
Closed
19
4/29/2014
Sumit
6/13/2014
Open
Thanks in advance, CicelyOpen items:
=COUNTIFS(C:C,"Stacy",E:E,"Open")
or use a cell reference with the name "Stacy" - use this if you have a list of names you want to use and want to just copy the formula down to match the list:
=COUNTIFS(C:C,G2,E:E,"Open")
Closed items
=COUNTIFS(C:C,"Stacy",E:E,"Closed")
Percentages:
=Cell1/(Cell1 + Cell2)
where Cell1 and 2 are the cells with the formulas. -
PO Release Strategy not triggerred for particular Total Net Order Value
Dear,
I am currently facing the issue where release strategy for purchase orders is not getting triggered for a particular value or lower.
For order value 1 INR or less, no release strategy is triggered for new created PO. And for value > 1 INR release strategy is getting triggered.
All otehr PO characterstics are the same, I mean to say the values for other characterstics such as plant material group are identical.
But the characterstics for release for Total net order value are <= 30000 INR. There are two system copies, where in one system the same release strategy is working as expected. But in other system the above mentioned issue occurs. There is no differnce which I can see in the release strategy setup.
Please suggest for solution.
Thank you.
Warm Regards.Dear All,
While looking further into the issue by going into debugging mode, we have found that in include LCLSCF2I, Internal table p_selection_criteria_tab , the value for ATFLV (Internal Floating point from) gets different values in the two systems. For example, in the affected system, for PO with 1INR tottal value, for one of the Total value chaaracterstics before INR characterstic, ATFLV value is 0,0000000000000000E+00, hence it gets out of loop and doesn't trigger release strategy.
But in another system for same PO values and release setup, ATFLV value is 1,0000000000000000E+00 for that characterstic.
May I know how the value for this field gets calculated.
Thank you.
Warm Regards. -
After upgrading to Lion on Wednesday last I now have a tatty grey screen on booting-up with the two boxes for user name and password.Gone is the old blue screen. Does anyone else have a grey opening screen?
Also this evening on booting the grey screen appeared but I could not immediately type any info into either box.After switching on/off several times I gave up and left the iMAC on with an inactive grey screen.About five minutes later the HP printer went through a re-calibration or cleaning process,of its own accord, and I noticed that the cursor on the screen had moved of its own accord.I then found that I could insert info into the two boxes and here I am with the iMAC open.Anone come across this issue?Hello again Gary,
After trying your PRAM suggestion, everything was OK however, when I restarted my iMac the next day, the same Grey Screen apppeared whith the request for user name and password?
This has repeated for the last 3 days!
I have tried the Utility to check the HD "Verify Disk Permissions" which shows a long list of "faults"? and I have done this twice now.
Also I have to do the PRAM start-up in order to get online and use other programs. I get frequent messages that say my "Applications" are for the wrong OS?
After using the PRAM keyboard start-up I get a screen with a "Bar" similar to the Windows XP start-up proocess and a grey blob moves along this "Bar" until the iMac starts.
On one site it mentioned that this iMac may need an "Firmware" update/correction; however I can not find any Firmware to download for this machine.
My iMac is a 21.5" Model A1311.
Do I need to do a complete Format of the HDD and re-install Leopard and then try Lion again?
Very frustrated,
Maureen -
How to calculate number of rows for perticular characterstic in SAP BI Bex
Hi experts,
Please let me know how to calculate ' number of rows ' for perticular characterstic in Bex query.
Thanks & Regards,
Babu..Hello,
You can try this
Create a CKF and assign the vale 1 to it. Open the query and select Character where you want to display ' number of rows ', go to properties windows, select 'display', in the results row drop down box, select 'always display'.
Thanks.
With regards,
Anand Kumar
Maybe you are looking for
-
Photoshop CS5 content-aware scale
Hi, I'm a photoshop CS5.1 64 bits user, I'm following the "Learn adobe photoshop CS5 by video" with the instructor Kelly McCathran. Well, I need to know how to create two layers with different sizes to apply content-aware scale...I can't! I import a
-
I am unable to re-enable bonjour services to view my shared library on my PC from my Mac
I am unable to view my shared music library from my Mac on my PC (running Windows 7). When I check in the sharing preferences, it says "The Bonjour services has been disable. Bonjour is required to share music with others. Please re-enable the ser
-
Problems Editing in iPhoto 6.04
When I try to edit photos in iPhoto, they will load just fine, but if I try to do anything to them (including zooming, cropping, applying an effect, etc...) the picture becomes invisible. I can actually make the changes to the picture, I just can't s
-
WDS showing up as 3 different networks
I'm just curious if I have my WDS set up correctly or not... I just noticed that my AirPort Widget (MacWireless.com) is showing 3 instances of my network. If I have my WDS set up correctly should that just be one instance? Also, one of my AP Expresse
-
SQL*Loader .ctl file
Does the column order in the .ctl (control) file have to match the column order in the table in order for SQL*Loader to succeed? Thx.