Calcul box in calcul box

Hello,
Anyone has a little example of that how to  call calcul box in a other calcul box ?
i juste need a very basic sample is just to know how to do?
Best regards
Tinnitus
CLAD / Labview 2011, Win Xp
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail
Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte

Hye,
this one, i would like to make a  call to another calcul box vi  into this one 
Best regards
Tinnitus
CLAD / Labview 2011, Win Xp
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail
Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Attachments:
box.vi ‏5 KB

Similar Messages

  • Displaying the result of a calculation in a dynamic text box

    Hi folks,
    I'm having a very minor issue here (operator error, I'm sure ). With the help of some folks here, I've created a series of calculations, and I've got that part down. Now, I just need it to show up in the movie.
    I've created the dynamic text box in Flash (CS3), but when I hit test, it won't show up.
    After all the calculations, I should have a figure that I call totalmoney. My dynamic text box is called total. The user doesn't need to hit anything for it to appear. It just appears as part of the movie.
    Here's my code:
    stop();
    var startDate:Date = new Date(2010,0,12);  // use your  startyear, startmonth, startdate in the new Date() parameters.
    var  currentDate:Date = new Date();  // assuming user's clock is correct and in your  timezone.  else use server date/time.
    var numberOfSeconds:Number =  (currentDate.getTime()-startDate.getTime())/1000;
    var interest:Number =  (numberOfSeconds*0.74356);
    var totalmoney:Number =  (interest+15,000,000);
    function displaytotal(evt:TextEvent):void {
         total.text = "totalmoney";
    Any thoughts?
    Thanks!
    Napo

    You didn't have to bury any of the calculations in the function--leaving it as you had it is better.  They could remain where they a=werew, and you'll probably find you want them outside it if you have other plans for using them.  If left inside, they only have scope inside.  In the programming world, it's good to think of functions as things that do one thing and one thing only (though it isn't often practiced that way)--it's called modular design.
    When you place an event as an argument for a function, it typically means that there is an event listener that initiates the call to the function.  If you work with buttons you'll see what I mean.  But if the plan is to create your own call to a function when you desire it as such, not have it driven by an event listener, then you don't need to pass any event to it, though you may pass some other type of variable to it if need be.
    For instance, what you have now will call the function without an argument because the function has the value built into its code....
    displaytotal();
    But you could also make the function a little more generic and set it up to recieve the value instead as an argument...
    function displaytotal(amt:Number):void {
         total.text = String(amt); // an earlier error of mine
    displaytotal(totalmoney);
    That would make your function a little more useful.  Now it could be used to display other Number variables as well.
    // my earlier error was that a textfield displays text, so you need to convert the Number value to s String.
    Hope I'm not confusing you.

  • My calculation "Total" box adds sum of all text fields whether they are visible or not, do I change

    I have check boxes that show and hide text fields. (Thanks to Gilads Java script). In options I have a default value for each text field.
    My "Total" Field field adds all fields even if they are not checked and visible. Need to have it only include them if they are checked and visible.

    You can't attach forms by email, or any other means, so it didn't come through.
    Since your fields have default values and aren't calculated based on the state of the corresponding check box, you will have to use a custom calculation script for the Total field that can check to see if any of the fields are hidden, and if so, don't include their values in the sum. For example:
    // Custom calculation script
    (function () {
        // Set up an array of field names to include in the total
        var aFields = ["text1", "text2", "text3", text4"];
        // Initialize variables
        var i, f, sum = 0;
        // Loop through the fields an calculate the sum
        for (i = 0; i < aFields.length; i += 1) {
            // Get the current field
            f = getField(aFields[i]);
            // Add the value of the current field to the sum if the field is visible
            if (f.display == display.visible) {
                sum += +f.value;
        // Set this field value to the sum
        event.value = sum;
    You can send me a PM if you want help offline.

  • Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    I think it has something to do with the way the value of the check box is exported, but I'm not sure.  With nothing being exported to Data5, Data6 displays the sum of Data1-4 rounded down to the nearest whole number and updates automatically as Data1-4 are updated.
    Right now, assuming Data1-4 are 0, where data 5 is the output of the second example and any box is checked,  "1" is displayed in data5 but nothing is added to data 6. Selecting any other check box or deselecting that check box will cause data6 to add 1 even if data5 displays "0".  By way of example:
    Selecting Check box 16 results in Data5 displays 1 and Data6 displays zero.
    Then, if any or all of Checkbox17-20 are selected, Data5 displays 1 and Data6 displays 1.
    Then, if any or all of Checkbox17-20 are deselected, Data5 Displays 1 and Data6 displays1.
    Then, if Checkbox16 is deselected, Data5 displays 0 and Data6 displays 1.

  • Creating calculation based on result of dropdown box

    Hi there. I am hoping someone will be kind enough to help me with some Javascript as it seems I am too blonde and middle aged to figure it out by myself.
    I have a dropdown box 'Member'. The value for Yes is 0. The value for No is 10.
    Then I have three check boxes. 'Day1' value is 35. 'Day2' value is 25. 'Dinner' value is 65.
    If Yes is selected, I want the sum of the check boxes if they are checked. (eg, total if all checked = 125)
    If No is selected, I want the value of each check box increased by 10. (eg, total if all checked = 155)
    I am using Acrobat X.
    Thanks in advance.

    Because of the fact that you want to add a constant to a number of values if a given condition is meet then you will need to use a custom calculation script.
    // get the value of the fields
    var cMember = Number(this.getField("Member").value);
    var nDay1 = this.getField("Day1").value;
    var nDay2 = this.getField("Day2").value;
    var nDinner = this.getField("Dinner").value;
    // define a varaiable for the sum
    var sum = 0;
    // day 1 plus adjustement
    if (nDay1 != "Off") sum += Number(nDay1) + cMember;
    // day 2 plus adjustement
    if ( Day2 != "Off") sum += Number(nDay2) + cMember;
    // dinner plus adjustement
    if (nDinner != "Off") sum += Number(nDinner) + cMember;
    event.value = sum;
    Excel is only easy if you accept Microsoft's view of calculations.

  • Combo drop box calculation?

    I'm dont work with acrobat much so please excuse my lack of knoweldge. I have been reading all week and have learned a lot about performing calculations. I have no issues with creating simple add and subtract etc. I have been using mostly text feilds but thought this might be easier using a dropdown combo box. What I'm trying to do is have a a calculation for whichever choice is picked in the drop down. But I can't get it right. I own a window cleaning company and charge more money for multiple level homes. So I have set my drop box to list the choices of 2,3,4,5. I charge $50 per addtional level. So if I picked 2 the amount should equal $50.00. The price rises by $50 per level so if I pick 3 the price should be $100, 4 =$150 etc. But I can't figure out how to make the choices a set price. Right now all I can do is multiply or subtract, devide etc. Which is not working because if I choose 2, then the price =$100. If I choose 3 it =$150, 4=$200 etc. I have tried adding a subtraction calculation at the end of the script of -50 but that does not work as it automaticlly places -$50 in the results field which I don't want because I don't want the customer to think they are receiving a discount with that part of the service. I don't care if I have to manually place the numbers in the field. So if I should be doing this as a text field that would be ok also. I just can't figure out how to get this one working.

    Last night I realised there's a small bug in the script I gave you. If you change the value of the combo from something else to zero, the price field will remain the same instead of changing back to zero (which is what I assume should happen). This will fix that:
    if (event.value!="0") {
        this.getField("price").value = (event.value-1)*50;
    } else this.getField("price").value = 0;

  • Calculation based on radio box Help PLEASE....

    I am trying to make a text box perform a calculation based on whether or not a radio button is checked or not.
    If the radio button named "Basting" in the "Quilting Type" group is checked then the text box "Basting Charge" should find the value of the "Total Square Inches" field and  multiply that total by 0.015 and show the new total in the text box as a dollar value, if the radio button "Basting" is not checked the value in the "Basting Charge" field should be "-0-".
    I can get the calculation I want from this:
    var v1 = getField("Total Square Inches").value; event.value=v1*0.015;
    but how to include the radio button function and the "-0-" ?

    Okay, I have now made a "check box" with the name of "Basting", not in a grouping.
    This is the set up:
    Text Field = Total Square Inches
    Check Box = Basting
                                       Export Value = Yes
    Text Field = Basting Charge
    Calculation for "Basting Charge" should be "0" unless the "Basting" check box is used, then it should get the value of the "Total Square Inches" and multiply that number by 0.015 and show this value in the "Basting Charge" box displaying as a dollar figure.
    So if the value in the "Total Square Inches" is 12,000
    and the "Basting" check box is used
    The "Basting Charge" should read "$180.00"
    if the check box is not used then it should read "-0-"

  • Combo box menu calculation of popup size ignores horizontal scrollbar

    I have a JComboBox that I've setMaximumRowCount(20). However, sometimes the combo box has as few as 2 or 3 items in it. In those cases as you probably know, Swing automatically calculates how tall the popup should be, in this case 2 rows tall.
    However, this calculation ignores the horizontal scrollbar, which basically occupies a "row" itself. This means that if I have combo box with 2 items, the displayed popup will contain the first item, a horizontal scrollbar, and a vertical scrollbar (for scrolling down to the item that the horizontal scrollbar hides) . Is this a bug in Java? If so, are there any workarounds to this?
    I've looked in the bug report section using the terms "combobox horizontal scrollbar popup" and couldn't find anything
    thanks

    the very simple strategy to do is to call removeAllItems() method for the 2nd combox box and then insert the contents. this is because the validate() method is not repeatedly called and so the contents are not updated immediately.

  • Numeric text box:Change colour after calculation

    How do you change the colour of a numeric text depending on the result of an arithmetic calculation ?
    I assume its something to do with property node....Can some add to my basic program to do the following:
    See attached picture of current basic program.I am using Ver 8.0.
    If the output of x+y >5 then i want the output text box to turn Red.
    If the output of x+y>5 then i want the output text box to turn Green.
    The default colour should be white.
    Regards,
                   labtech5555
    Attachments:
    ScreenHunter_labview x+y.jpg ‏73 KB

    labtech5555 wrote:
    If the output of x+y >5 then i want the output text box to turn Red.
    If the output of x+y>5 then i want the output text box to turn Green.
    The default colour should be white.
    OK, this makes no sense at all. If x+y > 5 it cannot be red and green at the same time.
    Here's some simple code that would make the background of the indicator red if the result is >5 and green otherwise.
    Maybe you can modify it for waht you really want. (I cannot tell.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    x+y.png ‏8 KB

  • Value of Multiple-Selection List box is not appearing "calculated value" field of it

    Hello,
    We have created one selection list box using control "Multiple Selection List Box", where user can select one or more values.
    We have created one view in InfoPath form, which have calculated value of fields(just showing purpose and printing purpose this view has ben created).
    In this when we try to show calculated value of field is of Multiple Selection List Box, it's showing as "Off".
    Could you please help us out.
    Thanking you in advance.
    Regards,
    Jayashri

    Hi,
    Thanks for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Combo Box Calculation

    I'm trying to make a custom calculation Javascript for a combo box and can't figure out the calculation.
    There are a few variables at play. I would like to incorporate a sliding scale for a student's high school gpa that looks like this:
    Students GPA:          SAT Score                   ACT Score
    2.00                          1010                            86
    2.025                        1000                            85
    Students GPA=Combo Box1
    Combo Box2=(If GPA=2.022, event.value=1010/86)
    Combo Box2=(If GPA=2.028, event value=1000/85)
    and so on (the scale continues on up to GPA=3.525
    How would I calculate that?
    Thanks for your help

    Acrobat Scripting Forum http://forums.adobe.com/community/acrobat/acrobat_scripting

  • Combo Box Calculations

    Is there any way to use the drop down box or "combo box" with numbers in a calculation for another field.
    ex.  "Combo box1"= 500 , 1000, 2000 and "Text1" calculation should be "Combo box1 - 25"
    It doesn't seem to recognize the number in "Combo Box1" when I try to do this. Any help would be greatly appreciated!
    Thanks

    What calculation option are you using?
    What code are you using?
    What do you mean by "does not recognize"?
    If you are using "Simplified field notation" you should not have spaces in your field names, unless you use the special escape character to make the space within the field name to be treated as part of the field name.
    Have you accounted for the case of no selection made?
    Have you looked at what the type of the value is from the combo box?
    Do you understand the 2 different ways that the "+" operator works with JavaScript?
    Can you provide any JavaScript console messages?
    Can you link to a sample form?

  • Make check box activate a calculation

    Hello I have a question about forms and calculations.  I have the following problem.  I have a grand total which is setup to sum my fees column.  It works fine.  My fees column is multi line.  I had it setup to calculate hours multiplied by hours worked and put it in my fees column.  I only want the calculation to be dependent on whether or not my check boxes are checked.  If they are not checked then I do not want the calculation to happen.  I can't get this to work for me.  Is it possible?  Thanks for any help fellas!

    If that is your fill script, you first need to obtain the values of the field objects.
    // obtain the value for the field objects:
    var C1= this.getField('C1').value;
    var HR= this.getField('HR').value;
    var HR2 = this.getField('HR2').value;
    Once you have established the values you can test and use them. The
    'if (statement) {
    // block of code
    } else {
    // block of code
    does not return a value. The '(statement)? {true answer code} : {false answer};' variation is used to return a value. So your final code can be:
    // obtain the value for the field objects:
    var C1= this.getField('C1').value;
    var HR= this.getField('HR').value;
    var HR2 = this.getField('HR2').value;
    // test the value of the check box
    if (C1 == 'Yes')
    event.value = HR * HR2;
    else
    event.value = 0;
    or
    // obtain the value for the field objects:
    var C1= this.getField('C1').value;
    var HR= this.getField('HR').value;
    var HR2 = this.getField('HR2').value;
    // set the value based on the value of the check box
    event.value = C1 == 'Yes'? HR * HR2 : 0;
    But if you set the export value to '1', then your script can be:
    var C1= this.getField('C1').value;
    var HR= this.getField('HR').value;
    var HR2 = this.getField('HR2').value;
    // compute value from HR, HR2, and logical value of C1 not being Not a Number
    event.value = HR * HR2 * !(isNaN(C1));

  • Expression Box Calculation Error

    I have displayed the output of a query in a table. One of the columns in
    the table shows 'Creation Date'. So I add an 'expression box' to the
    table and enter the following expression in the Formatting Custom tab...
    NSTR(DSUB(@Creation_Date,NOW(),'D'),'M')
    The objective is to display the number of days lapsed since the record
    was created on each row of the table. The system keeps returning -14018
    or some other garbage on each row.
    Please help.

    The latest screenshot on this issue is attached. After adding DVAL and using DSTR to convert to the desired date format. The results are nonsensical and useless. System somehow is calculating negative values for dates beyond the current calender month.
    In screenshot, STR1 is the Creation Date after some formatting and STR2 is the current date. ff is the column showing the difference in days between the two dates using the following command
    DSUB(DVAL(@STR2),DVAL(@STR1),'D')
    http://www.geocities.com/fishal123/VC_error2.JPG
    Regards,
    Adeel Hashmi

  • When I try to backup my files from photoshop elements 12 the "calculating total media size" box will only get as far as 46% and then freeze, how can I make it go to 100%

    When I try to backup my files from photoshop elements 12 the "calculating total media size" box will only get as far as 46% and then freeze, how can I make it go to 100%

    hi barbara
    thank you for your response, i appreciate it.  there's definitely nothing wrong with the mouse or trackpad, both work fine in every other application....i can also easily change size dimensions in other programs on my computer so it doesn't seem to be that either.  it seems like there is something weird going on in the way that pse and my mac are interacting with each other, just wish i knew what it was.    thank you again, wish me luck!

  • Business (Network) day Calculation in BOXI

    Post Author: dusty
    CA Forum: WebIntelligence Reporting
    Hi All,
    I was wondering if anyone has a business day calculation for BOXI.  I am fairly new to BOXI and any assistance will be greatly appreciated.
    Regards,
    Dusty

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    Dusty,
    Your question was posed a while back in another forum, please follow this link:
    http://technicalsupport.businessobjects.com/cs/forums/post/12622.aspx

Maybe you are looking for

  • I just updated Firefox Went to plugin check Only get circle going round & round for 30min+ Help!

    Been trying to update/install Flash for months w/ no luck after reinstalling and then even reinstalling an older version that works for my friend. My old version worked fine until I updated Firefox. Bee trying everything on support sites and calling

  • Editing etc\hosts file on windows xp for apps. problem post installation.

    Hi all, I was able to install 11.5.10.2 apps on my win xp prof machine. During that process I had to edit the etc/hosts file in windows directory as a work around for that domain name field during installation. Also added the primary DNS suffix as 's

  • Transporting content BI 7.0 to BI 7.01 Ehp1

    Dear All our exsisting system runs on BI 7.0 .. we are planing to do afreash insotalation of BI 7.01 EHP1 and we wnat to  know the technical fesibility of transporting exsiting Zdevelopments ( Cubes), Standard SAP Cubes , VC models ,Dashboards in BI

  • 数据库补丁问题咨询

    Question: 您好,我有一个关于Oracle补丁的问题想咨询您一下 我查看Oracle数据库时发现已经打了3个补丁 [oracle]$ opatch lsinv Invoking OPatch 10.2.0.4.9 Oracle Interim Patch Installer version 10.2.0.4.9 Copyright (c) 2009, Oracle Corporation. All rights reserved. Oracle Home : /oracle/app/pr

  • How to turn off cell phone/data on iPhone 4 but use WiFi?

    I am travelling to Turks and Caicos and they do have CDMA coverage - but if I leave my cell phone on I will get charged for any incoming text messages or phone calls.  Yet I want to be able to use my iPhone 4 for WiFi, which is free in the hotel  Is