Question About Calculation

A previous forum user help me out by giving me this code:
form1.#subform[0].Term_Start_Date::exit - (FormCalc, client)
// Get the number of days from the epoch for the starting date
var startNumber = Date2Num(Term_Start_Date.rawValue,"YYYY-MM-DD")
// Add the lease term to the startNumber
var diff = startNumber + LeaseTerm.rawValue
// change back to a date
Term_End_Date.rawValue = Num2Date(diff, "YYYY-MM-DD")
This allows me to calculate a lease date based on start date and lease length. It works like a dream. My question is currently once I choose the lease term and the lease start date I must manually click on the Term_End_Date to have it populate properly. I have this code in the "exit*" section. Is there anyway to have the field auto populate once a user pick a begining date, essentialy eliminating the need for a user to click on the Term_End_Date field?
Thanks to the memeber's.

You could put it on the change event of the start date field. That will populate the enddate when a start date is chosen. Now if they decide to change the lease period after the start date has been selected the calculation will not fire..... is that acceptable?
Paul

Similar Messages

  • Question about calculation script 'Fix'

    Hi Guys,
    I have a question about calculation script 'Fix'. Below is the sample for my question:
    Dimension 'Period' has members '2009','2010','2011'. We want to Fix the data which 'Period' is not '2009'.
    From Database Administrator's Guide we could use @NOTEQUAL, but version 11.1.1.3.0 seems not support @NOTEQUAL.
    Actually, the dimension is dynamic so we cannot use the way fixing other memebers. What should I do for this requirement?
    Edited by: 842270 on Apr 24, 2011 7:29 PM

    842270 wrote:
    Hi Guys,
    I have a question about calculation script 'Fix'. Below is the sample for my question:
    Dimension 'Period' has members '2009','2010','2011'. We want to Fix the data which 'Period' is not '2009'.
    From Database Administrator's Guide we could use @NOTEQUAL, but version 11.1.1.3.0 seems not support @NOTEQUAL.
    Actually, the dimension is dynamic so we cannot use the way fixing other memebers. What should I do for this requirement?
    Edited by: 842270 on Apr 24, 2011 7:29 PMYou can use @Remove command to avoid 2009.
    @REMOVE
    Removes values or members in one list from another list.
    Syntax
    +@REMOVE (list1, list2)+
    Parameter     Description
    list1
    +     A list of member specifications, from which the members specified in list2 are removed.+
    list2
    A list of member specifications to be removed from list1.

  • A simple question about Calculation property

    Hello friends at www.oracle.com ,
    I tried to create a summary column that sums data from another block, but it has failed - Oracle showed the FRM-30377 error, and it was needed to create a non-database item at the block to be summarized.
    This situation has raised one question: if you can't summarize data that comes from another block, why can you choose the block to be summarized at "Summarized block" at Calculation property?
    Thanks, and best regards,
    Franklin Goncalves Jr.

    You can summarize data that comes from another block. But the calculated item must be in a block that has its Single Record property set to Yes.
    So you can create the calculated item in a control block, set Single Record to Yes for the control block, and use the calculated item to display a sum of data from another block.

  • Question about calculation example with Query Designer

    Hi guys,
    I have to calculate within columns and rows and I am not familiar with the settings in Query Designer that could be done to achieve the results.
    For example:
    Payments----
    Delay -
    Weighted Delay
    1000USD--10 days--
    10000
    2000USD--20 days--
    40000
    3000USD--xxx--
    50000 (this is the sum row)
    The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
    Has anybody an idea how the sum row can be calculated separately?
    Thank you for suggestions!
    Edited by: saplaz on Jul 13, 2010 8:47 AM
    Edited by: saplaz on Jul 13, 2010 9:08 AM

    Hi,
    Assuming you have the Payments Infoobject in the rows and WD Infoobject in the columns; Delay as a formula object.
    > Payments----
    Delay -
    Weighted Delay
    > 1000USD--10 days--
    10000
    > 2000USD--20 days--
    40000
    > 3000USD--xxx--
    50000 (this is the sum row)
    > The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
    You may try this workaround of using
    NODIM( SUMCT(WEIGH_DELAY) / SUMCT(PAYMENTS) )
    on a formula variable. (In this case, the assumption is you have not static type-restricted the rows/cols) If you find any hinderances in the default approach, you may check this out as a formula & insert this at the cell editor level.
    If not, use a simple formula variable; here define the replacement path as 0(N) for your Payments. (N being the # of digits)
    Use a simple calculation:
    SUMGT(WD)/FV
    But you may not get an result o/p in the last row, as the values are not linked (sans relation with Payments). as it will return a X for the delay in the Result row.
    Pls. let me know know if this works or some sample o/p if the initial assumption was wrong.
    Thanks,
    Arun Bala

  • Network Management: Question about calculating network,host and broadcast a

    I would like to say i am new to this forum and I do not know if this is the right place to post this but i am currently in a cisco academy for CCNA and if anyone else is in this class i am stuck @ 6.2.2 in the online cisco material.....
    given the following address/prefix of 141.124.88.174/30
    enter the last octet in binary of the network,
    I am totally lost @ how to find the network octet i know /30 means the first 30bits are network and the last 2 are host i also know the last octet is 10101100 or 172
    my question how do you get .174 to .172??? if you are wondering how i know the answer --it is in the book i just dont know how to do it on my own :)
    thanks much

    Eric
    My sense is that you may have skipped a step (or maybe I skipped in understanding your post). The best way to explain this is to refer to binary - which you have started to do.
    For address ...174 the last octet is 101011 10 (in which 101011 represent the network bits and 10 represent the host bits). To find the network bits make the host bits all binary 0 - which means that the subnet address is 101011 00 or 172.
    So the answer to your question is that you get from 174 (host address ) to 172 (network address) by changing all host bits to binary zero.
    HTH
    Rick

  • Help  question about calculating sum????

    what do i need to fix to make it so the digits add together to give a sum i know its in the loop but i cant figure it out can someone giv me a hint
    thanks
    import java.util.Scanner;
    import javax.swing.JOptionPane;
    public class ch10q8
        public static void main(String[] args)
            String input;
            char[] array;
            int digits = 0;
            input = JOptionPane.showInputDialog("Enter numbers seperated by commas");
            array = input.toCharArray();
            for (int i =0; i < array.length; i++)
                if (Character.isDigit(array))
    digits++;
    JOptionPane.showMessageDialog(null, "The digits total" + digits);
    System.exit(0);

    Hey Mr. javakinglow, you never responded to replies in your last three threads:
    [thread 1|http://forums.sun.com/thread.jspa?threadID=5376244&messageID=10656940#10656940]
    [thread 2|http://forums.sun.com/thread.jspa?threadID=5376219&messageID=10656857#10656857]
    [thread 3|http://forums.sun.com/thread.jspa?threadID=5373645&messageID=10642792#10642792]
    This kind of implies that you possibly didn't even read the replies and that you'll likely not read or respond to replies to this thread. Are you sure that this is the message that you want to send?
    Best of luck.

  • Question about Scheduled Task

    Question about Scheduled Task
    RequestCenter 2008.3
    Oracle 10g
    Websphere 6.1.27
    IE 7
    Hi:
    I have tried to get a scheduled task to work without any luck.  I am referencing a date/time field on the form and the task goes to "Scheduled", but never moves to "Ongoing".
    I've opened a case with support, but was wondering if anyone has gotten this to work.
    Thank you
    Daniel
    Safeway Inc.

    We just went through this too. If the plan is fairly complex, and has allot of conditional tasks you will have difficulty.
    The explanation I got from Shweta is that the calculation that determines the OLAs before my scheduled task was to start looks at ALL the potential tasks and combines them, essentially saying the duration is much longer than what you think it should be, ie the sum of all potential task OLAs, not just the tasks that became active.
    Bottom line if your scheduled date is with

  • Questions about CIN tax procedure choice and pricing schemas

    Hi all,
    I have to implement SAP on a Indian company and I'm verifying all particularity about this country (in particular tax procedures and the great number of differents tax conditions used).
    I have two questions about tax procedures and pricing schemas. Every feedback about thse points will be appreciated.
    a) To choose tax procedure TAXINN or TAXINJ which are the elements that I have to consider?
         I have read lot of documentation about CIN implementation and Iu2019m oriented to choose TAXINN schema, but If possible I  would  to understand better which are on behalf of one choice or another.
    b) To define pricing schemas for India, after check with local users and using examples of documents (in particular tax invoice) actually produced, I have understood that taxes have to be applied on amount defined starting from price list, minus discounts recognized to customer plus surcharges eventually to bill (packing, transport,  etc.).
    Itu2019s correct for any type of taxes that tax amount is calculated on u201Cnet valueu201D defined at item level or there are exceptions to this rule?
    Thanks in advance
    Gianpaolo

    hi,
    this is to inform you that,
    a) About point 1 I know the difference between the 2 tax procedures (conditions or formulas). I also have read in others post in the FORUM that TAXINN is preferable. So I would to understand which are the advantages to choose instead TAXINJ. There are particular reasons or it'a only an alternative customizing setting?
    a.a. for give for posting the link : plese give me the advantages of TAXINJ and TAXINN
    CIN - TAXINN and TAXINJ
    b) About point 2, to define which value has to be used as base amount to calculate taxes isn't a choice, but is defined depending by fiscal requirement of the country, in this case India fiscal requirement. I know that, as Lakshmipathi
    write as answer on my question, exception could be, but it was important for me to understand if I have understood correctly the sequence of the pricing condition in the schema in "normal" situation.
    b.b. you can create your own pricing procedure for this and go ahead.
    hope this clears your issue.
    balajia

  • Question about Percent Function

    This kinda goes along with my question about the plus sign. That was answered by the fact it means there is more than can be displayed in the field with the plus sign. The problem I am having is all of the fields with the plus sign are formated to be PERCENT. These fields are filled in via the C# program. The values are calculated in the C# program and outputed to the PDF form in the form of 00.00 - 100.00. Thus if I am filling in these fields with values that are within a PERCENT range, then why are they showing a plus sign. I have even go as far as to wipe the field clean, re-do the Text box, re-format as PERCENT, with the text centered, and the No Calculation radio button set true. The only other thing I do these fields is set the FONT to 10 point or otherwise the huge in size.

    Thank you all for the help on this. What I found is:
    it is correct that the incoming value to a fillable field for a PERCENT must be between 0 and 1 BUT this is NOT the complete answer.
    If I filled the field with 33.33 then it will display  33.33 + which says the display is too big.
    If I filled the field with .3333 thin it will display .3333 without the PLUS sign, but is still not correct because the FORMAT is set to PERCENT.
    What I had to do is add the following JAVA script.
    // Custom Calculate script for text field
    (function () {
        // Get the field values
        var v1 = getField("NO_FEAR_ASSOC_WITH_TARGETED_DISABILITY_PERCENT_1").value;
        // Set this field value
        event.value = v1;
    Now if the input is .3333 the display is now 33.33% which is correct. Sense the JAVA Script is basicly a NOP, this tells me that the PERCENT format requires some kind of trigger. Sense a FILL is NOT a trigger, the display comes out incorrect.

  • Question about the MAKZN field in the RBKP table

    Hello all.
    I have a question about the MAKZN field. Does anyone know what field in MIRO is assigned to this field? We have an issue where a line item amount was not selected invoice was out of balance but the agent selected accept and post. And invoice posted. but I am interested in knowing where the amount if keyed in because when I go to the RBKP table I see an amount entered in the MAKZN (manually accept net difference amount)

    Hi,
    it seems as if the value was calculated internally:
    program SAPLMR1M
    dynpro 6000
    PAI module fcode_6000
    Include LMR1MI3W
    *-------- buchen ------------------------------------------------------*
        WHEN fcobu OR fcomanak.
    *--- identical code in PAI Module FCODE_6250 --------------------------*
          PERFORM ota_check USING vf_kred-xcpdk rbkpv-xcpdd
                            CHANGING rc.
          IF rc NE 0.
            CLEAR ok-code.
            EXIT.
          ENDIF.
          IF ok-code = fcomanak.
            PERFORM diff_akzeptieren.
            ok-code = fcobu.
          ENDIF.
    where:
    fcomanak          LIKE ok-code VALUE 'MANAK', " Manuell akzeptiert
    *&      Form  DIFF_AKZEPTIEREN
    *       Differenz manuell akzeptieren
      FORM diff_akzeptieren.
    *       Manuell akzeptierter Betrag
        rbkpv-makzn  = rbkpv-makzn + rbkpv-diffn.
        rbkpv-makzmw = rbkpv-makzmw + rbkpv-diffmw.
    *       Differenzbeträge
        CLEAR: rbkpv-diffn, rbkpv-diffmw.
      ENDFORM.                             " DIFF_AKZEPTIEREN
    maybe it´s happenning when releasing manually the invoice in MRBR?
    Best regards.

  • Question About Geodetic Metadata

    Just a quick question about geodetic metadata.
    I'm wondering why the documentation says SDO_LB and SDO_UB should be set to -180 and 180 for longitude and -90 and 90 for latitude. Is this just to accomodate geodetic around the globe? Is there any reason I shouldn't set SDO_LB and SDO_UB to values other than what the docs suggest? I can't seem to find a reason for using -180 and -90.
    In my testing I've found that using values other than -180 and -90 works just fine as long as my LB and UB cover my MBR. Please let me know if I'm missing something...thanks in advance!

    Hi dswing,
    For the understanding with geodetic data i would like you reading
    Different results using SDO_RELATE with polygon and rectangle type
    Re: Size of Area of Interest - smaller equals more records - why?
    Re: Different results using SDO_RELATE with polygon and rectangle type
    and
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14255/sdo_cs_concepts.htm#CIHHGHFH
    This should answer most of your questions about;
    Your question: The answer is inside the matehmatical calculations for some operations. How it is implemented i don'T know; But i think, this is the reason for.
    btw: it makes no sense, defining more than/ less than -180 or -90. A circle is a circle is a circle ;) (for latitude/longitude)
    regards, Andreas

  • Question about Depreciation Posting Run

    I Gurus:
    I have a question about Depreciation Posting Run;  I want to block two active assets for not entry in the Depreciation Posting Run and don´t affected it.
    I try to blocked the fixed asset in AS06 transaction but de active asset is affected in Depreciation Posting Run.
    Could you please help me??
    Thanks a lot

    Hi,
    To my limited knowledge, one can deactivate the assets after transfering the value from the to be deactivated asset.
    As per the generally accepted accounting principles, assets with value should have an impact in our financial statment.  In SAP, deactivating assets means, wrongly created assets which will not have any value and will not have impact any of your financial books of accounts.
    I think, you are looking for a functionality, where you do not want to depreciate the assets (ex. Land).  If it is so, you can give the Zero percentage by creating a new dep. key if you are using depreciation key based calculation of depreciation.
    Hope it clears your doubt,
    Regards
    A.Saravanan.

  • Question about EIGRP's feasible successor

    Hi,
    I read article "Who's Afraid of DUAL-3-SIA?" on http://www.cisco.com/en/US/partner/about/ac123/ac114/ac173/Q2-05/tech_routing.html
    there is a sample to explain a new IOS feature.
    But I have a question about that sample,
    why Router C can't be Router A's feasible successor?
    IF C is A's feasible successor, A can declare C as the alternate route as soon as receive B's query.
    Am I misunderstanding the concept of feasible successor? can anybody give me some hint?
    thank you all!
    Regards,
    sha

    HI Sha,
    There is no mention of any values for bandwidth and load in the topology in that link.
    What I see that the link between router A to Router B is gigabit which means the bandwidth will be gbps. Now the link between Router A to Router C is only T1 which will be 1.54 MBPS. Much difference.
    Now when Eigrp will calculate the metric the best metric will be from router C and that will become the best path. Now it will also check the reported distance from router C. If the reported distance from Router C will be more then the best metric which is been calculated from Router B it will never become feasible succ.
    In short to become the feasilbe succ its reported dist should be less then the Feasible distance.
    This link will give a better pic.
    http://www.cisco.com/warp/customer/103/eigrp-toc.html#eigrpmetrics
    HTH
    Ankur

  • Maybe a simple question about M2T ?

    Hi
    I record in HDV on the JVC GY 101.
    I store on the Focus Enhancements DR HD100 Hard disk recorder.
    The footage I have is in HDV 25frames Progressive.
    The hard disk stores as m2t file and I seem to need to use Mpeg streamclip to convert for Final Cut Pro HD.
    I have a few questions about this.
    1) What should i convert to with mpeg streamclip ? mov, dv m2v etc etc
    2) What setting should I have on FCP with regards to screen size ? The converted clips are 1280x720. When I choose this setting on the sequence, I end up with small black bars left and right of the video on the canvas ???
    3) I will also later have to add some digi beta footage which will be PAL, 720x576 Anamorphic.
    4) What is the best resolution for me here ?
    5) And will the quality of the original m2t file be downgraded by the mpeg streamclip ?
    Thanks so much for your help
    All the best
    Simon

    HDV isn't an "edit-friendly" format, meaning: HDV uses inter-frame compression, combined with a long group-of-pictures (GOP) of 15 frames (12 frames in PAL-equivalent). In intra-frame compression (as in DV, DVCPRO HD, etc.), each video frame is a complete image that stands alone. Inter-frame compression (which is also used in DVDs) uses only a limited number of complete image frames, the GOP determines that number. So, in HDV for example, with a GOP of 15 frames, 1 second of 30fps video contains only 2 complete frames, while the other 28 frames are determined by calculations used in conjunction with the Bi-directional ('B') and Predicted ('P') frames, which contain partial information on the changes in the video in between the 'I' frames which contain whole images. This process, of course, requires much more computer processing power than when editing DV, DVCPRO HD, Uncompressed, etc.
    Editing video streams such as HDV (and XDCAM HD) is made difficult by the reduced number of I-frames. For example, if you make a cut in between the I-frames in the video clip, the computer has to then recalculate new I-frames that are placed at both sides of the cut. Converting on capture/after import to an intra-frame codec like DVCPRO HD, ProRes 422, or Uncompressed will reduce processing power and increase real-time performance, as well as give better performance when adding effects and performing compositing like chroma-keying.
    A common rule of thumb in professional applications is to acquire in HDV, XDCAM HD, etc., but capture and edit in DVCPRO HD, ProRes 422, or even Uncompressed. Native HDV editing is not taboo by any means; it's just not as easy or robust -- especially with the LONG render times. Depending on what kind of work you do (and of course personal preference), you may not see much benefit by transcoding to another format.
    Are you suggesting i have to convert each clip after capture?
    Unless you have an HDV deck with HD-SDI and a capture card, you would have to convert each clip. Batch-conversion would be very useful for that.
    Hope that helps.
    tim

  • Few Questions about Essbase Features

    I have a few questions about Essbase. Does it support the following features-------
    1) Support for statistical analysis
    2) Facility for scenario (What-if modeling) analysis
    3) Support forecasting and projection analysis
    4) Support both columnar and row calculations with multiple factors and constants (e.g. addition, subtraction, multiplication, division, percentage of total, minimum, maximum, average, count etc.)
    5) Able to support user definition of:
    a) Aggregation rules
    b) Totaling rules
    c) Ratio calculation rules
    d) Percentage calculation rules
    e) Forecasting rules
    f) Projection rules
    g) Estimation rules
    h) Other calculations

    http://www.oracle.com/appserver/business-intelligence/essbase.html
    http://www.oracle.com/appserver/business-intelligence/docs/oracle-essbase-datasheet.pdf
    http://www.oracle.com/appserver/business-intelligence/hyperion-financial-performance-management/hyperion-planning.html
    http://www.oracle.com/appserver/business-intelligence/hyperion-financial-performance-management/docs/hyperion-planning-datasheet.pdf
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for