Advancing the APEX by 'Next year' calendar year or "Prev".

I have a standard calendar, and I added two buttons:

[< < Prev] and [next > >], on each side of the [< Prev] and [Next >] buttons that currently exist.

I want these two new buttons to advance the calendar by 'years' not 'months '.

I am new to APEX and SQL, but I'm learning! My first thought is, duplicating the existing 'next' and 'Prev' process on the page that currently advancing the calendar in 1 month and progress in 12 months.

The problem is, when I look at the source of these buttons, they point to the following processes as appropriate:

htmldb_util.increment_calendar;
htmldb_util.decrement_calendar;

I can't find where this 'process' resides in the file system, or how it's pass the data to the process (for example, the 'Next' process should tell the htmldb_util.increment_calendar function to increment the Px_CALENDAR_DATE of 1 month, and the 'Prev' process must decremrement by 1 month.

Any ideas on how to a htmldb_util.increment_calendar use of increment 12 months, or to copy the process and change to advance in 12 months?

Appreciate any ideas (although it seems that this should have been a standard).

An alternative, a way to use the format "Date Picker" (where you select the month AND YEAR), and then select a button 'Go '?

In addition, appreciate any ideas!

KSL

Published by: leonhardtk on March 19, 2009 14:03

Hello

Sorry, perhaps I should have explained the SQL code of the selection list of P2_YEAR, but glad you worked on it! For others, this is just a quick way to create a digital sequence - here is the text of presentation on this topic: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries003.htm#sthref3139]

Andy

Tags: Database

Similar Questions

  • Duration of absence form to change the next years accumulation

    Hello, I have this little problem. The formula BG_ABSENCE_DURATION calculates correctly for me for the current year. But lets say to my request to leave extends over more than one year, namely from December 29, 2012 to January 2, 2013, my formula removes 5 days of accrual for current (2012). How can I remove 3 days of accrual accounting 2012 and 2 days of 2013 of accumulation? I've already calculated duration of th for the current and next year in my formula, the problem is how to recognize by oracle.
    So I would have something on vacation from December 29, 2012 to December 31, 2012. And then another leave annual element since January 1, 2013, to January 2, 2013?
    Thank you very much.

    Yes, this is a common problem. You have several alternatives, including the complexity of nothing to the extension of the technique:

    (1) Nothing (easy!). Yes, 3 additional days are taken off this year, which could take the employee in a negative balance. But who will be postponed when you run Report, so it nets out once you get to the next year. That's what I usually do: zero customization.
    (2) If you own work schedules in Oracle and the duration of absence is calculated automatically and employees cannot override, you can build and run a custom program that splits the absence in two, using the work schedule for the calculation of each side of the year.
    (3) you can prevent employees from that incoming first with a hook of the user, instead asking them to enter two separate absences.
    (4) as a matter of procedure, you can ask people not to do it and have a regular report on exceptions and deal with them manual business process (e.g., liaising with employee to separated)
    (5) you could build a SOUL rule that routes the absences covering calendar year to an additional approver that refers to the absence of correction, asking them to separate out.

  • text box than auto next year

    I have created a form of EOY exam.

    I have a bot to text with the date formatted as this year "yyyy", called "current year".

    I need a text box which automatically generates the year next 'yyyy', called 'next year '.

    Can someone help me with the script for this?

    Thank you

    Use the Simple field Notation option in the calculation of the field tab 'next year' with this code:

    current\ year + 1

  • Find the first day of the third quarter of next year

    Hello

    I'm writing a sql to find "the first day of the third quarter of the year (from the current year) next»

    I am able to get the first and the last day of the current quarter:

    Select trunc (sysdate, 'Q'), trunc (add_months (sysdate, + 3), 'Q')-1 double

    But, how to find the first day of the third quarter of the year next (from the current year) based on any date entry (i.e. sysdate)

    for example if my entry date = 12/01/2001 should be released 07/01/2015

    If my entry date = 07/04/2005 should be released 07/01/2015

    If my entry date = 20/02/2013 should be released 07/01/2015

    ... etc.

    Thanks in advance

    Hello

    The 1st day of the 3rd quarter of next year is:

    ADD_MONTHS (TRUNC (SYSDATE, 'YEAR')

    18 = 12 + 6

    )

    TRUNC (SYSDATE, 'YEAR') is the 1st day of the 1st quarter of this year

    The first day of the new year is 12 months after that, and the first day of quarter 3 is another 6 months after that.

    user634169 wrote:

    ... But, how to find the first day of the third quarter of the year next (from the current year) based on any date entry (i.e. sysdate)

    for example if my entry date = 12/01/2001 should be released 07/01/2015

    If my entry date = 07/04/2005 should be released 07/01/2015

    If my entry date = 20/02/2013 should be released 07/01/2015

    ... etc.

    Thanks in advance

    You did some errors above?

    If the effective date in 2001, why is the output in 2015, not 2002?

    If the output is based only on the date of the day (currently in 2014), why even mention a start date?

  • Vista is that advancing the date of years in the future after this year _ reset

    Vista alone, advancing the date for the coming years (example 2073). After reset date it's OK for a while, then he returned to a far later date.

    Hello

    How to fix synchronization of time Internet - add your own time server
    http://www.edbott.com/weblog/?p=1779

    Dealing with Windows Vista time sync problems
    http://www.howtogeek.com/HOWTO/Windows-Vista/dealing-with-Windows-Vista-time-sync-problems/

    Synchronize your clock with time servers Internet from the Vista command prompt
    http://www.howtogeek.com/HOWTO/Windows-Vista/sync-your-clock-with-Internet-time-servers-from-the-Vista-command-prompt/

    Time synchronization on Windows XP and Vista with Internet
    http://www.techexams.NET/blogs/jdmurray/synchronizing-the-time-on-Windows-XP-and-Vista-with-the-Internet/

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Apex showing Buddhist year (Thai)

    Hello

    I'm trying to migrate my application at the Apex. The problem is, I can't find a way to display the component 'year' in the column 'Date' as Buddhist year (B.E.). The Bhuddist year is simply the Gregorian year + 543, e.g. 2011 is 2554 in this system.

    I have looked on the setting of globalization, but could not find anything related to the culture setting...

    Is it possible to add quietly 543 in the component 'year' just before be displayed to the user? And subtract 543 of the entrance, just before it is saved in the database?

    Thank you very much!

    >
    I'm trying to migrate my application at the Apex. The problem is, I can't find a way to display the component 'year' in the column 'Date' as Buddhist year (B.E.). The Bhuddist year is simply the Gregorian year + 543, e.g. 2011 is 2554 in this system.

    I looked on the setting of globalization but could not find anything related to the setting of culture
    >

    You want to set the main language of the application in any way is appropriate for your application, but as you say, it doesn't seem to be a way to directly specify the calendar system in the settings of the globalization of the APEX. Until someone with more knowledge globalization that Andy or I pick it up, affecting the calendar using ALTER SESSION system works.

    You can use an Application process that runs to what precedes on login

    It will not work as on the new app Instance processes run only once per session of the APEX, so this will only change the data session needed for the initial connection used, and when the page views using another connection in the pool that their calendar settings have been changed. The best place for code that must be executed for each connection to the database is in the security of private virtual database (DPV) attribute (Home > Application Builder > Application > shared components > change the security attributes):

    begin
      execute immediate 'alter session set nls_calendar=''Thai Buddha''';
    end;
    

    However, this gives me problems: I keep getting disconnected from the APEX Builder! I suspect that changing this setting on a database using the calendar Gregorian/UK NLS params is confusing session timeouts somewhere...

    So if your database is not configured to work with the thai Buddha calendar, it may be more prudent to change the session for the duration of the page only show submit and reset subsequently. Try to use enforcement procedures at points of execution on load: before header and on submit: after presentation Page - before the calculations and Validation to set the thai calendar and On Load: after Footer (footer template) and on submit: after presentation Page - after calculations and Validations to reset Gregorian?

  • Worried about El Cap have 10.7.5 installation. TurboTax will not support 10.7.5 next year.

    Hello, I have an iMac with iOS 10.7.5. This year, when I installed TurboTax, he said that next year, I won't be able to use with my current iOS. By looking at the sides of the El Cap iOS, it seems there are almost as 1 star there are a 5 star. That worries me. Apple is working to resolve the problems raised by the community?  Thank you

    So far, none of my Mac has a problem with El Capitan. Don't have a Mac, I help support users encounter problems.

    The vast majority of users who have problems have questionable third-party software installed on their Macs, which claims it will speed up, clean, or increase the security of your Mac. I have none of the software on your Mac, I doubt that you will have problems.

    If you wish you can download and install EtreCheck from http://etrecheck.com/

    Run it and post the report here. With the EtreCheck report, we will be able to analyze your Mac and suggest how he will do with El Capitan.

  • Firefox cannot connect to the Forums unless I put the date system 1 year before

    I recently had some problems with my system clock and had to reset the time. but now I can not connect on any forum unless I put time in the former position (1 year) otherwise I want her back to the login screen.

    I had this problem twice before and found a solution, but I only am not able to find solutions Ive had before.

    In addition, I'm not able to remove the plugin from Neptune on my firefox.

    You may need to clear all cookies.

    • 'Delete Cookies' of sites that cause problems: Tools > Options > privacy > Cookies: "show the Cookies".
    • "Clear the Cache": Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
  • iMac 4K, photoshop, flashing, flashing in black using brushes... someone knows how to fix this bug? Thank you in advance! and happy new year guys!

    iMac 4K, Photoshop flashing, flashing in black using brushes... disgusting question that kills the concept of purchase iMac for serious Photoshop work... someone knows how to fix this bug? Thank you in advance! and happy new year guys!

    Do you use a 10.11 OSX. * compatible version of Photoshop? At this stage, it would Photoshop CC.

  • How to find the first day of the month following two years one year from now?

    Hello

    I need to find the first day of the month following two years ago, based on the current date.

    For example: If today is the 31/08/2015 so I need to find the date range between 31/08/2015 and on 09/01/2013. How can I write an SQL which allows to automate this calculation instead of hard-coding the values. Please do help me out with this so that I can build the SQL that can produce the desired result.

    Thank you

    Dhilip

    find the start of the month - 2 years in advance, early - 2 years + 1 months in advance and go back 1

    Select trunc (add_months(sysdate,24), 'MM'), trunc (add_months(sysdate,25), 'MM') - 1 double;

  • Display all the months in a year using sql

    Hello

    Hi guys I need to generate all the months in a year as

    January

    February

    .

    .

    .

    .

    .

    December

    I need to use this function,

    so do me a query to generate months

    Thanks in advance

    Select to_char (to_date(level,'mm'), 'fmMonth') month

    of the double

    connect by level<=>

    /

    MONTH
    ---------
    January
    February
    March
    April
    May
    June
    July
    August
    September
    October
    November

    MONTH
    ---------
    December

    12 selected lines.

    SQL >

    SY.

  • I need to cancel my cc to adobe and do not auto renew it for next year

    I have to cancel my plan of creative photography of Cloud (a year, paid in advance), the serial number is:13332973925

    Hello

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Please go through the Adobe - General conditions of subscription as well.

    Kind regards

    Sheena

  • I bought Creative cloud individual training MAC &amp; WIN 12MTH membership but will not install it until next year it will still be valid then?

    I bought Creative cloud individual training MAC & WIN 12MTH membership but will not install it until next year it will still be valid then?

    Hello

    Please visit the following link:

    Using creative cloud | Creative cloud / Common Questions

    This should help answer your request, let us know if this helps.

    Kind regards

    Bani

  • How to set a dynamic column to count the quarter of each year?

    Lets see the result which now displayed:
    YEARS MONTHS SUMMONTH SUMYEAR SUMQUARTER
    ----- ------ -------- ------- ----------
     2009 Jan      127994 1766166     449652 
     2009 Feb      168106 1766166     449652 
     2009 Mar      153552 1766166     449652 
     2009 Apr      160329 1766166     438913 
     2009 May      137605 1766166     438913 
     2009 Jun      140979 1766166     438913 
     2009 Jul      148606 1766166     435283 
     2009 Aug      150390 1766166     435283 
     2009 Sep      136287 1766166     435283 
     2009 Oct      149529 1766166     442318 
     2009 Nov      153268 1766166     442318 
     2009 Dec      139521 1766166     442318 
     2010 Jan      124670 1721212     407181 
     2010 Feb      139278 1721212     407181 
     2010 Mar      143233 1721212     407181 
     2010 Apr      149518 1721212     444112 
     2010 May      152292 1721212     444112 
     2010 Jun      142302 1721212     444112 
     2010 Jul      149125 1721212     412855 
     2010 Aug      130328 1721212     412855 
     2010 Sep      133402 1721212     412855 
     2010 Oct      157754 1721212     457064 
     2010 Nov      137078 1721212     457064 
     2010 Dec      162232 1721212     457064
    The problem is about how Dynamic a new column called 'Q_count' to count each displayed line belong to which quarter of the year?
    In addition, she repeats once again next year.

    For example:
    * Jan - Mar 2009 will show "q1", Apr - Jun will display 'q2'... and 2010 Jan - Mar, he will again show "q1" and so will guess

    Here is my sql I use:
    select years,months,summonth,sumyear,sumquarter
    from(
    select years,months,summonth,sumyear,
            sum(sumhour) over(partition by years || to_char(ym, 'Q') order by years || to_char(ym, 'Q')) sumquarter,ym
            
    from(
    select years, months, days, hours, mins, sumHour, SUM (sumHour) OVER (PARTITION BY years,months,days) sumDay, SUM (sumHour) OVER (PARTITION BY years,months) sumMonth, SUM (sumHour) OVER (PARTITION BY years) sumyear, 
    to_date(years || months, 'YYYYMon', 'NLS_DATE_LANGUAGE=American') ym
    
    from (SELECT x.years, x.months, x.days, x.hours, x.mins, sum(x.value) as sumHour
    FROM xmltest, 
    XMLTABLE ('$d/cdata/name' passing xmldoc as "d" 
       COLUMNS 
      years integer path 'year',
      months varchar(3) path 'month',
      days varchar(2) path 'day',
      hours varchar(2) path 'hour',
      mins varchar(2) path 'minute',
      value float path 'value'
      ) as X 
      group by x.years, x.months, x.days, x.hours, x.mins
      order by x.years, x.months, x.days
      )
      )
      )
      
      group by years,months,summonth,sumyear,sumquarter,ym
      order by ym
    Thanks everybody helps me!

    Hello

    TO_CHAR ( TO_DATE (months, 'Mon')
            , '"q"Q'
            )
    

    Returns a string of characters 2 'T1', '2', "q3" or "q4" as you asked for it.
    You can use it in your main SELECT clause.

  • Referring to the value of previous years

    Hello

    I have a calculation where I refer to the previous value. Using the function @prior is the prior value within this year there. But it does not work for next year, that is, the Member is not get calculated for next year. So I wrote a rule like that. Please post if this is the right way to do it, or is there another way. My period dimension consists of 52 weeks, rolling up to months, that roll up to quarters, then half the year, then the year.

    Mnpr_Available_L1_L2
    (IF (@ISMBR (& CurrFiscalYr))
    (@PRIOR ("Mnpr_Available_L1_L2") + @PRIOR ("Attr forced/Mov Out (see the Sub-)" ")) +"Go-Live ";
    ELSE IF (@ISMBR (& NextFiscalYr) AND @ISMBR (Wk1))
    (& CurrFiscalYr-> Wk52-> 'Mnpr_Available_L1_L2' + & CurrFiscalYr->-> Wk52 "Attr forced / Out Mov (see the Sub-) '") + "Go-Live";
    ELSE IF (@ISMBR (& NextFiscalYr) AND NOT @ISMBR (Wk1))
    (@PRIOR ("Mnpr_Available_L1_L2") + @PRIOR ("Attr forced/Mov Out (see the Sub-)" ")) +"Go-Live ";
    ENDIF ;)

    Kind regards
    Brig.

    I advise you to separate datacopy piece in another fix. Your script copy data unnecessarily 52 times.

    FIXMnpr_Available_L1_L2)
    DATACOPY & CurrFiscalYr-> Wk52 to & NextFiscalYr-> begbalance;
    ENDFIX

    DIFFICULTY (& CurrFiscalYr, "Attr forced/Mov Out (see the Sub-)" ")
    DATACOPY & CurrFiscalYr-> Wk52 to & NextFiscalYr-> begbalance;
    ENDFIX

    I think that, after copying the balance opening balance, you can use straight @prior without any specific conditions on the first month.

    See you soon,.
    Alp

Maybe you are looking for