Calculating three fields

Good morning everyone. I need help with the  following scripts I had written. It is a calculating script, and I did place it on the exit event of the fields as the Amount1 field is readOnly. I do not know why it is not working. Please, can someone on this forum help out.
Thanks
Lucpaan
Here is the script:
if 
(amount1.rawValue>""){
amount1.rawValue
= (ccard1.rawValue + atmadv1.rawValue + atmfees1.rawValue);amount1.rawValue
=amount1.rawValue;}
else 
{amount1.rawValue
="";}

Send the form to [email protected] and I will have a look. Please include a description of the issue in the email.
Paul

Similar Messages

  • How to use Radio Buttons in SAP BI 7 for a set of three fields?

    Dear SAP Gurus,
    We are using SAP BI 7. We need to use Radio button to select one field name (out of a set of three fields) which
    appeared on selection screen.
    The scenario is; we have three fields
    1) Field Name A
    2) Field Name B
    3) Field Name C
    Now, we need to select one field(using Radio button) from the above and later the report related to the above
    selected field should be displayed.
    The three reports will be as follows:
    1) Report A
    2) Report B
    3) Report C
    if Field Name A  is selected then Report A  will be displayed,
    if Field Name B  is selected then Report B  will be displayed and
    if Field Name C  is selected then Report C  will be displayed.
    To display the report we have two cases;
    1) There will be a common selection screen and all the three reports will come in single workbook but in seperate worksheet.
    2) There will be a common selection screen and all the three reports will come in same worksheet, one after the other.
    Is it possible to create the report in this manner, if yes, please suggest the steps.
    Regards,
    DV.

    I think you would just use commands to do the following:
    1. Hide report Analysis Item 2 and Analysis Item 3 if the 1st button was pushed.
    2. Hide report Analysis Item 1 and Analysis Item 3 if the 2nd button was pushed.
    3. Hide report Analysis Item 1 and Analysis Item 2 if the 3rd button was pushed.
    Hope that helps...

  • How to add three fields in Sales order item level and supress/hide many

    Hi Gurus,
    My client requirement is :
    1. Three fields to be added at Sales order Item level and they should flow till billing.
    2. Supress/hide most of the fields in Sales order, so that end user will be happy( thru SHDO how to do)
    Please share your experiences and help me.
    BEST REGARDS
    Srikanth

    Hi Subba Rao
    in VA01 screen - Material /qty/ after entering this client wants to enter three more details say X/Y/Z
    and after that he dont want to see maximum fields displayed in VA01 Screen.
    I think it makes sense.
    Regards
    Srikanth

  • 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.

  • How to use javascript in a calculated column field in SP2013

    Hi All,
          I'm trying to use the code below in a calculated column but i can't get it to work.
    any time i add it in it strips out all the quotes etc..and it doesn't show the open dialog.
    Any ideas how i can use this in a calculated column field?
    Thanks in Advance
       ="<div><a href='#'
    onclick='openInDialog(500,600,true,true,false,'http://www.SharePoint.com');'>MS
    SharePoint Site</a></div>"

    Your problem is with the single quotes which both open de onclick event and are used for the javascript string variable.
    You want " and need to escape those in a SharePoint string as ""
    So this
    ="<div><a href='#' onclick=""SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');"">MS SharePoint Site</a></div>"
    Evaluates to:
    <div><a href='#' onclick="SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');">MS SharePoint Site</a></div>
    Once SharePoint dumps the HTML code in the Client Browsers
    (provided you have set the Datatype of the Calculated column field to Number!)

  • How to force Safari to remember THREE fields in auto fill

    this website [ https://www.renweb.com/logins/parentsweb-login.aspx ] requires THREE fields and autofill won't do it.  Can I force it?

    No.

  • Want touse AT END OF.. for three fields

    Hi all,
    I have five fields in my internal table with amount as one field in the table GTAB.
    fld1
    fld2
    fld3
    fld4
    amount
    and i want to compare three fields fld2 fld3 fld4 and if they are same then add the amount and append to new internla table itab.
    if any value is different then append as it is to the new internal table itab.
    i m tring AT END of fld2.
    endat.
    but i m not getting the logic to check all the three fields.
    Please suggest.
    Thnx
    RK

    Hi,
    You can use the below logic.
    REPORT  ztest_100.
    TYPES: BEGIN OF ITAB,
             F1(10) TYPE C,
             F2(10)  TYPE C,
             F3(10) TYPE C,
             F4     TYPE I,
           END OF ITAB.
    DATA: ITAB TYPE STANDARD TABLE OF ITAB,
                JTAB TYPE STANDARD TABLE OF ITAB,
          WA_ITAB TYPE ITAB,
          WA_JTAB TYPE ITAB.
    WA_ITAB-F1 = 'A'.
    WA_ITAB-F2 = 'B'.
    WA_ITAB-F3 = 'A'.
    APPEND WA_ITAB TO ITAB.
    WA_ITAB-F1 = 'A'.
    WA_ITAB-F2 = 'A'.
    WA_ITAB-F3 = 'A'.
    WA_ITAB-F4 = '10'.
    APPEND WA_ITAB TO ITAB.
    APPEND WA_ITAB TO ITAB.
    WA_ITAB-F1 = 'A'.
    WA_ITAB-F2 = 'B'.
    WA_ITAB-F3 = 'A'.
    WA_ITAB-F4 = '10'.
    APPEND WA_ITAB TO ITAB.
    LOOP AT ITAB INTO WA_ITAB.
      AT END OF F3.
        IF WA_ITAB-F1 = WA_ITAB-F3 AND
           WA_ITAB-F2 = WA_ITAB-F3.
           SUM.
           MOVE WA_ITAB TO WA_JTAB.
           APPEND WA_JTAB TO JTAB.
        ENDIF.
      ENDAT.
      CLEAR WA_ITAB.
    ENDLOOP.
    Close the issue if this solution helps you.
    Edited by: priyanka jatla on Nov 4, 2009 4:53 PM

  • Save form as the form data from three fields

    I'm using Adobe Pro 9.0.0 and LC ES. I am trying to take three fields of data, like: Number, date, and name. Add or merge them together to be placed into a hidden field, then when the user selects the SAVE button I need a script that will get the hidden field data and insert it as the filename to be saved to a specific path. Is this possible?

    See this tutorial on the subject: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • SharePoint 2007 Designer Concat Three Fields in Subject line

    All,
    I have a SharePoint 2007 Designer workflow and I'm trying to concat three fields into the subject line of an e-mail that gets fired without success.
    I have to date created my variable then assigned that variable to the subject line of an e-mail that gets fired.
    I've then set my Action as such in the workflow:
    Set Variable:CustomSubjectEmail to [%HotDocs Ideas and Issues:Created By%], [%HotDocs Ideas and Issues:Request Type%], [%HotDocs Ideas and Issues:Category%]
    However - no matter how I have the fields surrounded the actual text is passed into the subject and not the three fields concatted as I would like.
    I've tried this several ways without the [] and without the surrounding % - but still I don't get the correct requests.

    Hello,
    Try with"workflow variable" (i think there is different name in SPD 2007 but you can find in action) to concatenate them then assign that variable as subject line.
    Click on Actions -> Assign workflow variable-->Set Variable-->Click Actions -> Build Dynamic String-->then Store [%Variable] <your custom string goes here> in Varibale:customVariable
    http://www.mssharepointtips.com/tip.asp?id=1158
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Need UDF for concatnating three fields

    hi all,
                need java coding concatnating three fields , please help me as i dont know java
    thanking you
    Sridhar

    Hi Sridhar,
    use following code
    public void calculate(String[] var1, ResultList result, String[] var2, String[] var3, String[] var4, String[] var5, String[] var6, String[] var7, String[] var8, String[] var9, String[] var10, String[] var11, Container container) throws StreamTransformationException{
    for(int i = 0 ; i  < var1.length;i++)
       if (var1<i>.equals("true"))
       result.addValue(var11<i>+ var2<i>var3<i>var4<i>var5<i>var6<i>var7<i>var8<i>var9<i>var10<i>);
    else
    result.addValue(ResultList.SUPPRESS);
    while creating this UDF:
    Select Execution Type as "All values of Queue" (you will see this option when you go for creating UDF)
    In signature Variable Declare 11 variable 1st will hold true or false and rest will be for concatination
    First input is output of comaparison ("WE")
    Now var1 will hold the output of comaparison. if it is true it will concate 10 value if false it will pass suppress (Same as if withoutelse)
    Thanks
    Sunil Singh

  • Can't display three field in the ALV report

    hi all,
    i have made a report ALV in which i have to display these fields:
    BANFN,EMATN,TXZ01,MENGE,NETPR,EBELN,BEDAT,LIFNR,NAME1 and the table which im using are EKKO,EKPO,LFA1.
    Actually only three fileds i-e (EBELN,LIFNR,NAME1) are not displaying in the report.
    I can't understand what is the problem in the coding.
    This is the PERFROM ORGANIZE DATA coding:
      form organizate_data.
      data: lv_index type sy-tabix.
    loop at itab_main.
        move sy-tabix to itab_main-sno.
        clear itab_ekpo.
        read table itab_ekpo with key ebeln = itab_main-ebeln
                                      ebelp = itab_main-ebelp.
       ENDLOOP.
       loop at itab_ekko where  bedat = itab_main-bedat.
       endloop.
      clear itab_main.
      loop at itab_ekpo.
        move sy-tabix to itab_main-sno.
        clear itab_ekko.
        read table itab_ekko with key ebeln = itab_main-ebeln binary search.
        move-corresponding itab_ekpo to itab_main.
        move-corresponding itab_ekko to itab_main.
        append itab_main.
      endloop.
    endform.
    Thanks,
    sappk25

    FROM ORGANIZATE DATA
    form organizate_data.
      data: lv_index type sy-tabix.
    loop at itab_main.
        move sy-tabix to itab_main-sno.
        clear itab_ekpo.
        read table itab_ekpo with key ebeln = itab_main-ebeln
                                      ebelp = itab_main-ebelp.
       ENDLOOP.
       loop at itab_ekko where  bedat = itab_main-bedat.
       endloop.
      clear itab_main.
    CONCATENATE 'No.' itab_lfa1-lifnr  'Name:' itab_lfa1-name1 INTO itab_main-n3 SEPARATED BY space.
      loop at itab_ekpo.
        move sy-tabix to itab_main-sno.
        clear itab_ekko.
        read table itab_ekko with key ebeln = itab_main-ebeln binary search.
        move-corresponding itab_ekpo to itab_main.
        move-corresponding itab_ekko to itab_main.
        append itab_main.
      endloop.
    endform.                    "organizate_data
    continued from here...

  • How do I run a script so that the user does not have to click into and out of a read-only calculated numeric field?

    Hi all
    I have a read-only calculated field, and I want to build actions on it, dependent on what the answer to the calculated field is.
    I have used action builder, and it works, but only if the form filler clicks in and out ("exits") the field, which they didn't have to enter in the first place, because it populates as a result of a previous script.
    To be more precise, The questions asked before this field are:
    Date of submission (submitdate):
    Date of event (eventdate):
    Calculation occurs (days between event and submission), and answer is populated in a field called 'daysbetween'
    Now I have a set of conditions:
    If the daysbetween is < or = 14, then I want a message to come up saying ineligible to apply
    If the daysbetween is >14 and < or = 28, then I want a message to come up saying a fast track fee will be applied, and I want the fast track fee box to be populated, and I want the fast track fee box to appear.
    I used the action builder to get all of this to work, except that it only works if the user then clicks in and out of  the 'daysbetween' field, which they shouldn't have to, because it's already calculated for them
    I feel like I have to put this script in an earlier field...but I don't know where - action builder won't let me do it in the 'eventdate' field
    Thanks in advance

    Put a shift register on the border of your loop. Have a case statement that contains the "Get time" function in one case of the case statement. Make that case = 3 and wire the loop iteration to the case selector. Have the time value loaded onto the shift register in the "2" case (interations count from zero), have the shift register passed through on all others ("Default"). Then subtract this time from current to get elapsed time. You probably want to put the subtraction/comparison in a "sub-case" in the "default" that only is valid for interations > 3 or you will get some really ugly "times" until the shift register is loaded, or you could initialize it from outside the loop with the time, but this will cause it to show elapsed times from the beginning that suddenly jump back to a low number after iteration 2.
    P.M.
    @ Corning? Which one? I was doing LabVIEW at Corning back in '96
    Message Edited by LV_Pro on 09-23-2005 10:07 AM
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    elapsed time.vi ‏24 KB

  • Calculating Mulitple Fields

    I have a form with 5 columns across.
    1 column on Left side is called Quantity.
    2 Columns (next to each other) on the Right side. One mark "Prices" & One Marked "Amount".
    I want to be able to place in my Quantities. Email to my Vendor. Have my Vendor put in price per each under the Price column. Then the amount calculated for them and appear in Amount Column.
    I might as well know how to get a Total Field to work on the bottom of the page. I will have 20 Lines to add up.
    Thanks in advance for any help and Tips
    Jack

    I found the templates and choose one similar to my own document. I tweaked the template and seems to be working very well. I stumbled upon the templates by mistake. I thought yesterday if there were templates I could start with one of those. Glad I found them!

  • Just starting out with calculations between fields

    I'd like to to include some text fields where numbers are entered, then a button is pressed, and the mathematical results of the fields are displayed.
    In Adobe Acrobat Pro 9 I opened Forms ... Start Form Wizard, and placed all the elements - three Numeric fields and a button. I want to add Javascript to the button to calculate the fields, but I can't see any way to add the script to the button. Can someone tell me what the steps are to add a script to the button? Should I be using something other than Form Wizard?
    These results (multiplication and division) should simply display in the Numeric field. They won't be saved anywhere. I have the Javascript already working on mobile devices and want to create a PDF version for those without smartphones.
    Thanks!

    The first thing you need to know is that Acrobat uses a completely different object model than a browser. For more information, see the Acrobat JavaScript documentation at: http://www.adobe.com/devnet/acrobat/javascript.html
    The result field can be set up with a custom Calculate script that automatically calculates the result, so the button is not necessary. Try the following as the custom Calculate script for the result field:
    (function () {
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
        // Set this field's value
        event.value = (v2 !== 0) ? v1 / v2 : "";
    If you really want to use the button, the code would be:
    // MouseUp script for button
    (function () {
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
        // Set this result field's value
        getField("result").value = (v2 !== 0) ? v1 / v2 : "";
    You can place these as document-level functions and call them, in which case the first one would be:
    function calcGearRatio() {
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
        // Set this field's value
        event.value = (v2 !== 0) ? v1 / v2 : "";
    and it would be called like this in the calculate event:
    calcGearRatio();

  • Cannot select fields for calculating other fields~

    Help -- I am tryiing to get certain fiels in a form to calculate based on selection of other fields.  The fields to be selected already have values in them.  (The same format I have used for several years, just new set of forms)
    I get through the point of setting up the field properties to calculate and I select Sum of...   Then it simply will not let me select any fields to use for calculations -- unless I select all fields.
    Please -- this is time sensitive and urgent any help responses needed and welcome!

    Sounds like you are having issues with Acrobat and not FormsCentral. You would get a better help if you post your question on the Acrobat's forum
    http://forums.adobe.com/community/acrobat/forms
    Gen

Maybe you are looking for

  • Crystal Reports Group-by-Summarized Data on SAP-BW

    Hi experts I am facing some strange problem while building report aginst SAP-BW I have two groups of data set in crystal Reports Ist group is on Business Area 2nd Group is on Cost Element(under business Area) and (YTD- Amount) Across  Business Area a

  • Customer cash reciept - wht

    Hi, I have confiured WHT on payment received from customer. It is working fine for f-28. But when I use FBCJ cash recipt it is not deducting WHT. I observed that in FBCJ- Cash payment Screen has WHT payment tab, but in Cash Receipt Screen there is no

  • Screen capture in java ?

    i want to capture a Screen in java and save it as a video file now. later i want to make like video streaming software for lan or wan. means any one can see what going on that pc where this Screen capture java software was installed. so any help rega

  • IDocStatus Application document not posted, No status record passed to ALE

    Hi, I am sending CREMAS04 IDOC to receiver system.The receiver system should create vendor entry in master table by using IDOC data. IDOC is getting posted successfully in R/3,but while calling inbound function module i.e process code CRE1 I am getti

  • Create Callback VI for IMAQdx Event - Broken Wire

    My application is using IMAQdx to communicate with a Basler camera. When my camera is triggered with a digital trigger, it sends out an event when exposre finishes. I can use this event to know when to grab an image. I have a working VI that uses an