How to calculate age based on user registration date of birth?

Hi there-

I am working on a form where the user will enter both their date of birth and date of beginning of employment. I need to create two fields that will calculate their age based on their date of birth and their total number of years of service, based on their start date.

Someone at - it a good script that make these calculations? I normally use FormCalc, but am open to Java, if there is a simpler solution.

Thank you

Erin

If you use fields to date, tap the calculate text fields, you can put something like

if ( not DateTimeField1.isNull ) then
    var dateofBirth = Date2Num( DateTimeField1, "YYYY-MM-DD" )
    var currentDate = Date()

    var years = ( currentDate - dateofBirth ) / 365
    $ = Floor( years )
else
    $ = ""
endif

will be calc, the age, while something similar for startdate

if ( not DateTimeField2.isNull ) then
    var startDate = Date2Num( DateTimeField2, "YYYY-MM-DD" )
    var currentDate = Date()

    var years = ( currentDate - startDate ) / 365
    $ = Floor( years )
else
    $ = ""
endif

Tags: Adobe LiveCycle

Similar Questions

  • How to display records based on user input

    Hi all

    On the front side, there are two date fields, for example, beginning and end. Whenever the user enters the start date and end date, I want to display the dates from the start date of
    date of the end all what the user has entered.

    For example, the user enters start date: 15/01/2012 and end date: 19/01/2012
    I want to display like this * 15/01/2012 01/16/2012 01 2012 17 01/18/2012 01/19/2012 *.


    Thanks in advance.

    Thank you
    PAL

    Select sysdate + rownum-1
    Double log in 1 = 1 and rownum<= ((sysdate+7)-="">

    put to sysdate startdate and enddate sysdate + 7 as & startdate and enddate &

  • How to calculate the number of days between dates

    How can I determine the number of days between 2 dates? Say today and 10/07/46

    Thanks Bob

    You could do it like this:

    Photoperiod var = 1000 * 60 * 60 24; number of ms in a day

    var today: Date = new Date();

    var every time that: Date = new Date (1946,6,10);

    var diff = Math.floor((today.getTime()-whenever.getTime())/dayLength);

    trace (diff)

  • Lost dynamique31 by car and replaced it.  How can I get back Dreamweaver and registration data?

    Dreamweaver was lost when the hard disk is dead.

    Hello Debra,

    In addition to the trick of Nancy, you should take a look at database of Adobe, to see what is stored/recorded on your accounts. You will find general information on your account Adobe https://www.adobe.com/account.html > see My productsView all the > these products are associated with your Adobe ID > name > serial number.

    [And to find your serial number have a look here (as Nancy mentioned above): find your serial number > I lost my serial number >] see comments.

    The last time Adobe suggests so too this activation https://helpx.adobe.com/contact.html?step=ZNA_downloading-installing-setting-up_licensing-.

    Hans-Günter

  • How to calculate the load time, max - min date query

      CREATE TABLE TEST ( GID VARCHAR2(100 BYTE), SGID VARCHAR2(100 BYTE), PID VARCHAR2(100 BYTE), DATES TIMESTAMP (6) );
    
    REM INSERTING into TEST
    SET DEFINE OFF;
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1000','ABC',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1001','BCD',to_timestamp('24-AUG-13 05.21.46.491000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1002','CDE',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1004','EDF',to_timestamp('23-AUG-13 05.22.20.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1003','FEG',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1001','GHI',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1006','JKL',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('3','1007','LMN',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('3','1001','OPQ',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    

    Hello

    I need a sql query which gives me the time taken to load the records ie., Max date less date min. I ran a query that gives me the result "0 23:59:26.491" below.

    select (max(DATES) - min(DATES)) from test;
    

    When I apply the same logic in Peoplesoft enterprise manager, it generates the sub query and throw me the "ORA-01722: invalid number" error.

    select max(TO_CHAR(cast((DATES) as timestamp),'YYYY-MM-DD-HH24.MI.SS.FF'))
    -min(TO_CHAR(cast((DATES) as timestamp),'YYYY-MM-DD-HH24.MI.SS.FF'))
    from test; 
    

    Can you please modify the above query?

    user11872870 wrote:

    1. CREATE TABLE TEST (VARCHAR2(100 BYTE), VARCHAR2(100 BYTE), PID VARCHAR2 (100 BYTE) SGID GID, DATES TIMESTAMP (6));
    2. INSERTION of REM in TEST
    3. TOGETHER TO DEFINE
    4. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1000', 'ABC', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    5. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1001', "BCD", to_timestamp (24 August 13 05.21.46.491000000 PM ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    6. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1002', "COE", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    7. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1004', "EDF", to_timestamp (05.22.20.000000000 PM Aug 23, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    8. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1003', "FEG", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    9. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1001', 'GHI', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    10. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1006', 'JKL', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    11. Insert into TEST (GID, SGID, PID, DATES) values ('3 ', ' 1007', "LMN", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    12. Insert into TEST (GID, SGID, PID, DATES) values ('3 ', ' 1001', "Professions", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));

    Hello

    I need a sql query which gives me the time taken to load the records ie., Max date less date min. I ran a query that gives me the result "0 23:59:26.491" below.

    1. Select (max (DATES) - min (DATES)) of the test;

    When I apply the same logic in Peoplesoft enterprise manager, it generates the sub query and throw me the "ORA-01722: invalid number" error.

    1. Select max (TO_CHAR (cast ((DATES) as timestamp),'YYYY-MM-DD - HH24.MI.)) SS. FF'))
    2. -min (to_char (Cast ((dates) as timestamp),'YYYY-MM-DD - HH24.MI.)) SS. FF'))
    3. of the test;

    Can you please modify the above query?

    1. SELECT max (cast (DATE) as date)-mIN (cast (DATE) as date) test;
  • Calculate age with date of birth only? OBIEE

    I would like to calculate age based on DOB.  I get a syntax error.  Not familiar with the proper syntax of PL/SQL for nesting of IF/THEN statements.  Any help would be fantastic:

    @{Current_Date} = current Date

    "Employee personal attributes. "" Date of birth of the employee ' = DOB

    WHEN IFNULL("Employee Personal Attributes"."Employee Birth Date", 0)<> 0 THEN
        
        WHEN MONTH("Employee Personal Attributes"."Employee Birth Date") <  (Month(@{CURRENT_DATE})) Or (Month("Employee Personal Attributes"."Employee Birth Date") = Month(@{CURRENT_DATE}) And Day("Employee Personal Attributes"."Employee Birth Date") <= Day(@{CURRENT_DATE})) Then
        
        TIMESTAMPDIFF(SQL_TSI_YEAR,"Employee Personal Attributes"."Employee Birth Date", @{CURRENT_DATE})
    
        Else
    
        TIMESTAMPDIFF(SQL_TSI_YEAR,"Employee Personal Attributes"."Employee Birth Date", @{CURRENT_DATE})-1
        
        End
        
    ELSE
    
    0
    
    End
    

    Any help would be much appreciated!

    Hello

    I managed to find a date column with some null on my test platform (SA406).

    The formula I posted without the NULL case already return 0 when date is NULL (was not really planned).

    If you want to use a CASE IFNULL WHEN ("personal attributes used". "" Employee Date of birth»(, 0) <> 0 THEN you'll get an error: "

    [nQSError: 59021] CASE conditional expressions have correspond to data types.

    So 2 options:

    CASE WHEN IFNULL ("personal attributes used". "" Date of birth of the employee»(, CURRENT_DATE) <> CURRENT_DATE THEN "

    TIMESTAMPDIFF (SQL_TSI_YEAR, "personal attributes used" "." ") Date of birth of the employee", CURRENT_DATE) + BOX WHEN DAYOFYEAR ("personal attributes used". "Date of birth of the employee") > DAYOFYEAR (CURRENT_DATE) - THEN 1 ELSE 0 END "

    ELSE 0 END

    or

    TIMESTAMPDIFF (SQL_TSI_YEAR, IFNULL ("personal attributes used". "" Date of birth of the employee "(, CURRENT_DATE)(, CURRENT_DATE) + BOX WHEN DAYOFYEAR (IFNULL ("personal attributes used"." Date of birth of the employee", CURRENT_DATE)) > DAYOFYEAR (CURRENT_DATE) - THEN 1 ELSE 0 END

    Both did the same thing.

  • How to calculate the polynomial graphic adjustment of waveform

    Hi all

    I am new to lab - view so would need a little assistance in one of the problem I have right now.

    My problem is: how to calculate the polynomial graph of waveform data adjustment? I need to convert the waveform to XY graph data, and then use the polynomial vi made integrated to calculate the fitting?

    Detail: My problem is that I have waveform graph, I calculate the vertices and the Valley, but because of the noise, my peaks and Valley detection is sometimes not exact, so to smooth the chart that I must apply the polynomial fit.

    If anyone can help me in this, I'll be very grateful.

    Thanks in advance

    Hi Omar,.

    have you seen the suggestion of Lynn above?

    You already have the values of Y (your table). Now, you need build the table of X as indicated, only to replace the value of dt with your spacing from point to point. Somewhere in your code, you know that the value that you have an x-axis indicated in milliseconds...

  • How to calculate stock data aging

    How to calculate inventory aging of data:
    _*PRS_DTE*_     _*PRD_COD*_     _*PRD_TYP*_     _*DRB_QTY*_     _*CRD_QTY*_
    15/07/2011     2012001234           1                           100                              0
    15/08/2011     2012001234           1                           200                              0
    16/08/2011     2012001234           1                           0                              50
    15/06/2011     2012001234           1                           125                              0
    15/09/2010     2012001234           1                           150                              0
    On top of the data, balance the stock of data is produced * 525 * by subtracting CRD_QTY from DRB_QTY. Now his result of aging from 18 September 2011 "should be like this:"
    _*PRD_TYP*_     _*PRD_COD*_        _*90 Days Stock*_     _*Less than 90 and from the start of year Stock*_   _*2010 Stock*_   _*2009 Stock*_   ...and so on upto previous 5 years
             1                2012001234                   300                                            125
             100                    0               ...
    Can I get this SQL result? I do not want to write cursors and loops to get the above given the result even if it is possible.

    Hello

    kamranpathan wrote:
    Dear Frank, thank you again for an impeccable answer. Sorry for a delay feedback coz I was sick of a fever. I tested the provided query u n that has worked well. but I did not understand then u points marked the end of the answer of the urs:

    Prs_date is a DATE: don't try to INSERT a VARCHAR2 value into a DATE column.
    

    If 20/SEP/2011 ' is not the correct format, so what fix the Date Format?

    In Oracle SQL, anything inside single quotes is a VARCHAR2. (There is an exception; I'll be back later.)
    "a,"
    '2' and
    "the square root of 9'.
    are all inside single quotes, so they are VARCHAR2s, not numbers. A human being who sees these chains might think of figures, but they are still VARCHAR2 strings and not numbers.
    20/SEP/2011 '.
    'September 21, 2011', and
    'Yesterday '.
    are all inside single quotes, so they are VARCHAR2s, not DATEs. A human being who sees these chains might think of DATEs, but they are still VARCHAR2 channels and not dates.
    When you use the wrong data type (for example, when you use a VARCHAR2 in a place where we expect a DATE) Oracle will try niot very hard to trigger an error. It will try to convert a DATE VARCHAR2. Sometimes it can work, other times it cannot. It is never a good idea to expect that such implicit Conversion will work; You must always use the correct data type instead. For example, the prs_dte of the aging_test table column is a DATE. When you say:

    INSERT INTO aging_test (prs_dte) VALUES (x);
    

    Oracle expects x as a DATE, so do not put some other datatype as a VARCHAR2 in place of x.
    The TO_DATE function returns a DATE, so a correct is to INSERT a line in aging_test:

    INSERT INTO aging_test (prs_dte) VALUES (TO_DATE ('20/SEP/2011', 'DD/MON/YYYY'));
    

    This is an example of a +Explict Conversion +. The TO_DATE function expects two arguments to be VARCHAR2s, and that's exactly what they are in the example above: the two arguments are of the literal string, enclosed in single quotes.

    There is an exception, as I mentioned. When the DATE keyword (or TIMESTAMP) comes immediately before the first single quote, then single quotes, everything that comes between them and the keyword itself form a DATE literal (or a literal STAMP, but I'll just talk about DATEs in the future). The stuff between single quotes must be in YYYY-MM-DD format, otherwise you will get an error. So another acceptable way to enter a row in the aging_test table is:

    INSERT INTO aging_test (prs_dte) VALUES (DATE '2011-09-20');
    

    It is only as good as in the example above (those used TO_DATE), and has the same results. You can use any you like.

    the age_prd can never be ' 'Less than 90 and from 01/01/2011'. 
    

    Yes my dear, in my case that I really need this period of aging, I don't know why, but sometimes, being a service Department (IT), we fullfuil insensitive logic of user.

    Remember how BUSINESS works.
    When you say

    CASE
        WHEN  c1  THEN  r1
        WHEN  c2  THEN  r2
    END
    

    the c1 State is evaluated first. If c1 is set to TRUE, then the CASE expression returns r1, and the rest of the CASE expression is not evaluated.
    What happened in this CASE of expression, where x is a NUMBER?

    CASE
        WHEN  x > 0  THEN  'Positiv'
        WHEN  x = 2  THEN  'Zwei'
    END
    

    This CASE expression will never return 'Zwei', because the condition "x = 2" is just a special case of the prior"x > 0". If this CASE expression is executed when x = 2, then the 'x > 0' condition is evaluated, it turns out be TRUE, and "Positiv" is returned. The following condition is not even considered.
    In the expression you have posted:

    `        Case
                 When Age.Prs_Dte Between (Sysdate - 90) And Sysdate Then
                           '90 Days'
                 When Age.Prs_Dte Between (Sysdate - 61) And Trunc(Sysdate, 'RRRR') Then
                           'Less than 90 and from 01/01/2011'
    ...
    

    the value 'less than 90 and since 01/01/2011' will never be returned. the condition "Age.Prs_Dte between (Sysdate - 61) and Trunc (Sysdate, 'RRRR') ' is a more narrow condition that" Age.Prs_Dte between (Sysdate - 90) and Sysdate. Any SYSDATE value which translates by "Age.Prs_Dte between (Sysdate - 61) and Trunc (Sysdate, 'RRRR')" TRUE will as a result in the previous state, "Age.Prs_Dte between (Sysdate - 90) and Sysdate" being TRUE.

    If you need an expression BOX which will return sometimes 'less than 90 and since 01/01/2011', then do not use the one you posted. I don't know what you should use, because I do not understand your business needs. Post some sample data (CREATE TABLE and INSERT statements for a table with the columns prs_dte and sys_date), display the results you want sample data and explain how you get these results from these data, and someone will help you write a CASE expression that produces these results.

    Only use "date3 BETWEEN date1 AND date2" when date1 and date3 are always midnight. 
    

    I really did not understand what point completely.

    Sorry, I wasn't very clear. What I meant is that a lot of people make mistakes in using BETWEEN with DATEs, because they forget that all DATEs include hours, minutes, and seconds. If the hours, the mionutes and seconds all arrive at 0, then BETWEEN works the way they expect. When the hours, the minutes and seconds are not all 0, then these people are often confused.
    For example, in my time zone is currently about 17:58 September 23, 2011, so at present, nor this condition:

    SYSDATE  BETWEEN  TO_DATE ( 'JAN/01/2011', 'MON/DD/YYYY')
             AND      TO_DATE ( 'SEP/23/2011', 'MON/DD/YYYY')
    

    or this condition

    SYSDATE  BETWEEN  TO_DATE ( 'SEP/24/2011', 'MON/DD/YYYY')
             AND      TO_DATE ( 'DEC/31/2011', 'MON/DD/YYYY')
    

    is set to TRUE. Which can be confusing.
    If change us one to tell us "SEP/24"instead of "SEPT. 23." /', then it would be a point in time (that is midnight on 24 September) when the above two conditions were TRUE. Which can be confusing.
    Similarly, if we leave "SEP/23 ' in the first condition and change the second condition to say" SEP/23 ' rather than ' SEP/24 ', then there is also a point in time when both conditions are TRUE.»»» Which can be confusing.
    I admit it is subtle and can be difficult to understand if you don't really understand how work DATEs.
    If all goes well, it is easy to understand: don't use not BETWEEN with DATEs. The results are not what you expect if you don't really understand how work DATEs.

  • How to calculate the sum of two digital form fields based on the selection of the checkbox.

    I have a form in Acrobat Pro who needs a custom calculation. How to calculate the sum of two digital form fields based on a selection of the checkbox. I have three number fields. Field-A and B are simple one or two digits. Field-C is the sum, or the total field. I want to field-C have a control box which, when turned on and off, just gives a. gives the sum of A + B

    _ Field - 2

    _ Field - A 4

    [check] _ _ field - 6 C

    [disabled] _ _ field - 2 C

    Thank you

    The custom field C calculation script could be:

    (function () {
    
        // Get the values of the text fields, as numbers
        var v1 = +getField("A").value;
        var v2 = +getField("B").value;
    
        // Set this field's value based on the state of the check box named "CB"
        if (getField("CB").value !== "Off") {
            event.value = v1 + v2;
        } else {
            event.value = v1;
        }
    
    })();
    

    Replace 'A', 'B', and 'CB' with the real names of the fields.

  • How to calculate the age?

    Hi again!

    I would like to calculate an age registered users using the date of birth entered by the user. I want to show that age on the profile of the user.

    Does anyone know an easy way to do this?

    If dateOfBirth variable with their date of birth then is as follows: -.

  • How to calculate the number of Avg based on month

    Hi all

    I want to calculate Avg based on averages of the month

    Ex: i have made Total column
    current month like July Thn avg = total/7.
    then even report working in October than avg time = total/10.

    Any help.

    Thank you

    You must specify a digital for parameter 2. The Substring function takes the source from character string parameters and the length of the unit. In my example it will take the value of the variable current_month and returns the characters of the 8th position for 2 characters (so character 8 and 9). For example, instead of 'Time' happening. "" Month "you must pass the literal number 8. So I think the actual code you need is:

    SELECT "Applications and financial accounts. "" Value "/ CAST (SUBSTRING (VALUEOF ("CURRENT_MONTH") OF 8 TO 2) as INT)"financial accounts and Applications.

    NB I'm assuming that the value that you want to divide by the number of current month is called "Applications and financial accounts. "" Value ", please change it's column that you never use.

    Please mark it as useful to the answer

  • How can I remove "the folder/Users/user/to/mygame doesn't exist." Terminal. Rises every time I launch Terminal.

    How can I remove "the folder/Users/user/to/mygame doesn't exist." Terminal. Rises every time I launch Terminal. I am a novice. Thank you very much.

    1. Please select from the menu bar Terminal

    ▹ terminal preferences... ▹ Profiles ▹ Shell

    If the run command box is checked, uncheck it or enter the command to run automatically (if any), each opening of a Terminal window. Note: this is not how you define a default shell.

    2. If step 1 does not resolve the problem, see below.

    Back up all data.

    Select

    New Shell command ▹

    in the Terminal menu bar. Uncheck the box marked

    Run the command inside a shell

    If it is enabled.

    Copy and paste the following line into the text box that appears, and then press return:

    /bin/mkdir disabled_shell_files

    Close the Terminal window that opens. Repeat with this line:

    /bin/mv .profile .bash_history .bash_profile .bashrc .inputrc disabled_shell_files

    History Shell and former initialization files will be saved in a directory named "disabled_shell_files" at the top level of your home directory. It is normal that some of these files do not exist, and therefore, you will get error "no file".

    Close the window and open a new test.

    You may already know that files with name starting in '. ' are not visible in the Finder by default. So, if you open the folder that you created in the Finder, it will appear as empty, even if it is not. If you need to recover a portion of the data in the files of the shell, use a shell such as nano-based text editor (1). Make sure that you're not recreating the problem. Otherwise, you can delete the folder.

  • Series Packet Question: How to calculate CRC

    Hi all, I have tryied to find an answer on how to calculate the CRC on a RS232 packet received, its really driving me crazy!

    im a beginner, learned how to use labview read on different forums, and I had managed to build really good applications, but im stuck in this, hope someone can help me...

    OK, so im constantly receive packets of 15 bytes:

    A5 09 0C 00 61 05 1F A0 10 00 05 00 04 05 3F

    A5 09 0C 00 61 05 10 00 05 0C 2F 03 A0 1F-3F

    A5 09 0C 00 61 05 10 09 05 09 04 09 A0 1F-3F

    the supplier for material gave me the following code to calculate the CRC:

    Control CRC program:

    #define unsigned char uchar
    UCHAR CRC_Bitwise8 (uchar * buf, uchar size)
    {
    UCHAR i, j, b;
    UCHAR crc = 0;
    for (j = 0; j<>
    {
    b = * buf ++;
    for (i = 0; i<>
    {
    If (((CRC^b) & 0x01)! = 0)
    CRC ^ = 0x18;
    CRC > = 1;
    b >> = 1 ;
    }
    }
    return crc;
    }

    so my question is, how can we insert this code in labview? any example?

    Thanks in advance, this forum has really helped me learn labview in a practical way.

    You can use my code for the thread that I've referenced.  To play with a web version of my code go here. My code is based on the code on this Web site.

    My code to the following parameters:

    Calculation of the CRC: Other (specify)

    Order of the CRC: 8

    Polynomial CRC: 0 x 30

    CRC initial value: 0

    CRC XOR final value: 0

    Reflect the preprocessing of data: TRUE

    Match the data before Final XOR: TRUE

    In your messages, the A5 09 0c is certainly a header.  I think that the 00 following is also part of the header, but without the manual, I can't confirm.  00 will not affect the calculation of the CRC, in order to get the same results with it and without it.  So, in your first example, I use 61 05 3F 1E A0 00 05 00 04 10 and the result is 0x05.

  • How can I change account limited user account for the administrative account information

    Can you please help me find answer how to change account limited administrative user account information? I'm locked and I can not change any info because by mistake I select limited in my user account account.

    Hi sbhailal,

    See the Microsoft article below and try the steps mentioned, check if it helps you log in windows.

    How to connect to your Windows XP-based computer if you forget your password or if your password expires

    http://support.Microsoft.com/kb/321305

  • How to filter all records if user check all option in the box.

    Hi friend

    I created the search box to filter the report so I created check box for filtering and implemented agent under SQL query in the list of values

    SELECT NAME, CODE R FROM AGENT_MAS

    UNION

    SELECT 'ALL', 'ALL' D DOUBLE R

    and my area code are below

    SELECT AGENT, CODE, TYPE FROM AGENT_MAS WHERE (to_char (ARR_DATE, 'MM') > '04' = and to_char (ARR_DATE, 'MM') < = "12")

    and to_char (ARR_DATE, 'RRRR') =: P10_YEAR

    and ((: P10_AGENT is not null and (instr (': ' |: P10_AGENT |': ',' :'||)))) AGENT_CODE: ': ', 1) > 0)) or: P10_AGENT is null)

    and

    ((: P10_MARKET is not null and (instr (': ' |: P10_MARKET |': ',' :'||)))) MARKET_CODE: ': ', 1) > 0)) or: P10_MARKET is null)

    AND

    ((: P10_MONTHS is not null and (instr (': ' |: P10_MONTHS |': ',' :'|| to_char (ARR_DATE, 'MY'): ':', 1) > 0)) or: P10_MONTHS is null)

    GROUP BY AGENT

    filter work well, but I must add filter with 'EVERYTHING' if the user select EVERYTHING in the box, then all the registration should be filter.

    How to view all archives if user check all checkbox option.

    Thank you

    Hi Maxence,

    CORINE wrote:

    Hi friend

    I created the search box to filter the report so I created check box for filtering and implemented agent under SQL query in the list of values

    SELECT NAME, CODE R FROM AGENT_MAS

    UNION

    SELECT 'ALL', 'ALL' D DOUBLE R

    and my area code are below

    SELECT AGENT, CODE, TYPE FROM AGENT_MAS WHERE (to_char (ARR_DATE, 'MM') > '04' = and to_char (ARR_DATE, 'MM'))<>

    and to_char (ARR_DATE, 'RRRR') =: P10_YEAR

    and ((: P10_AGENT is not null and (instr (': ' |: P10_AGENT |': ',' :'||)))) AGENT_CODE: ': ', 1) > 0)) or: P10_AGENT is null)

    and

    ((: P10_MARKET is not null and (instr (': ' |: P10_MARKET |': ',' :'||)))) MARKET_CODE: ': ', 1) > 0)) or: P10_MARKET is null)

    AND

    ((: P10_MONTHS is not null and (instr (': ' |: P10_MONTHS |': ',' :'|| to_char (ARR_DATE, 'MY'): ':', 1) > 0)) or: P10_MONTHS is null)

    GROUP BY AGENT

    filter work well, but I must add filter with 'EVERYTHING' if the user select EVERYTHING in the box, then all the registration should be filter.

    How to view all archives if user check all checkbox option.

    Thank you

    To view all the archives, if the user has checked all THE option in the box, you will need to modify your report to:

    SELECT AGENT
        , CODE
        , TYPE
      FROM AGENT_MAS
    WHERE ( TO_CHAR(ARR_DATE,'MM') >= '04' AND TO_CHAR(ARR_DATE,'MM') <= '12' )
      AND TO_CHAR(ARR_DATE,'RRRR') = :P10_YEAR
      AND ( 1 = ( CASE
                    WHEN (:P10_AGENT IS NOT NULL AND (:P10_AGENT = 'ALL'))
                      THEN 1
                    WHEN (:P10_AGENT IS NOT NULL AND (INSTR(':'|| :P10_AGENT ||':',':'||AGENT_CODE||':',1) > 0 ))
                      THEN 1
                    ELSE
                      0
                  END ))
      AND ((:P10_MARKET IS NOT NULL AND (INSTR(':'|| :P10_MARKET ||':',':'|| MARKET_CODE||':',1) > 0 ) )  OR :P10_MARKET IS NULL )
      AND ((:P10_MONTHS IS NOT NULL AND (INSTR(':'|| :P10_MONTHS ||':',':'|| TO_CHAR(ARR_DATE,'MON')||':',1) > 0 ) )  OR :P10_MONTHS IS NULL )
    GROUP BY AGENT
    

    I changed the filter AGENT to include all THE option.

    I hope this helps!

    Kind regards

    Kiran

Maybe you are looking for