Formula Excel in the Script?

= + F2 * 1.1 * G2

Column (F2) is called Gross (header)

1.1 is the multiplier of the brute

G2 is where the customer fills the %

He is so gross multiplied by 1.1 times the %

ALL NEW here

in your result field properties, you must first set to read-only.  Then go to the tab to calculate.  In the first box, you can create simple calculation of formulas by selecting the fields you want to be multiplied toghether.  To do this, you will need to create a field multiplier of 1.1% to the static address if you want to be able to select in the list.

In the case that you do not want the multiply to show on your form, you can use the second box where you enter the calculation in simple notation.  Please note that the name of your fields have no '. ' to do.  The simple rating would be a little like excel: field * field * 1.1

The last resort is the third area where you are free to use the code you like to more complicated calculations.  I think that your OK with either of the other two options.

Tags: Acrobat

Similar Questions

  • "Truncate" formula Excel in JavaScript

    I'm translating a formula Excel in Java script and I'm way out of my depth... If someone could help?

    It's the formula in Excel: = TRUNC ((*(A2/100) B2) / 365,2)

    In my Adobe Pro Document B2 is a field called 'RAD' and A2 is a field called ' MPIR '.»


    I want to translate the formula truncated to JavaScript so that my calculation of field 'DAP_ONLY' in Adobe Pro rounds not upward (as seems to be the default setting)

    For the moment, I have simplified notation field according to the value (RAD *(MPIR/100)) / 365 for my domain "DAP_ONLY" and the number format, 2 decimal places. That works if I want the result to round but in I need in fact the result is truncated instead.


    I read material on the math.trunc in JavaScript function but do not know how to apply it because I don't speak JavaScript...  Is this something you can help with that?

    Thank you!

    Math.floor method is not equivalent to the TRUNC function. It's for positive values, but for negative values, you must use Math.ceil. Here's what might look like the script:

    Custom calculation script

    (function () {}

    Get the values of the field as numbers

    var RAD = + getField("RAD").value;

    var MPIR = + getField("MPIR").value;

    Perform the calculation

    var result = RAD * MPIR / 100 / 365;

    Truncate the result to two decimal places

    If (result > = 0) {}

    Event.Value = Math.floor(result * 100) / 100;

    } else {}

    Event.Value = Math.ceil(result * 100) / 100;

    }

    })();

  • The output of the script to Excel...

    Hello expert script...

    I have prepared a health check script to run it on my company vmware infrastructure... have consolidated this script from various sources and finally got to it... out comes in a .html format... I'm looking to see if the output can be in one. CSV format... I need all the different sections of the production in a new worksheet in excel... is it possible? can someone change this script please?

    I have attached the script and its output for reference... Thanks a bunch...

    Kind regards

    Mamadou lamine.

    (1) it uses the Get-Member cmdlet to export all properties to the worksheet.

    And unfortunately, Get-Member Returns the properties in alphabetical order.

    Not much that I can do I'm afraid.

    (2) the default value of the function is to add the new worksheet.

    That's why I added the AppendWorksheet switch.

    See examples towrds the end of the post on using this switch.

  • 3.5 numbers formula "name of the journal.

    He continues to be for me that I need to access the name of a worksheet in a formula.

    The standard solution in Excel is easy to find in several focus groups.

    = Right (Cell("filename",a1), Len (Cell("filename",a1)) - Find ("]", Cell ("filename", a1), 1))

    It is just as easy to understand how to put custom formulas in the cells VBA macros in order to access some of the data that had been pasted from the Clipboard by the same VBA macro. Everyone let me know where to find a documentation full of the interface of automator for the numbers, please?

    I always have a hard time to understand why these useful information are kept secret from me if want to use it as part of the Apple software?

    I don't even want for a complete solution, but just for a general idea that would allow me to continue to understand me.

    Thanks in advance!

    Could you give a general idea of the specific problem you want to solve?  A screenshot would be useful. Wayne explains how here.

    The approximate equivalent of VBA is AppleScript, which can be run in Automator, but is often performed outside the Automator too.  Seethis site for examples of automating AppleScript of numbers as well as the other iWorks applications.  There are other examples to macscripter.net, and of course in these forums.

    You can really have a script paste data and also, if necessary, insert a formula that access to these data, if you can not do UDF (user-defined functions) in number.  They are notoriously slow to no Excel anyway, so no big loss.

    We need more information about what you're trying to do.

    SG

  • Formula to find the value of the channel

    Hi all

    Support: Dat file containing the value of time and acceleration. Now, there are only two Channels.  Channel 1 is time. Channel 2's acceleration.

    Step 1: Create more than two channels. Channel 3 and channel 4

    Step 2: go to the analysis and acceleration channel research where its value is reached xxxxxxxx 1.

    Step 3: where it has reached 1. XXXXXXXX in the process of accelerating from this point in the channel 3 and 4, paste all the values STD. STD values in the attached excel file.

    How can I do this? What is the formula or the script to do this?

    Thanks in advance.

    Hi Rash.patel,

    You didn't yet tell me where to find the Excel file, so I assumed it would be in the same folder as the VBScript script.  I used the DIAdem Excel Import Wizard to create an *.stp file that can be passed as parameter in the ExcelImport() command to load these curves 2 envelopes by program.  I also added a file dialog box, then you can select the *. DAT to deal with file.

    I think that's

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • I need a conversion formula excel in javascript for a form to fill out.

    Here's the scenario,

    If a person moves for 1 or 2 days pay us a mealsrate of 75% per day. If 3 days or more we pay # days 2 days * 25%. I hope that makes sense.

    Days, F14 = Mealsrate = v7

    Formula in Excel

    = IF ($V$ 7 = 1, $F$14 *,($V$7*$F$14)-(($F$14*0.25) 0.75 * 2)) and it works.

    I am VERY NEW to javascript (like yesterday) in order not to laugh. I have really no idea what I'm doing, but I tried. Here's what I got. (by the way, it does not work)

    If (this.getField (("Days").) Value == '1')) {}

    var f = this.getField ("Mealsrate");

    F.value = Event.Value *. 75;

    } else event.value = (days * f.value)-(f.value *.25) * 2;

    I appreciate all the help I can get.

    Tracie

    I'll be back Monday, I hope I can find my post.

    OK, this Excel formula can reduce a little. The scipt to calculate custom next going to do with the formula:

    // Custom Calculate script
    (function () {
    
        // Get the inputs
        var days = getField("Days").value;
        var rate = getField("Mealsrate").value;
    
        // Set this field value
        if (days == 1) {
            event.value = 0.75 * rate;
        } else {
            event.value = (days - 0.5) * rate;
        }
    }
    

    It would be good idea to add additional code to deal with negative numbers in the two fields.

    Edit: fixed a fault

  • Export spreadsheet Numbers to Excel removes the functions

    I opened an Excel file with numbers 3.6.1.  It works fine; all my data and my imported correctly formulas and

    the spreadsheet works fine.  However, when I then export the document in Excel, the data appear in the result

    Excellent document, but the cells where the results of the calculations on these data are all empty.  It's as if the functions are lost in the

    export.

    When you open an Excel worksheet in Numbers v3.6.1, so is no longer an Excel worksheet. It is translated in the format of the internal document numbers and is subject to the behavior and functions programmed in numbers. When you export to Excel, another translation occurs, and if you have applied the features unique to a number, it will be deleted, or mutilated in the process of exporting to Excel.

    If you share Excel spreadsheets with Windows users, then there will be less of a problem in using Office 2016 for Mac, when you open, edit and save in the native architecture of Microsoft Excel document. No translation. No surprises.

  • Request to modify the script to collect the CPU Ready in percentage by VM instead of milliseconds

    Hi all

    I would ask for help here with the script that I found in this forum by Mr. LucD to collect % VM CPU ready to be changed according to the famous formula for calculating the percentage of CPU of VM ready:

    ((Valeur de sommation UC / (< intervalle de mise à jour par défaut graphique en secondes > * 1000)) * 100) / number of vCPU = CPU % ready



    From my understanding, the script must be changed because:

    1. Don't divide the percentage CPU Ready by the number of vCPU for each virtual computer
    2. The refresh interval is not set 'for a week. for simplicity, this script will be used to collect last week performance data ($start = (Get-Date). AddDays(-7))

    Note: The refresh rate can be found this KB: VMware KB: conversion between the summation of values CPU and CPU ready %

    the purpose of this script is to classify VM of the result is greater than 10% determined as having problems with CPU Ready. Article source: http://docs.media.bitpipe.com/io_10x/io_107330/item_605784/Basic%20VMware%20vSphere%20Performance%20Guide_201211.pdf)

    I have tested and run script below:

    $allvms = @()
    $vms = Get-VM  
    $start = (Get-Date).AddDays(-7)
    $metrics = "cpu.usage.average","mem.usage.average","cpu.ready.summation" 
    
    
    Get-Stat -Entity $vms -Start $start -Stat $metrics | 
    Group-Object -Property {$_.Entity.Name} | %{
      $cpu = $_.Group | where {$_.MetricId -eq "cpu.usage.average" -and $_.Instance -eq ""} | Measure-Object -Property value -Average -Maximum -Minimum
      $mem = $_.Group | where {$_.MetricId -eq "mem.usage.average"} | Measure-Object -Property value -Average -Maximum -Minimum
      $vmstat = "" | Select Time,VmName, MemMax, MemAvg, MemMin, CPUMax, CPUAvg, CPUMin, CPURDYMaxPercent
      $vmstat.VmName = $_.Group[0].Entity.Name
      $vmstat.Time = $_.Group | Sort-Object -Property Timestamp | Select -First 1 | Select -ExpandProperty Timestamp
      $vmstat.CPUMax = [Math]::Round($cpu.Maximum,2)
      $vmstat.CPUAvg = [Math]::Round($cpu.Average,2)
      $vmstat.CPUMin = [Math]::Round($cpu.Minimum,2)
      $vmstat.MemMax = [Math]::Round($mem.Maximum,2)
      $vmstat.MemAvg = [Math]::Round($mem.Average,2)
      $vmstat.MemMin = [Math]::Round($mem.Minimum,2)
      $vmstat.CPURDYMaxPercent = &{
      $interval = $_.Group[0].IntervalSecs * 10
        ($_.Group | where {$_.MetricId -eq "cpu.ready.summation" -and $_.Instance -eq ""} | 
      Sort-Object -Property Value -Descending |
        Select -First 1 | 
        Select -ExpandProperty Value) / $interval
      }
      $allvms += $vmstat
    }
    $allvms | Select Time,VMName, MemMax, MemAvg, MemMin, CPUMax, CPUAvg, CPUMin, CPURDYMaxPercent | 
    Export-Csv "C:\TEMP\AllVMs-7days.csv" -noTypeInformation -UseCulture 
    

    I hope that this will be the most useful script to understand where particular VM is experiencing problem with percentage CPU Ready.

    Thanks in advance,

    I have my version here, I use to use of the CPU.

    {Function Get-Ready

    <>

    . LOGBOOK

    This unique feature provide several reports and information. IE: convert ready value into a readable format (for real-time, day, week, month, year).

    . DESCRIPTION

    This unique feature provides multiple information of esxi host, as the list below.

    The CPU usage of the virtual, Mhz, the use of the processor CPU ready computer

    vCPU allocated to the VM (jailbroken in the casings and core)

    VMHost name

    Information physical VMhost CPU (jailbroken in the casings and core)

    To convert between value of CPU ready summons in vCenter performance tables and the value of loan % of CPU that you see in esxtop, you must use a formula.

    The form requires that you know the default update intervals for performance dashboards. These are the default update for each chart intervals:

    Realtime: 20 seconds

    Last day: 5 minutes (300 seconds)

    Last week: 30 minutes (1800 seconds)

    Over the past month: 2 hours (7200 seconds)

    Last year: 1 day (86400 seconds)

    To calculate the % of CPU ready of the summation value ready CPU, use this formula:

    (Value of summons UC / ( * 1000)) * 100 = ready % CPU

    Example: Stats in real-time for a VM on vCenter may have an average CPU ready summation value of 1000. Use the appropriate formula values to get the loan % of CPU.

    (1000 / (20 sec * 1000)) * 100 = 5% CPU ready

    For more information on vmware 2002181 KB

    . VM PARAMETER

    Name of the virtual machine

    . ENTRIES

    String.System.Management.Automation.PSObject.

    . OUTPUTS

    None.

    . EXAMPLE OF

    If you wrap this script inside the function you can use it as a command.

    To encapsulate this script

    PS > Get-VMHost esxihost.fqdn | Get ready

    Report back for perticular VMHost vm

    . NOTES

    To view examples, type: "get-help Set-VMHostSSH-examples.

    For more information, type: "get-help Set-VMHostSSH-detailed".

    For technical information, type: "get-help Set-VMHostSSH-full".

    http://kunaludapi.blogspot.com

    #>

    [CmdletBinding()]

    (param

    [Parameter (Mandatory = $true, ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $true)]

    ([String] $Name) #param

    BEGIN {#begin}

    {in process

    $Stattypes = "cpu.usage.average", "cpu.usagemhz.average", "cpu.ready.summation".

    foreach ($esxi in $(Get-VMHost $Name)) {}

    $vmlist = $esxi | Get - VM | Where-Object {$_.} PowerState - eq "Receptor"}

    $esxiCPUSockets = $esxi. ExtensionData.Summary.Hardware.NumCpuPkgs

    $esxiCPUcores = $esxi. ExtensionData.Summary.Hardware.NumCpuCores/$esxiCPUSockets

    $TotalesxiCPUs = $esxiCPUSockets * $esxiCPUcores

    {foreach ($vm to $vmlist)

    $VMCPUNumCpu = $vm. NumCpu

    $VMCPUCores = $vm. ExtensionData.config.hardware.NumCoresPerSocket

    $VMCPUSockets = $VMCPUNumCpu / $VMCPUCores

    $GroupedRealTimestats = get-Stat-entity $vm - $Stattypes - Instance-Realtime Stat ' "-ErrorAction SilentlyContinue | MetricId Group-Object

    $RealTimeCPUAverageStat = '{0:N2}' f $($GroupedRealTimestats |) Where {$_.} Name - eq "cpu.usage.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $RealTimeCPUUsageMhzStat = '{0:N2}' f $($GroupedRealTimestats |) Where {$_.} Name - eq "cpu.usagemhz.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $RealTimeReadystat = $GroupedRealTimestats | Where {$_.} Name - eq "cpu.ready.summation"} | Select-Object - ExpandProperty group | Measure-object-value average | Select-Object - ExpandProperty average

    $RealTimereadyvalue = [math]: tour ($(($RealTimeReadystat / (20 * 1000)) * 100), 2)

    $Groupeddaystats is entity-Stat-get $vm - Stat $Stattypes - beginning (get-date). AddDays(-1)-done (get-date) - IntervalMins 5 - Instance ""-ErrorAction SilentlyContinue | MetricId Group-Object

    $dayCPUAverageStat = '{0:N2}' f $($Groupeddaystats |) Where {$_.} Name - eq "cpu.usage.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $dayCPUUsageMhzStat = '{0:N2}' f $($Groupeddaystats |) Where {$_.} Name - eq "cpu.usagemhz.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $dayReadystat = $Groupeddaystats | Where {$_.} Name - eq "cpu.ready.summation"} | Select-Object - ExpandProperty group | Measure-object-value average | Select-Object - ExpandProperty average

    $dayreadyvalue = [math]: tour ($(($dayReadystat / (300 * 1000)) * 100), 2)

    $Groupedweekstats is entity-Stat-get $vm - Stat $Stattypes - beginning (get-date). AddDays(-7)-done (get-date) - IntervalMins 30 - Instance ""-ErrorAction SilentlyContinue | MetricId Group-Object

    $weekCPUAverageStat = '{0:N2}' f $($Groupedweekstats |) Where {$_.} Name - eq "cpu.usage.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $weekCPUUsageMhzStat = '{0:N2}' f $($Groupedweekstats |) Where {$_.} Name - eq "cpu.usagemhz.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $weekReadystat = $Groupedweekstats | Where {$_.} Name - eq "cpu.ready.summation"} | Select-Object - ExpandProperty group | Measure-object-value average | Select-Object - ExpandProperty average

    $weekreadyvalue = [math]: tour ($(($weekReadystat / (1800 * 1000)) * 100), 2)

    $Groupedmonthstats is entity-Stat-get $vm - Stat $Stattypes - beginning (get-date). AddDays(-30)-done (get-date) - IntervalMins 120 - Instance ""-ErrorAction SilentlyContinue | MetricId Group-Object

    $monthCPUAverageStat = '{0:N2}' f $($Groupedmonthstats |) Where {$_.} Name - eq "cpu.usage.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $monthCPUUsageMhzStat = '{0:N2}' f $($Groupedmonthstats |) Where {$_.} Name - eq "cpu.usagemhz.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $monthReadystat = $Groupedmonthstats | Where {$_.} Name - eq "cpu.ready.summation"} | Select-Object - ExpandProperty group | Measure-object-value average | Select-Object - ExpandProperty average

    $monthreadyvalue = [math]: tour ($(($monthReadystat / (7200 * 1000)) * 100), 2)

    $Groupedyearstats is entity-Stat-get $vm - Stat $Stattypes - beginning (get-date). AddDays(-365)-done (get-date) - IntervalMins 1440 - Instance ""-ErrorAction SilentlyContinue | MetricId Group-Object

    $yearCPUAverageStat = '{0:N2}' f $($Groupedyearstats |) Where {$_.} Name - eq "cpu.usage.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $yearCPUUsageMhzStat = '{0:N2}' f $($Groupedyearstats |) Where {$_.} Name - eq "cpu.usagemhz.average"} | Select-Object - ExpandProperty group | Measure-object-value average | Select - Object - ExpandProperty average)

    $yearReadystat = $Groupedyearstats | Where {$_.} Name - eq "cpu.ready.summation"} | Select-Object - ExpandProperty group | Measure-object-value average | Select-Object - ExpandProperty average

    $yearreadyvalue = [math]: tour ($(($yearReadystat / (86400 * 1000)) * 100), 2)

    $data = New-Object psobject

    $data | Add-Member - MemberType NoteProperty-VM name-value $vm.name

    $data | Add-Member - MemberType NoteProperty-name VMTotalCPUs-value $VMCPUNumCpu

    $data | Add-Member - MemberType NoteProperty-name VMTotalCPUSockets-value $VMCPUSockets

    $data | Add-Member - MemberType NoteProperty-name VMTotalCPUCores-value $VMCPUCores

    $data | Add-Member - MemberType NoteProperty-Name ' in time real average usage % "-value $RealTimeCPUAverageStat

    $data | Add-Member - MemberType NoteProperty-name "Mhz real-time use" - value $RealTimeCPUUsageMhzStat

    $data | Add-Member - MemberType NoteProperty-Name "loans in time real %"-value $RealTimereadyvalue

    $data | Add-Member - MemberType NoteProperty-name ' day average use % "-value $dayCPUAverageStat

    $data | Add-Member - MemberType NoteProperty-name of the "day use Mhz"-value $dayCPUUsageMhzStat

    $data | Add-Member - MemberType NoteProperty-Name "ready day %"-value $dayreadyvalue

    $data | Add-Member - MemberType NoteProperty-"week average use name% '-value $weekCPUAverageStat

    $data | Add-Member - MemberType NoteProperty-Name "week use Mhz"-value $weekCPUUsageMhzStat

    $data | Add-Member - MemberType NoteProperty-"week loan name% '-value $weekreadyvalue

    $data | Add-Member - MemberType NoteProperty-' months average use name% '-value $monthCPUAverageStat

    $data | Add-Member - MemberType NoteProperty-Name "month use Mhz"-value $monthCPUUsageMhzStat

    $data | Add-Member - MemberType NoteProperty-' months loan name% '-value $monthreadyvalue

    $data | Add-Member - MemberType NoteProperty-name ' year average use % "-value $yearCPUAverageStat

    $data | Add-Member - MemberType NoteProperty-name ' year use Mhz "-value $yearCPUUsageMhzStat

    $data | Add-Member - MemberType NoteProperty-Name "ready year % '-value $yearreadyvalue

    $data | Add-Member - MemberType NoteProperty - name VMHost-$esxi.name value

    $data | Add-Member - MemberType NoteProperty-name VMHostCPUSockets-value $esxiCPUSockets

    $data | Add-Member - MemberType NoteProperty-name VMHostCPUCores-value $esxiCPUCores

    $data | Add-Member - MemberType NoteProperty-name TotalVMhostCPUs-value $TotalesxiCPUs

    $data

    } #foreach ($vm in $vmlist)

    } #foreach ($esxi in $(Get-VMHost $Name))

    } #process

    } #Function-prepare you

    Get-VMHost | Get ready

  • Excel to the InDesign catalog workflow -?

    Salvation (first timer here)

    I've watched a few similar discussions here but not found an answer or lost with script/marking, I know nothing about! So here goes:

    I produce catalogues for a customer of 7 brands or more, up to 130 pages of each PDF distribution. The client currently makes a few price changes and announcements themselves in ID CS6. I have CS6 and CC. There are about 5 products per page, each in own table - they look like this:

    Screen Shot 2015-08-19 at 1.45.46 pm.png

    individually, each table is split/merged like this:

    Screen Shot 2015-08-19 at 2.01.30 pm.png

    The tables all sitting in a block of text that flows over multiple pages, if a product can be withdrawn and any mixture back within this range/history...

    Prices and other data comes from a spreadsheet, Excel and we seek to automate the process of updating the catalogs of data Excel...

    I looked in the fusion of data and used for more simple projects, but for the latter, it did not work because:

    • In Excel every element is a new line if it's a different color option, whereas in InDesign that is shown as a single product with multiple variants in the lower right

    • Data fusion creates a new ID file not related to Excel, so all changes must be made in XL and a new generated ID file and all the changes made to ID are lost in this way. I think that it will always be manual labor to do identity card, especially with those color swatches, not to mention the title and content pages, header lines etc etc.

    • There are often small changes for tables as shown above the image. Data merge seems to work well for simple jobs to repeat as business cards etc but not for the large flow of docs with variables.

    We look at a file XL 'bound', 'putting' all data manually in the cells of a table into code. To this end, the customer asked a 'reverse engineering' sheet XL IE one generated from a catalog ID. I looked at the script "merge tables" to try to put all together and export them to a file XL. These tables would not be merged - the top row would be divided into two cells and the text has disappeared. I looked at other threads re table ID to the XL...

    I wonder if there is a workflow that would save more work it creates!

    Thank you
    Toby

    You should probably look at one of the plugins commercial catalogue designed for this type of work.

  • How to use the script to display the number of columns contain no data

    I have a requirement. There is a source that is the excel, the excel file file, we need to load data into the staging table. There are 5 columns mandatory ones must not be null. We used "No. Data Check" for this. The logic is so mentioned previously mentioned 5 columns don't contain any record that the record will be moved to without data. So far, it is fine. Now the requirement is to show what column or columns contain no data. We used a script to do this like:

    RES =' '

    RES = input1 [0] + ": failed because values null in required columns;"

    INPUT1 [1] = res;

    Output 1 = res;

    But it shows message "down because of nulls in the required columns", which is a generic message. We must show what column or columns does not contain the value "failed because of null values in a column required columnA, columnB or columnC. Can someone help me in this regard. Any kind of help is appreciated.

    You can use the variable inputname1, which keeps an array of names of the entry for the script processor attribute. For example:

    var result = "";

    var first = true;

    for (i = 1; i< input1.length;="" i++)="">

    If (input1 [i] == null | input1 [i] == ' ') {}

    If {(first)

    Firstly = false;

    } else {}

    result += "";

    }

    lead inputname1 += [i];

    }

    }

    If (result.length > 0) {}

    result = "failed due to null values in the following mandatory columns:"+ result; "

    }

    Output 1 = result;

    Kind regards

    Nick

  • In the script templates

    Hello

    We are the migration from version 11.1.1.3 to 11.1.2.3. Part of it is migrating to calc Manager of HBR.

    Since we used macros, import the xml file generated HBR in BR and related to the models.

    I have 2 questions for you gurus:

    1 I think that the GUI is tedious, is it possible to script models as you can with the BR? Put FIX statements, formulas and everything will work if just pasted into the script object?

    2. According to the instructions found at this link: Calculation Manager , I've tried doing refers to a model with parameters via a design time prompt, but cannot get anywhere. Whenever I click on the check box 'it invites' I get a message saying that I have no steps defined in the template... also, Type of Application, the Application and user POV DSP are automatically generated... Would this have something to do with it?

    Thanks for helping a newbie.

    Kind regards

    Matija

    Models you cannot write in script mode. You can drag and dro pa script and type in your script component.

    Are you still having problems with your converted models of HBR?

    Sree Menon

  • formula to subtract the value of the fixed number field

    I'm new to javascript and have been unsuccessfully trying to complete what I know is a very simple task.  I have a form with 12 fields containing a sum in dollars.  "C1" field has a formula that counts the number of 12 fields contain a value.  This formula works correctly.  I want the "c2" field to display the number of fields without value.  I thought it would be simple subtract the value of "c1" of 12 to get the value of "c2", but I can't make it work.  The formula below is what I currently have in the custom calculation script window.  Any help with the drafting of a code that works would be greatly appreciated!

    var a = 12;

    var b = this.getField ("c1");

    var c = this.getField ("c2");

    c.Value = a.value - b.value;

    You must make sure that b.value is a number, not a string with a number.

    var a = 12;

    var b = this.getField("c1").value;

    this.getField("c2").value = a - b;

  • How to adapt the script to a Jongware for page numbers?

    I have an index where

    Anne, 3, 5

    Mary, 11, 23-24

    and converted with the script (for example by adding + 4) does not affect the numbers of hyphen:

    Anne, 7, 9

    Mary, 15, 27 -24

    required: Marie, 15, 27-28


    I assumed that the second hyphen with grep of marking + character style could mark a step, but the script asks to select ALL the text.

    May be an idea to change the script runs in a second time with these numbers given the style of character or color?


    DESCRIPTION:omg page numbers are all wrong!

    A Jongware Script 18 -Aug- 2010

    If (app.documents.length == 0)

    {

    Alert ("Oh give me a text to play with :'(");

    Exit (0);

    }

    If (app.selection.length! = 1).

    {

    alert ('we cannot go on like this. Select some text first. ») ;

    Exit (0);

    }

    myDialog = app.dialogs.add ({name:'omg the numbers are wrong!',canCancel: true});

    with (myDialog)

    {

    with (dialogColumns. add())

    {

    with (dialogRows. add())

    staticTexts.add ({staticLabel: 'firstly to change'});

    with (dialogRows. add())

    aBox = integerEditboxes.add ({editContents: "1"});

    with (dialogRows. add())

    staticTexts.add ({staticLabel: "last change"});

    with (dialogRows. add())

    bBox = integerEditboxes.add ({editContents: "99999"});

    with (dialogRows. add())

    staticTexts.add ({staticLabel: "Add or subtract this value"});

    with (dialogRows. add())

    cBox = integerEditboxes.add ({editContents: "2"});

    }

    }

    If (! myDialog. show())

    {

    myDialog.destroy ();

    Exit (0);

    }

    first = aBox. editValue;

    last = bBox. editValue;

    step = cBox. editValue;

    If (first < 1 | first > last | step == 0)

    {

    Alert ("now you're pulling my nose arentya");

    Exit (0);

    }

    approx.findGrepPreferences = null;

    approx.findGrepPreferences. findWhat = "\\b\\d+\\b";

    list = app.selection [0]. findGrep (true);

    changes = 0;

    for (i= 0; I< list.length; i++)

    {

    n = number (.silence list [i]);

    If (n > = first & & n < = last)

    changes ++, list .silence [i] = String (n+ no);

    }

    Alert ("number of changes:"+ changes ");

    My godness, is perfect.

    This formula of Grep is a piece of cake!

    Example of fake tie is nonsense, but the solution is real.

    Thank you very much.

    My Monday will begin happy benevolence.

  • Formula for dividing the three entries from field (D = A/B/C)

    I have a formula to get a value, and this is to divide the three entries from field. I don't know enough about javascript to correctly enter the code to make this happen. I have 20 rows in a form and I need to calculate column D I saw a thread on how to divide the two fields, but I need to go further with it. Can someone help me? I added that I was working (left) and I tried to develop (right).

    Internet Personal

    establish the variables for the names of fields for the dividend and the divisor.

    var sDividend = ' domain name my dividends. "

    var sDivisor = 'name of the My divisor field. "

    get the value of the divisor field

    var nDivisor = this.getField ("sDivisor") .value;

    get the value of the dividend field

    var nDividend = this.getField('sDividend').vlalue;

    do not modify the code under this line

    Clear the value of the result field

    Event.value = ";

    see if we have a divisor of zero

    If (nDivisor! = 0) {}

    We can then divide

    Event.Value = nDividend / nDivisor;

    } / / end of calculation of the division

    The above assumes that you are dividing the value of the 2 fields.

    Assignment of the variables

    var PW1 = "PlotWt1";

    var WBC1 = "WetbuConversion1";

    var AF1 = "Acre Factor1";

    Get the values

    var nPW1 = this.getField (PW1) .value;

    var nWBC1 = this.getField ("WBC1") .value;

    FNa1 var = this.getField (AF1) .value;

    Clear the value of the result field

    Event.Value ="";

    see if we have a divisor of zero

    If (nWBC1! = 0) {}

    //Actual division operation

    event.value = nPW1 / nWBC1 / FNa1;

    } / / end of the calculation of the division

    Change the line of code:

    If (nWBC1! = 0 & nAFN! = 0) {}

    If you want to use the same calculation for a number of lines, you can create a function that all calculated fields can use, but it depends on the names of the fields that you use. If you are simply changing the number at the end, the function might be:

    function calc1(num) {
    
        // Assigning the variables
        var PW = "PlotWt" + num;
        var WBC = "WetbuConversion" + num;
        var AF = "AcreFactor1" + num;
    
        // Getting the values
        var nPW = this.getField(PW).value;
        var nWBC = this.getField(WBC).value;
        var nAF = this.getField(AF).value;
    
        // clear the result field value
        event.value="";
    
        // see if we have a non-zero divisor
        if (nWBC !=0 && nAF != 0) {
            //Actual division operation
            event.value = nPW / nWBC / nAF;
        }
    
    }
    

    You can then call it in the custom calculation of the field as the script:

    Calc1 (1);  Rank 1

    For line #5, it would be:

    Calc1 (5);  Rank 5

    This could be simplified a bit if you have changed your domain naming scheme to make it easier to extract the line number. In this way, that you wouldn't have to pass as I showed.

    To create a script at the level of the document to place the function, select: Advanced > Document Processing > Document JavaScripts > Add

  • The script for any necessary Questions?

    I have a form with a table, and according to the answer selected in the left column, which is a menu drop-down fields in the testament becomes necessary.  Sounds confused when I read that, but what I mean is if someone selects YES in the drop down menu to rows1 and 2 and no. 3-6, then the rest of the fields in lines 1 and 2 become necessary and text must be added or drop-down menus should have a valid response that is selected is not the case in the rest of the table.

    The table looks like this:

    Order book?    Author title ISBN\Publisher Total requested readoptions?   Mandatory?

    (Combo O/N)  (Text)   (Text)  (2 text fields seven.)   (Text)     (Drop down list) (Drop down list)

    1.

    2.

    3.

    4.

    5.

    6.

    The answers become necessary in the sense that they must be filled in before the form can be sent and not in the sense that one can only be filled if the previous is answered.  It might be too much for people filling out the form to ensure that the previous field is entered before proceeding to the next.  The entire table is visible already, so I need the fields become visible when you select YES, even though I see the advantage in this too.  Can I have the scripts for the two formulas, as I can do the fields become visible when you select YES (this text cannot be entered if they choose No.) and had to complete before submitting?

    Oh, another thing I want to do is make 1 selection in a menu drop down not valid.  I have a list of *, YES and NO.  I want to do the * not recognized as a valid answer.  Thank you for your time and patience.  I know that this question probably belongs in the forum script, so I'll add it there too.

    If you ask about the function "setRequired", it is intended to be added to the document in function at the level of the document. To create one, select: Advanced > Document Processing > Document JavaScripts

    Add a new one, giving it the name of your choice, remove the skeleton of the service it provides by default and past the above function code. Then, you call the function as shown.

    If you ask what I was discussing the last paragraph, which would be a new script that checks the fields before sending is permitted to take place. I did not code for this. It would also be a script at the level of the document.

    In addition, you should consider what to do if the select user or not, the rest of the line is finished and then later has a change or heart and selects «*» It seems that it would be wise to clear the values in the other fields on the line, but the script currently does not. If you want to only it and get stuck, post again.

Maybe you are looking for