Seeking a Current Age calculation based upon b'day

I'm seeking a Current Age calc based upon birthday and a set date in the future (5-5-2012) for a registration form.  I have zero Java or FormCalc background.  I'm using LiveCycle Designer 8.0 for the first time.  Any assistance would be appreciated.

Thank you radzmar, sadly I do not know where to enter the formula you suggested.  I found a page that mentions FormCalc (Form Properties / Default tab under the File menu option).  My novice skills are not up to this challenge apparently.  ;- (
I changed the field to a text field with Optional user input.  I’ll have to buy a book and read up.  ;- )

Similar Messages

  • Age Calc based upon b'date

    I'm seeking a Current Age calc based upon B'date and a set date in the future (5-5-2012) for a registration form.  I have zero Java or FormCalc background.  Many thanks for any assistance.

    If you don't much response in the LiveCycle Forms forum you posted to, you might try the more active and equally appropriate one here: http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es

  • Current age calculation in the report

    Hi Experts,
    How can i calculate the current age based on the date of birth in the report.
    like   current age = current date - birth date
    some body help me out of this issue.
    Rgds,
    Satya

    Hi Satya,
    Could you please update me on how you calculacted AGE..please as i am also looking for that
    I shall be great full if you can send me screen shots and code required to
    [email protected]
    Thanks

  • Calculation Based on Previous Day's Figure

    Hi all,
    This is a solution I implemented several years ago, which is now causing problems and must be rectified.  The intention was to compare a single field across two days and calculate the difference.  The only way I could figure out how to do that
    back then was to go back and loop through the whole table, calculating the difference each day until the present day.  This obviously isn't very efficient and now something has gone wrong.
    Here's the code:
    // Calculates Nett Oil Volume Increase
    double previousNettOilVolA = 82433; // value on 2/1/13 which is the live value on the day before this system begins
    double previousNettOilVolB = 51347; // value on 2/1/13 which is the live value on the day before this system begins
    foreach (DailyTankData tankdata in DataWorkspace.ApplicationData.DailyTankDatas)
    if (tankdata.NettOilVolume15TankA != null)//otherwise will crash if null value
    tankdata.NettOilVolumeIncreaseTankA = (double)tankdata.NettOilVolume15TankA - previousNettOilVolA;
    previousNettOilVolA = (double)tankdata.NettOilVolume15TankA;
    tankdata.NettOilVolumeIncreaseTankB = (double)tankdata.NettOilVolume15TankB - previousNettOilVolB;
    previousNettOilVolB = (double)tankdata.NettOilVolume15TankB;
    This is run on the _Compute event of another property in the table.  It seemed to work for a long time, but now is occasionally giving wildly inaccurate numbers.
    What's a better way to solve this problem?  Failing that, can anyone explain exactly how the above works and why it might be going wrong?
    Thanks,
    Liam

    Start by looking at your data. Any unusual spikes or negative values?
    A better way to handle it is to let the database do the calculations via a stored procedure.

  • Date calculations based on working days

    I need to add date calculations to a worksheet to show the time elapsed between two actions.
    Just a straightforward subtraction works fine, but what I really need to be able to do is calculate the number of working days between the two point (as something taking 5 days over Christmas with the 2 bank holidays is different equivalent to something taking 3 days in a normal week)
    At the moment I'm exporting the data into excel for analysis of this, but would really like to be able to do it in Disco so that the end users can go straight to the report using viewer, rather than having to do the conversion for them.
    Is this possible?
    Cheers

    Hi,
    Every thing is possible, the Q is how complicated is it....
    My suggestion is to create a table with all the dates of the non-working days for ex:
    create a table with all the MON-THURSDAYS, union to this table the holidays you know of such as christmas and so on.
    After getting this table you can create a function that returns the number of working days between 1 date to another by subtracting the days exists in this table.
    I started with that, you are more then welcome to get ahead with it and let us know what happened...
    create table holiday
    D_date date,
    d_day varchar2(20)
    create or replace procedure holiday_proc is
    d_date date;
    begin
    d_date := trunc(sysdate);
    while d_date<'01-jan-2010'
    loop
    if to_char(trunc(d_date),'Day') not in ('Saturday ','Sunday ') then
    INSERT INTO Holiday (d_date,d_day)
    (select trunc(d_date),to_char(trunc(d_date),'Day') from dual);
    end if;
    d_date := d_date+1;
    end loop;
    commit;
    end holiday_proc;

  • Using calculated member based upon existence of one or more currentmembers

    I'd like to use a calculated member - using the same definition- where the measure is based upon one dimension if that has been selected for use, or another dimension if that has been selected
    e.g with pseudocode
    WITH member [Measures].[Total Usage] AS
    ' IF EXISTS ([Date A].currentmember) THEN SUM([Date A].members, [Measures].[X])
     ELSE
     IF EXISTS ([Date B].currentmember) THEN SUM([Date A].members, [Measures].[X]) '
    It may sound odd to some ( possibly) - but I have a front end which is generating MDX and I can only really control the calculated member definition.
    Regards
    johnnie

    Hi
    I am not sure of your front end tool but in general, all generic calculated measures are possible with AXIS function. In your case sample MDX will be like
    MEMBER [Measures].[Generic SUM] AS
    iif( IsEmpty(Axis(0).Item(0)),
    null,
    iif( Axis(1).Item(0).Item(0).Hierarchy.CurrentMember.Level.Ordinal = 0,
    Axis(0).Item(0),
    Sum(Axis(1).Item(0).Item(0).Hierarchy.CurrentMember,
    Axis(0).Item(0)
    If need to further details, have a look at
    https://bipassion.wordpress.com/2013/10/06/mdx-generic-averages/
    Prav

  • Ssrs sum based upon a conditional statement

    In an ssrs 2008 r2 report, I have the following code that totals a transaction amount:
    =sum(cdec(Fields!TransactionAmount.Value))
    Now I need to have different total amounts based upon 'payment type'. The payment_types are either 'check', or 'credit' for credit card. Thus can you show me how to change the code I just listed to sum the amount depending upon the payment type?

    You may wish to follow this thread that is exploring a similar question.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/12e2cdf4-1fd7-4f2a-ba12-ff5c4ec01eeb/sum-values-based-on-condition-in-ssrs?forum=sqlreportingservices
    To do this in an SSRS expression just insert an IIf:
    =Sum(IIf(Fields!payment_type.Value = "check",cdec(Fields!TransactionAmount.Value),0))
    =Sum(IIf(Fields!payment_type.Value = "credit",cdec(Fields!TransactionAmount.Value),0))
    In the other thread you will see that sometimes it makes sense to do this kind of work in the dataset since dataset queries run on the datasource and often those systems are robust servers that can crunch and return data very quickly.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Aging calculation with Special periods

    Hi all,
    I have a asset cube (Cumulative movements) to store values by fiscalyear/period including special period (P13-P16) and requirements to get aging report based on fiscal year/period and report as follows.
                                    Curent | >30days|>60 days| >120 days| >180 days|
    Asset Number
    I’m getting aging is based on selection period, and with off set (-1, -2, -3 etc.) .
    For example, If selection date 002.2014, P2 amount will be in current , P1 amount in >30 days, P12 amount in >60days but in >60days expecting to get from P16 to P12 values.
    Please give some inputs to get special periods values into aging backet as Cube is storing special period values.
    Regards
    Naani.

    Hi Naami
    Since you can't work with fiscal year period to offset with std values then create a Variable with customer exit and translate fiscal year period to calmonth then offset this one with your values.
    Thank you
    Yiannis

  • Can't get a text field to atuo populate based upon a dropdown selection

    I have a drop down box with 3 values that can be selected:
    Dropdown2 = 101-3 subd.A
                          101-3 subd.B
                          101-3 subd.C
    I am trying to get a text field to auto populate based upon the selection:
    if Dropdown2 = 101-3 subd.A then Text4 = "ValueA"
    if Dropdown2 = 101-3 subd.B then Text4 = "ValueB"
    if Dropdown2 = 101-3 subd.C then Text4 = "ValueC"
    I have tried to create a custom calculation script for Text4:
    var v= getfiled("Dropdown2").value;
    if (v="101-3 subd.A") event.value = "ValueA";
         else if (v="101-3 subd.B") event.value = "ValueB";
         else if (v="101-3 subd.C") event.value = "ValueC";
         else event.value = " ";
    I have entered this script and the syntax appears to be correct.(At least to Acrobat XI.  I'm know programmer and have just enough knowledge to be dangerous).  When I select a value in Dropdown2 nothing happens.  No value appears in Text4.  I have checked the "commit selected value immediately" in the option of Dropdown2 per some google'ing.  I just can not understand why the values do not appear.  Any help would be appreciated.
    Thanks

    I made the changes and added the == to my if statements.  When I select a value in Dropdown2, Nothing appears in Text4.  I don't understand.  Is there something else that I need to do beside event.value="Some Value";?
    I know it has to be something simple that I am missing, but I just can't seem to see it.
    Text4 - Custom Calculation Script:
    var v= getfiled("Dropdown2").value;
    if (v=="101-3 subd.A") event.value = "ValueA";
         else if (v=="101-3 subd.B") event.value = "ValueB";
         else if (v=="101-3 subd.C") event.value = "ValueC";
         else event.value = " ";

  • Calculation based on date key figures in BEx

    Hi Friends,
    Hi Friends,
    I need to creat report for sales order data, which involved the calculation based on dates.
    In my cune iam having the data at the granual level with the dates as key figures. the calculation that i need to do is VTW = Actual PGI date - Customer want date.
    1) whn i run the report at the granual level my VTW is working correctly. No issues.
    2) when i run the report at higher levels the date fields are updated with X, as the system is unable to aggrigate the dates. The dates are at the material level in  a sales order. I need to show the VTW at the sales order level (each one of the two dates are same for all the materials). So, when i run the report with out mataril at the sales order level...i wanto sea the bothe date fields in a single line and also the VTW calculated as the different between throse two dates.
    3) Once we get the VTW correctly at the sales orde level. if i drill down the report for material, i want to sea both the dates in every record againest the matarial, but the VTW only aginest the first record...that is againest the sales order. I dont waht the VTW value repeated/duplicated for all the records againest the sales order,as VTW makes sence only at the Sales Order level.
    Please suggest me hwo i can achive the resulsts by meeting both Point 2 and 3.
    Thanks for ur help...in advance.
    Thanks,
    Renu

    Hi..
    I have the data from the extractore and in the cube as below.
    SALES ORDER    ITEM                MATERIAL            DATE1                         DATE2
    101                        Item1               Mat1              01/01/2010                15/01/2010
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                       Item3                Mat3             01/01/2010                15/01/2010
    I need the reports as below...
    Report1:
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                        01/01/2010                15/01/2010                14
    currently iam getting this Report1 output as below...
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                             X                                   X                           42
    Report2: Out put required as below
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                   I     tem3                Mat3             01/01/2010                15/01/2010
    currently iam getting this Report2 output as below...
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010               14
    101                   I     tem3                Mat3             01/01/2010                15/01/2010               14
    As VTW is need to be measued at the sales order level and we always have the DATE1 & DATE2 as same for all the itesm, it should be shon as only 14 in the first record. It mean once iget the required output from Report one in a single line with VTW as 14, it should not repeat with every line , when i dril down the report for Items or materials.
    Even if i can generate oly report2 as required in a single sheet ...that will be enough.
    Plas kindly provide some solution as how we can achieve this,
    Thanks,
    Renu

  • Dynamic XSLT source code generation based upon internal table

    Hi,
    Is there anyway to generate dynamic XSLT source code based upon final structure of output internal table and call dynamic generated XSLT in program?
    CALL TRANSFORMATION z_transformation
                PARAMETERS
                 p_shared_string = lo_shared_str_nodeset
                SOURCE XML g_sheet_data
                RESULT lt_data = i_data[].
    Source code example of XSLT transformation -
    <xsl:template match="/">
         <asx:abap version="1.0">
           <asx:values>
             <LT_DATA>   "Internal table
               <xsl:for-each select="ss:worksheet/ss:sheetData/ss:row">
                 <xsl:if test="position() &gt; 1">
                   <item>
                     <FIELD1>
                       <xsl:variable name="cell_id" select="concat('A', position())"/>
                       <xsl:variable name="v_index" select="ss:c[@r=$cell_id][@t='s']/ss:v"/>
                       <xsl:if test="$v_index">
                         <xsl:value-of select="$V_SHARED_STRING/sst/si[$v_index + 1]/t"/>
                       </xsl:if>
                       <xsl:if test="not($v_index)">
                         <xsl:value-of select="ss:c[@r=$cell_id]/ss:v"/>
                       </xsl:if>
                     </FIELD1>
                 </item>
                 </xsl:if>
               </xsl:for-each>
             </LT_DATA> "internal table
           </asx:values>
         </asx:abap>
       </xsl:template>
    </xsl:transform>

    In addition,
    We are converting binary data of excel from application server into internal table but currently we created two XSLT transformation to achieve this one for deleting name space and other for converting data into internal table format.
    We want to make our source code for future use also,Is there anyway to generate XSLT source code dynamically?Above mentioned code is snippet of data extracting which we are doing but this transformation is hard coded.
    Any help is appreciated.
    BR,
    Praveen

  • Can a Content Query Web Part (CQWP) be used to filter content based upon a substring of a variable

    Folks, I'm a newbie to this forum and to SHarepoint in general - so please be gentle :-)
    I'm using Sharepoint 2010 and have content in lists which I want to display based upon certain user attribtes. For example I have a sharepoint LINKS list which contains entries for vaious applications (I'm using the LINKS list as an example, however I'd
    like to apply it to many libraries/lists).
    Name:UK Intranet - URL:http:UKintranet.com - Description: UK
    Name:USA Intranet - http:USintranet.com - Description: USA
    Name:UK Contacts list - http:UKPhones.com - Description: UK
    Name:USA Contacts list - http:USAPhones.com - Description: USA
    My users are split accross AD domains, one for each called UK and others in a domain called USA 
    What I would like to do in a content query is display items where the users domain (ie UK or USA) is contained in the Description field.
    So a CQWP which includes something like "filter when Decription = &userdomian"
    I should also add that I am only using basic page editing in a browser and have no access to Sharepoint Designer
    Can this be done?
    BTW - I know this is a little like Audience Targetting, however I don't have rights to setup audiences and as the information about the audience is already available in the users domain I simply wanted to reuse that.

    Hi Peter,
    According to your description, my understanding is that you want to filter items based on the current user’s domain.
    Whether you could access Central Administrator, and create a new user property in User Profile Service Application->Manage User Properties. If yes, create a new user property (assuming it is called ‘Domain’)to store the users’ domain information. If not,
    please choice a existing user property that you don’t use to store the domain information, like Department.
    Then do as the followings:
    Open the page that you want to display the list.
    Eidt the page and insert the list into the page.
    Insert a Current User Filter web part(Insert->Web Part->Filters->Current User Filter) into the page.
    Then edit the Current User Filter web part, and select value to provide: SharePoint profile value for current user: Department(or Doamin).
    Connect the Current User Filter web part to the list: Connections->Set filter values to->the list.
    Connection Type: Get Filter Values from, click Configure.
    Consumer Field Name:Description, click Finish.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Selectively display link based upon userID

    I know how to add security to tabs, etc. in Portal, but I have a jsp portlet that contains various links and images. I want to selectively display some of these items based upon the user currently viewing the page. Is it possible to add security at this level?
    Thanks in advance.

    The links and images on the jsp portlet are not Portal items, I do not think you can use portal security to
    secure them. But for links and images on portal pages, each of them can be secured.
    Why not create a page, put your links and items to it, and set the item level security. Then expose the page
    as a portlet, this page portlet can be include on other pages.

  • FI -Account Statement and Aging calculation

    Hi all,
      I need to develop an account statement for customer open items (FI)  in smartform and also need to do the aging calculation at the end of main window ....for the days like 30,60,90,120,150,and grtthan 150 which is given at selection screen....pls help in this regard
    thanx
    suresh

    Hi,
    Open Items cannot be archived in SAP even if has met Document/Account Life.
    Items in BSIS, BSAS & BSID are all open items.
    1) Identify all open-item managed accounts
    2) Check which accounts have automatic clearing through SE16 BSIS table
    3) DISCUSS and AGREE WITH THE FINANCE TEAM which of these accounts need to be open-item managed. Those that do not have to be OIM can be changed in MASS transaction
    4) Block the accounts that need to be changed to non-OIM
    5) Run a COPY of RFSEPA03 (of course you have to do testing first). This program changes the status to non-OIM in the master data and line item tables. You have to do this for each combination of company code and GL account. If you have a lot of combinations, I suggest creating an ABAP program to "loop" the program. The combinations can be read from a flat file. Run-time depends on the number of line items that need to be changed
    6) Test the accounts for archive eligibility
    7) Unblock the accounts if everything is ok
    This is safer than clearing. As someone mentioned earlier, you have to be careful with clearing. The same with resetting clearing.
    Also, changing an account to set OIM active is very complicated. It involves reloading archived data and could result in huge problems later on. Your totals may not match with line items. This can be accomplished through a copy of RFSEPA02. SAP suggests that you create a new account instead. Knowing this, you MUST be certain that the accounts you change to non-OIM remain OIM.
    For aging Calculation:
    use the function module to get the customer open items....from BAPI_AR_ACC_GETOPENITEMS Function module.... after fetching the data from the bapi,
    .-> read the internal table values and move to the local internal table. and prepare the final table.
    .-> as asking aging 30,60,90,120,150,and GT 150 ... declare parameters and also declare the similar fields in form interface in the smartform...
    .-> And pass these parameter fields VIA smartform function module....
    .-> so now ur values are availble in smartform ....just arrange as per need....
    if you still not clear plz feel free to contact me......
    Thanks and Regards,
    Reward If Helpful

  • Derive values based upon user input

    Hello,
    I recieved a request for a report.
    When a user runs the report they are to be prompted for a fiscal year/period.
    Based on the fiscal year/period that the user provides I have the following columns  (in bold below are 2 examples that may make the description more clear).
    1. Revenue for the Fiscal year Prior to the fiscal year of the user input value
    2. Revenue for the Fiscal year/Period prior to the input Fiscal year/period
    3. Revenue for the Year to date accumulation up to the prior fiscal year/period that the user input
    4. Revenue for the Year to date accumulation up to the prior fiscal year (fiscal year rolls back first) and prior period (for period 01, it then rolls back the fiscal year 1 more year) that the user input
    Example 1: If the user ran the query and they provided the value 05/2007, then the values that need to be obtained would be:
    1. Revenue for 2006
    2. Revenue for 04/2007
    3. Revenue for 01/2007 to 04/2007
    4. Revenue for 01/2006 to 04/2006
    Example 2: If the user ran the query and they provided the value 01/2008, then the values that need to be obtained would be:
    1. Revenue for 2007
    2. Revenue for 12/2007
    3. Revenue for 01/2007 to 12/2007
    4. Revenue for 01/2006 to 12/2006
    Please help me with determining how to obtain the user input value, and then how to derive the time periods for the columns based upon that value.
    Thanks,
    Nick
    (points available)
    Edited by: Nick Bertz on Mar 13, 2008 9:43 AM

    Hello,
    See my example.. I am reading the value from Keydate Variable
    WHEN ZVND01
            READ TABLE i_t_var_range INTO w_var_range WITH KEY vnam = 'Keydate'.
             IF SY-SUBRC = 0.
              CLEAR l_s_range.
              l_date = w_var_range-low.
              concatenate l_date(6) '01' into l_first_date.
              CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
              EXPORTING
                        day_in = l_date
              IMPORTING
                         last_day_of_month = l_last_date
              EXCEPTIONS
                        day_in_not_valid = 1
                        OTHERS = 2.
              IF sy-subrc EQ 0.
                l_s_range-low  = l_first_date.
                l_s_range-high = l_last_date.
                l_s_range-sign = k_sign_inclusive.
                l_s_range-opt  = k_option_between.
                APPEND l_s_range TO e_t_range.
              ENDIF.
    Hope this example helps..

Maybe you are looking for

  • XI 3.0: Startup/Shutdown problem

    Hi everybody. In our scenario we have a JDBC Sender channel: we noticed that when the XI machine is stopped/restarted (without stopping the sender channel before)we have some error in the firsts polling cycles: that is, it seems that the Adapter is a

  • How to build LOV based on colon deliminated values in table?

    Hi All, I have a CUSTOMERS table with a column TYPES. This column stores colon deliminated values coming from a standard shuttle element eg.: CUSTOMER_NAME   TYPES Customer 1      1:2:3 Customer 2      2:3:4I need to build a query which will return m

  • Business One Reports

    Somebody knows a report add-on for SAP Business One ?. Beyond the PLD and XL Report. thanks William.

  • MacBook Pro retina display - BlueTooth interferring with my WiFi conncetivity

    MacBook Pro retina display about 3 years old - when I turn on BlueTooth, it interfers with my WiFi conncetivity causing the browser to freeze while navigating pages on the web

  • Date trouble

    Hi, I am using SuSe 10 as my os and am also using BlueJ for program development. My Java version is java-1.5.0-sun-1.5.0_03 Here is the part of code that is giving me some trouble. //this is for checking how long since last time prices were updated