How to apply a similar formula to many fields instead of step by step?

for field “c” the «rude» script is:
(function() {
   // Get the field values, as numbers
   var v1 = +getField(“a”).value;
   var v2 = +getField(“c”).value;  
   // Perform the calculation
   var result = v1 * 100 \ v2
   // Set the value of this field to the result
   event.value = result;
But it this form it involves 20 operations...
It is possible to make a more logical and fast solution?

Dear try67:
Firstly, thanks again.
For some designers with a minimum of knowledge of scripting this seems a very complicated situation.
We need to help the customer but the investment of time (in this case) sounds excesive.
For many times you wrote detailed scripts and is a shame always asking the same.
Perhaps if now you may provide a bibliographical/internet reference for this situation with examples, perhaps we can solve.
It is like a matrix (?) and perhaps it has a classical formulae. 
Thank you for all and the point on the errata.

Similar Messages

  • How to get my Name in the From Field instead of email address?

    For an Exchange Activesync account, how do you get your friendly "Name" to show in the From: field rather than email address ([email protected])?
    I seem to be able to do this fro IMAP/POP accounts but not Exchange Activesync.
    All the discussions I've found about gmail and Activesync seem to be centered on getting your messages to show a different return email address than your exchange account. I'm not looking for this, just to show the Name.
    Thanks

    If you add a contact ("Contacts app>> "+">> enter info) with that email address, it will appear in mail with whatever name you set in the email address' contact.

  • Spreadsheet question: How to apply formula to entire row?

    I am updating cells which already contain formulas. Can I select the entire row, and apply an additional formula (i.e.: 1.5*) or do I have to do it individually for each cell (there are hundreds)? I need the original formulas to stay in place, and they vary.

    Hi Pamela,
    Welcome to Apple Discussions and the AppleWorks forum.
    (The following was begun before Niel's post, and completed, with a few breaks, some time after it. It addresses a shortcoming with the solution suggested above, so I haven't altered it beyond adding this paragraph.)
    I'm not certain as to exactly what you're requesting here. Do you mean you currently have the same formula in these cells (eg. =(A1-A2) ) and you want to change all of those formulas to (same eg. =1.5*(A1-A2) ). That's cetainly possible if the formulas are in contiguous cells (or in separater groups of contiguoous cells). For the example, select the first cell containing the formula and all the others contiguous to it. Make the change in the entry box, then press command-R to fill the changed formula to selected cells in the same row and to the right, then command-D to fill the formula to all selected cells below the row containing the edited cell.
    OTOH, if you want to make the change to separate (ie. non-contiguous) cells, or to cells which do not contain what's essentially the same formula (with only the cell references changed to reference a cell located in the same relative position), I don't see any way to do it directly within the spreadsheet.
    If the existing formulas are such that you can write a description of where to insert the change, it may be possible to make such a global change through an AppleScript, or through transferring the spreadsheet content to a word processing document, using Find/Change to make the revisions there, then transferr the result back to the spreadsheet (or more cautiously, to a new spreadsheet).
    An AppleScript is someone else's territory. Here's how it could be done using the word processor.
    For the example, I'll assume you want to change ALL formulas in the spreadsheet by adding the instruction to multiply the (result of the) current calculation by 1.5.
    • Open the spreadsheet.
    • Go Options > Display...
    • Check the box "Formulas", Click OK.
    • Select ALL of the cells containing data or a formula.
    • Copy.
    • Open a new word processing document.
    • Paste.
    • Press command-F to open the Find/Change dialogue.
    • Enter "=" in the Find box, press tab, enter "=1.5*" in the Change box (no quotes in either case).
    • Click Change All. OK the two alerts that follow. Close the Find/Change dialogue.
    • Press command-A to Select All. Copy.
    • Open a new spreadsheet document.
    • Paste.
    • Done.
    Limitation: This will work only if the amended formula will give the expected result. Consider the example above, =(A1-A2) with 2 in A1 and 1 in A2.
    As written, the original formula ( =(A1-A2) ) returns a result of "1", and the amended formula ( =1.5*(A1-A2) ) returns the expected result 1.5.
    But it's unlikely the original will have included the parentheses,as they're not necessary to a correct result.
    If the original is =A1-A2, the result is still 1, but the amended formula ( =1.5*A2-A1 ) will return the result "2", not 1.5.
    Revising the beginning of the altered formula to add an opening parenthesis is easy. The difficulty here is telling Find/Change (or AppleScript) how to add the matching closing parenthesis to fomulas but not to the contents of cells containing labels, other text, or nothing at all..
    *An alternate approach:* Rather than revising the existing spreadsheet's formulas, this method transfers the labels and results to a new section of the spreadsheet, multiplies the original results by 1.5, and displays the new result.
    For discussion purposes, I'll assume the current spreadsheet contains 25 columns (A..Y) and 100 rows (1..100) of data and labels.
    • Go Format > Document...
    • Change the default 40 cells wide to 52 (or enough to accomodate twice as many columns as you have containing data now).
    • Click OK
    • Select a cell to the right of the cells containing data in the current spreadsheet. (For the example, choose cell AA1)
    • Enter the following formula:
            =IF(ISTEXT(A1),A1,IF(ISBLANK(A1),"",A1*1.5))
    • Select the block of cells extending right and down from AA1 that matches the size of the original block (for the example, AA1..AY100).
    • Fill the formula Right (command-R) and Down (command-D).
    The formula will copy the text from cells containing text, keep cells blank ("") where the originals were blank, and enter the results, multiplied by 1.5, for cells where the originals contain a formula with a numerical result or a number.
    Limitation: The formula does not distinguish between an entered number and one generated by a formula contained in the referenced cell. All numeric values will be multiplied.
    Regards,
    Barry

  • I can't find how to apply sound enhancements (EQ) for the podcasts now with iOS 6.0 update

    Dears at Apple:
    I can't find how to apply sound enhancements (EQ) for the podcasts now with iOS 6.0 update on any of my devices(iPhone 4s, iPhone Touch (4th Gen), iPad (3rd Gen). Most of the "Podcasts" I listen to are music content based and wanted to apply sound enhancements(EQ) like before when integrated with ipod function. Can you consider to "fix" this issue?
    Many Thanks!

    OK Emanuel I found a solution! I dowloaded and installed "Denon Audio" app from the iTunes store & it works great! It has an EQ you can set curves on manually or use the (few) built in pre-sets. It is a player like the Music app that comes with the iPhone, etc. but restores the EQ functionality so we can adjust the audio of PODCASTS:-) Until Apple fixes this what I consider a bug I will be using the Denon app as my default music player!

  • How to apply Time Remap to multiple clips simultaneously

    Quite often after trimming many different clips for a wedding video I will then want the majority of them slowed down to a 50% speed. I know how to apply the Time Remap Speed % change in the Motion Tab, but have yet to figure out how to make the change to multiple clips simultaneously.
    Thanks for your help!

    You can apply a speed change from one clip to multiple clips by copying the first one, then pasting attributes (option + V, then select speed from the list) onto as many clips as you have selected.
    Just be aware that this will ripple your timeline by extending all of your clips. FCP keeps the original out point of the source clip, not the out point of each cut on the T/L.
    Tim

  • How to Apply adjustment layers to multiple layers that have different blending modes ...

    How to Apply adjustment layers to multiple layers that have different blending modes  and keep the colours the same as the adjusment done?
    I work in Animation painting Backgrounds.  My files are sometimes upwards to 200+ layers.
    I will use adjustment layers to quickly balance colours and constrast on top of those many many layers.
    The only way that I know of how to apply adjustment layers it to every single layer  ( by applying I mean I need to get rid of the adjustment layers because we cant use them in production but i need the new colours be applied to all layers underneath ) in a psd is to manually do it By duplicating the adjusment layer 200+ times and  then merging each layer to one of those adjustment layers so that that layer can take the adjustment layers effect permanently.
    The issue is that Within Those 200 layers I have some layers set to Multiply or OVERLAY.    IT obviously wont apply the adjustment layer properly to those layers because those layer blend mode affect the layers under them. The colour wont be the same anymore in the spots that had the multiply blended mode.
    HEres an example of a simple File.  to show what i mean.
    https://dl.dropboxusercontent.com/u/3408266/ball%20layers.jpg
    https://dl.dropboxusercontent.com/u/3408266/ball.psd
    I have 2 adjustment layers up top.  I need to get rid of them by applying them to each layer! I cannot merge any of the layers. We need all those layers for production.
    I can apply the adjustment layers manually and this works GREAT for all Layers set to normal.  THey take on the colour change just FINE.
    However, The issue is that layer 6 and layer 4 are both set to mutiply and this screws up the colour once i apply the adjustment layers to each layer manually...
    How can i apply my adjustment layers to a file like this with some layers being set to multiply while keeping the layers exactly the same configuration  and The new colour taking efffect exactly how i looks before i apply the adjustment layers?
    Now the simple solution is to merge the multiply layers to the layer that it affects HOWEVER I NEED those multiply layers to be seperate! 
    I'm assuming what I want to do is impossible? Hope this isnt confusing.  As far as i know its impossible to do what I want it to do.  but just wanted to ask and see.
    I would REALLY REALLY love to talk to a adobe programmer/ technician/pro working at adobe about this.  Theres just no way to get in touch with anyone... =(
    any thoughts ?

    Sure... if you want to put it that way. Either way its not the desirable outcome. 
    its just frustrating that theres no way to apply adjustment layers to hundreds of layers while keeping them in the same configuration ( blendmodes,  layer order ,  without merging)  while keeping the same end result.
    works great if all your layers are set to normal though..    But I really need to keep shadow layers seperately and be able to adjust on the fly aswell as apply those adjusment to all my layers.
    I suppose that just isnt possible.   I understand the math required for this would be tremendous/ complicated if something like this would ever be implemented.  Would be nice if adobe could come up with some solution to this.  Its really a huge issue in my work flow and theres no alternatives.    How else can I adjust colours to 100+ layers  with a few clicks that lets me play around the the adjustment until im happy with the outcome.    Really wish i could adjust and the quickly apply that adjustment to all my layers regardless of blend mode.   LIke If the Layers with blendmode could somehow take the properties of the adjustment layer and keep adjusting those layers undereathe on top of that blended mode that its doing...   

  • How to apply blending modes to a gif in CS6?

    Hello everyone! I am in need of a tutorial or at least a how-to-step-through on how to apply the different blending modes on a gif.
    For this specific situation, I have a gif with a black background and a white semi-glowing scope, but I just want the white glowing scope to show.
    I think that Lighten would be a good blending mode, but I just don't know how to produce the results I want.
    Could anyone give me a reference or a guide on how to do this?
    I'm not sure how to edit a gif either, being that there are so many tutorials saying this and that, leaving me confused in the end.
    If someone could break all this down for me in detail(as simple as possible) and what not, that'd be great!
    Until then, thank you!

    GIFs are in indexed color and don't support any blending modes nor layers. You need to do an Image --> Mode --> RGB and then a whole new world will open up...
    Mylenium

  • Value input for screen and to apply it to formula in Query Designer

    Hi Gurus !
    How could i input an value for screen in BEx and soon to apply it to formulas resident in cells in Query Designer, the result must be appear for each cell in the report.
    Thank You for your helps.

    create a variable with Manual/user input option.
    use its value to populate the calculated field.

  • Hi how to apply Chronological sort for a month column?

    Hi All,
    I am struck with how to apply Chronological sort for a month column that contains values like January, February, March, April, May, June.... December. If we apply normal sorting then we can arrange the column values either in ascending order or descending order. But i want the column values to be in this format like jan, feb, mar,apr....dec. Is it possible???
    If this is possible then pls tell me the way in a step wise manner for my better understanding..
    Thanks in Advance
    Thenmozhi

    Hi Deva,
    I tried with the below formula :
    CASE WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='January' THEN 1 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='February' THEN 2 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='March' THEN 3 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='April' THEN 4 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='May' THEN 5 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='June' THEN 6 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='July' THEN 7 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='August' THEN 8 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='September' THEN 9 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='October' THEN 10 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='November' THEN 11 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='December' THEN 12 ELSE '' END
    But it is showing the error like this:
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 604, message: ORA-00604: error occurred at recursive SQL level 1 ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 8 ORA-00932: inconsistent datatypes: expected NUMBER got CHAR at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    What it is problem? Please help me...
    Thanks

  • How to apply video effects across several clips

    Does anyone know how to apply a video effect across several clips in a sequence, as opposed to doing each clip individually?

    Nest the sequence and apply the effect to the nested sequence.
    You will find links to many free tutorials in the
    Premiere Pro Wiki that will quickly
    show you how things are done in PPro.
    Cheers
    Eddie
    Forum FAQ
    Premiere Pro Wiki
    - Over 250 frequently answered questions
    - Over 100 free tutorials
    - Maintained by editors like
    you

  • How to apply j2ee licensing

    Hi everyone:
    I met a problem about apply J2EE licensing.
    I install NetWeaver 2004s in AIX machine. The j2ee licensing invalid after 28 days and the j2ee will shutdown every 30 minutes. Then I need restart j2ee engine every 30 minutes. So I go to SAP licensing key website to apply a licensing.
    The SAP mail me a licensing file that just only for <b>NetWeaver_ORA</b>.Then I use Visual Administrator to run this licensing. It's work for NetWeaver but not for j2ee. so my j2ee's problem still in.
    Has anybody can tell me how to apply the j2ee licensing because I can't find any  selection about j2ee in SAP licensing website. I just can find NetWeaver 2004s.

    Hi Lee,
    We have a similar landscape NW2004s EP on AIX, Oracle and I chose the following while ordering the J2EE_ORA license:
    System ID:xxx
    System Name :Development System
    System Type: Development System
    SAP Product : SAP WEB AS
    Production Version: SAP WEB Application Server 6.40
    Technical Usage: Application Server Java,EP core,Enterprise portal
    Database :Oracle
    Operating system:AIX
    Request Type:Stand system,J2EE Engine,portal and/or License server
    We differ only in :
    SAP Product : SAP WEB AS
    Production Version: SAP WEB Application Server 6.40
    Select the above and see if it works.
    Reward points if this helps!
    Thanks and Regards,
    Preetha Rethinam

  • How to apply image texture to imported shape

    This is regarding applying am image texture to an object.
    I am able to apply an image texture to a Sphere.
    Sphere mySphere = new Sphere(1.0f, Sphere.GENERATE_NORMALS | Sphere.GENERATE_TEXTURE_COORDS, 10,appear);
    objRoot.addChild(mySphere);
    But when i import a model from a file(.obj), and apply the texture to the imported objects,
    the image is not displayed as texture but a color similar to the image is displayed.
    How to apply image texture to imported objects?

    Mylenium, thanks for your response but unfortunately I'm still missing something here. I have two problems:
    1. I don't understand how to size the logo to only cover a small portion of the golf ball. Because of the other problem I'll describe in 2) below, I simplified my test by trying this on a basic PS sphere. I loaded the logo image into the diffuse texture but it wraps the sphere. I tried editing the texture thinking I could fix it by using Transform scale, but that is greyed out. So, how do I cause the logo to apply to a small portion of the surface (as a traditional golf ball logo would appear)?
    2. Perhaps the bigger issue here is when I attempt to do this with the golf ball 3ds model instead of the PS sphere, the wrapped logo appears to be sitting somewhere between the outer surface of the ball and the inner core. In other words, the wrapped logo has a very sporadic appearance where it shows up in some dimples but not others. It isn't just applying to the surface of the ball. Thinking this might have been a problem with the .3ds model I acquired an .obj golf ball from a different source but it exhibited exactly the same problem.
    I'm experienced with PS and 3D in a couple of other programs, but new to 3D in PS. I appreciate your help with this.
    Jerry

  • How to apply a number format to a cell within a table in Word 2011??

    I am creating a fillable PDF form and I need to be able to apply a phone number format to a cell in Word 2011 similar to how it is done in Excel...Can someone please HELP me? Thank You!

    846640 wrote:
    I have to import some data form excel sheet. but the number in that sheet have been saveed as the following format mask 1,000.000(2,000.000,1,5000,00) as charchterI am wonder how to apply format mask in excel for the character cell.
    but in may table that field is a number, so how can remove the format mask from the excelsheet?So, while reading from excel how the values is coming in the variable i assume its coming with comma(,) than what happens if you try like below?
    variable_name:=TO_NUMBER(REPLACE(variable_name,',',''));
    -Ammad

  • How to apply 11.2.0.2 Patch Set on the existing 11.2.0.1.0 database

    Hi,
    I am having a standalone 11.2.0.1.0 database running on windows 2008 r2 64 bit server.
    I have already downloaded the p10098816_112020_MSWIN-x86-64_1of7 & p10098816_112020_MSWIN-x86-64_2of7 patch set software.
    I wanted to know how to apply this 11.2.0.2 patch set on the existing 11.2.0.1 standalone database.
    I could not find any document that gives preinstallation+installation+upgrade+post installation steps.
    All i can see is only readme & welcome document and it does not give any above steps in it. It recommends to choose "Out-of-Place Upgrade" but does not give any "preinstallation+installation+upgrade+post installation" steps. Some documents say to install the 11.2.0.2 software in a new home and then use DBUA to upgrade. Is this merely enough or should we follow any other steps for preinstall and post install?
    Can someone share the steps/links on how to apply the 11.2.0.2 patch on the existing 11.2.0.1.0 standalone database ?
    Regards,
    Ashok Kumar.G

    Hello,
    With the Patchset *11.2.0.2* you have a README ( Oracle® Database Patch Set Notes ) which give you the steps to follow and many references.
    One of the main reference is the Upgrade Guide:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17222/toc.htm
    The Oracle Database 11gR2 Upgrade Companion may give also many advices.
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to apply ALV view at runtime

    Hi,
    Now I have the view list for current alv table, but I don't know how to apply them at runtime.
    I know this class CL_SALV_WD_CONFIG_TABLE, unfortunately no similar method can be found to implement this.
    Any reply is highly welcome.
    Thanks and regards,
    Felix

    Hi Felix,
                     If there is a saved view in ur ALV. It can be set during runtime by using the method GET_CONFIG_DATA in the ALV interface IWCI_SALV_WD_TABLE.
    SAP Help document: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/93/47854a8366474f8bedabdcc43b2387/frameset.htm
    Ranganathan

Maybe you are looking for

  • How to identify a role that is not working

    In what table or through witch function module can I see that there's a problem with a user's role via ABAP? I have a role that seems to be fine when I search it with  function module PRGN_READ_USERS_FOR_ONE_AGR. But when I search it with SU01, it ap

  • Mail 7.3 Accounts Off-line

    A domain name recently expired and was renewed after three days. Two Mail accounts related to that server stopped working in Mail, which shows the dreaded 'account off-line' message. Both incoming and outgoing mail servers are described as not workin

  • Which is better, many PXI cards or fewer PXI cards with more SCXI cards?

    I have a pretty basic question.  Which is "better", using multiple PXI cards for analog inputs or a single PXI card and multiple SCXI cards?  For example, if I have say 100 channels to sample (all at the same rate), I could use 2 6225s at 80 ch each.

  • FPM Tabbed UIBB

    Hi, I would like to know if it is possible to add UIBBS to a tabbed UIBB dynamically. I want to add as follows: MAIN_FORM -> FPM_FORM_UIBB ->CL_FEEDER_FORM_MAIN... contains TABBED -> FPM_TABBED_UIBB ->CONFIG_TAB1 _____FPM_FORM_UIBB ->CONFIG_FORM1->CL

  • Dynamic Variants for RSEXARCA

    Dear All, Please let me know how to create Dynamic Variant for the report RSEXARCA. Kindly let me know the procedure. Regards, KCR.