Displaying current month with all empty months

None of the answers I've seen for showing current month in a calendar has given a solid answer. So, here is my question. My objective is to display all calendar months rather they are empty or not, plus I want the calendar to start at the current month. I added coding to display a next month and previous month button, so you should be able to click next or previous month from the current month showing. I have the "Show All Empty Months" checked in the Display Options under Common Options and the start and end date are empty. I have a bind variable in my coding that defaults to the current month but it will not show an empty month. I get the "no rows returned" situation because it doesn't have anything in it. Is there a solution to showing all empty months?
Also, has anyone found a solution to hide/remove the default Next/Previous buttons? I read in one of the replies that this would be fixed in a forthcoming release. Is this true?
Thanks for any assistance.

The calendar works on a sql query result. I had done something similar to what you are looking for by spoofing the sql query to return rows for all the months which I am interested in. I had a query like the following.
select *
from scott.emp a , ( select (trunc(sysdate) - 7910 + rownum) dat from user_objects ) b
where b.dat = a.hiredate (+)
Hope you can do something similar to this.

Similar Messages

  • Create a table with all the months between two dates

    Hi all,
    I have a purchase table recording individual purchases. One of the fields is my Date field (date of purchase).
    I would like to create a table 'All_months' with two entries ('month_no' and 'month') which will be based on the first and last date in the purchase table. Assuming the first purchase recorded in my purchase table was on the 12th of January 2008, the table should have the following structure:
    month_no month
    1 12JAN2008
    2 12FEB2008
    3 12MAR2008
    It should continue in this fashion up-to the month where the last purchase was recorded.
    I have been struggling with creating the query that would do that for days now and can't find anything when asking Mr Google.
    Thanks,
    Chris

    Welcome to the forum!
    Here's one way:
    CREATE TABLE     all_months
    AS
    SELECT     LEVEL                    AS month_no
    ,     ADD_MONTHS ( first_date
                 , LEVEL - 1
                 )               AS month     
    FROM     (
              SELECT     MIN (date_of_purchace)     AS first_date
              ,     MAX (date_of_putchase)     AS last_date
              FROM     purchase
    CONNECT BY     LEVEL <= 1 + MONTHS_BETWEEN ( TRUNC (last_date,  'MONTH')
                                 , TRUNC (first_date, 'MONTH')
    ;Do you really need a table like this? Every time you change the data in the purchase table, you won't know if all_months is still accurate or not. You can derive all_months in a sub-query every time you need it, or make all_months a view instead of a table.
    Edited by: Frank Kulash on Jun 14, 2012 5:57 AM

  • [All Platforms][Playlists] Display current playlist with song

    If you are in a playlist(IE not currently saved usually found through discover) there should be a easy way to go back to that playlist without hitting the back button a bunch of times.

    Updated: 2015-07-01Hello!
    On which platform are you on?
    On desktop you can simply click on the album art in the bottom left to get to that playlist.
    On Android and iOS you should be able to click on the top bar in the Now Playing View to get to the playlist.
    Does that solve your request? :)

  • Photo settings displaying black preview with all pictures - please help!

    I started working on my first "real" movie last night - got got my iMac 2 weeks ago. Before I was just messing around trying to learn the software. I got 20 pictures done (out of 400), I know that doesn't sound like a whole lot-- got done, but anyways. Things were working and looking great! I was really starting to enjoy iMovie!
    Today however I went back to my computer, (didn't shut down iMovie last night) and now the preview screen of the image when you play with the Ken Burns effects in the photo settings isn't displaying the image, instead it's just displays a black screen. I tried this with a newly imported image and an image I had worked on last night using the Kens Burns effects, but it displays the same results... a black scree
    I have tried selecting all of the images, music and transitions copying them and thinking I could paste them into a new movie, but of it does the same thing in the new movie. I have also tried to import my movie into a new movie, shut down both iMovie and my computer. Nothing is working.
    Because I'm on a very tight deadline (Tuesday), I decided I would just start over completely. After I got 10 pictures done, it did it again in the new movie!
    I bought my imac because of all the great things people have told me about iMovie (I've only worked on Windows in the past) I really like my iMac but these problems have really frustrated me!!!
    Responses would be GREATLY appreciated!
    imac Mac OS X (10.4.8)

    It's not clear from your description whether this has happened, but be aware there's a bug in iMovie 6 that will cause the black screen after you empty the iMovie Trash.
    iMovie 6 (incorrectly) discards its copy of the source image when you empty the Trash. It stores the copy inside the project when you import the photo. After you empty the Trash the image is no longer available. You can't UPDATE the clip. When you do, it turns black.
    So if photos in the Photo list import properly but the photos of EXISTING clips are not updated correctly, that may be why. The solution is to not empty the iMovie Trash.
    In addition, it's necessary for the disk the project resides on to use the Mac OS Extended disk format. If you use an external drive that has a different format, iMovie can't properly save to the drive.
    It's also possible there are third-party iMovie plug-ins and QuickTime add-ons installed on your Mac causing problems for iMovie.
    Those factors are discussed here:
    http://discussions.apple.com/message.jspa?messageID=2920540#2920540
    Karl

  • Display current Step with API

    Hello,
    I am using LabVIEW 2009 AP1, and I am calling a TestStand 4.2 Sequence using the API. I am not using the Operator interface, as this is not a GUI, but a module that will just run a sequence.
    I essentially replicated the .NET calls listed here:
    http://forums.ni.com/t5/NI-TestStand/Calling-user-​created-Teststand-sequence-from-NET/m-p/703125?que​...
    Only with the LabVIEW activeX engine, properties and methods. Therefore I have references to the TS Engine, sequence file, process model and execution.
    What I need is access to the current step name. I don't need the whole sequence viewer, essentially just access to the "Step.Name" property at any specific time.I would guess this would be accessable through the execution reference, but I am unable to track it down. I am suspecting it will be getting a reference to a subproperty of the execution and then acting on that in someway, but I can't get there from here.
    Any ideas?
    Thanks,
    Tim
    Data Science Automation
    CTA, CLA, CPI
    SHAZAM!
    Solved!
    Go to Solution.

    Hi Tim,
    Just two other solutions:
    If you have a handle to your execution
    you could use Execution.GetThread() Note: You have check with property Execution.NumThreads how many there are present.
    lets hope there is only one!
    Access the thread, and get context with Thread.GetSequenceContext
    Now you should be able to access the name with SequenceContext.Step.Name
    Another solution to this stuff might be found there:
    http://forums.ni.com/t5/NI-TestStand/Is-is-possibl​e-to-retrieve-a-sequence-context-through-a-new/m-p​...
    linked to this: http://forums.ni.com/t5/NI-TestStand/Marshalling-t​he-IEngine-object/m-p/666852
    Hope this also helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • I just got my new retina display macbook pro with all the bells and whistles  I see that I have a port for a thunderbolt cable. What is a thunderbolt cable and what do I use it for or instead of

    What is a thunderbolt cable and what does it replace?

    Read this link:
    http://support.apple.com/kb/HT5219?viewlocale=en_US
    Ciao.

  • How can I populate my PC HD with all the files that are currently on my iPod Classic?

    I think I've changed PCs three times since I've had my iPod Classic 80 gb.
    I think because of this, I have lost copies of files on my PC along the way (probably some of them remained in the earlier PCs and never made it to my current PC) although everything still seems to be on my iPod. So, I often get the message "Cannot locate file."
    Is there a way to populate my current PC with all the files I have on my iPod?
    Simply syncing my iPod doesn't seem to do the trick.
    Thanks for the help!

    You cannot use an iPod backup to restore to an iPad, nor can you use an iPad backup to restore to an iPod.
    Some apps support data syncing through iCloud, but this feature needs building into the app by the developer. If your app doesn't support this, then I believe there is no way to transfer the data between your two devices.

  • Tcode SD related for displaying a report with completed deliveries

    Dear SAP Experts,
    I would like to ask you a question.
    Is there any Tcode for displaying a report with all the completed outbound deliveries (8000++) or posted goods issues (4900++) with the relevant net values of the relevant sales orders, BEFORE the creation of the relevant billing documents.
    Great Thanks in Advance
    Kind Regards
    John

    You can use transaction VF04 - Billing due list.

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • Display current month records only

    Hi Experts,
    I have the following requirement.
    Report should display current month records only.
    For example If the report is run on 20090324, It should display records from 20090301 to 20090324.
    That means,  report may run on any date of that month, It should display from 01 (of that month) to current date.
    I have a select statement saying
      SELECT * FROM likp
      WHERE wadat_ist BETWEEN month_start_date AND sy-datum          
        AND vkorg IN s_vkorg
        AND vkbur IN s_vkbur
        AND kunnr IN s_kunnr.
    How to calculate date for month_start_date, so that it can display only current month records.
    Thanks in advance
    Rohan

    Hi Kunta, Suhas, Nandi,
    Thank you for your quick reply, I really appreciate it.
    for this current month records, I need to display a check box saying
    Open orders  and shipments with the current month.
    But where as Selection text is accepting 32 characters only. Is there any possibility to overcome this?
    Thanks in advance
    Rohan

  • Variable to display data from Current Fiscal Year to the MONTH entered

    Hi Friends,
    In the Quey Designer I require a CHARACTERISTIC VARIABLE for the 0CALMONTH which should have the following features:-
    1.Input Month(e.g JUN 2008)
    2.Mandatory
    3.Ready for Input
    The query should show the following OUTPUT:-
    The data should be displayed from the CURRENT FISCAL YEAR to the value of the Input MONTH entered.
         e.g For Input  =  DEC2008
               Output = from APRIL 2008 to DEC2008.
    Do we have a standard variable for this or we have to go for a Customer Exit??
    Thanks in Advance!!!
    Vivek

    Hi,
    Create a customer exit as follows.
    WHEN 'ZCMTD'.
    you variable name
    data: ZCMTD_LOW like sy-datum.
    ZCMTD_LOW = sy-datum.
    ZCMTD_LOW+4(2) = '04'.
    *replacing last two symbols (month) in the current month with '04'
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = ZCMTD_LOW.
    *initializing low interval limit
    L_S_RANGE-HIGH = SY-DATUM.
    *initializing high interval limit
    L_S_RANGE-SIGN = 'I'.
    *defining interval as inclusive
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDCASE.
    Thanks,
    Ashok

  • Display current and previous months records only

    Hello gang,
    My selection criteria looks like this:
    not ({HRDEPBEN.PLAN_CODE} startswith ["C", "EAP", "HMIL", "V", "W"]) and
    (month({hrdepben.Creation_date}) = month(currentdate)) and
    {HRDEPBEN.PLAN_TYPE} = "HL"
    I modified it to this in order to pull in previous month's data too:
    {HRDEPBEN.PLAN_TYPE} = "HL" and
    not ({HRDEPBEN.PLAN_CODE} startswith ["C", "EAP", "HMIL", "V", "W"]) and
    (month({hrdepben.Creation_date}) = month(currentdate) or month ({hrdepben.Creation_Date})= month (currentdate)-1)
    However, it's still pulls the same record count and only January records, not Decembers'.
    Where am I going wrong?
    Thanks

    Looks like you're reporting against Lawson?  What database are you using?
    There are a few issues with the record selection criteria as it's written:
    1)  Month(CurrentMonth) - 1 = 0 when the current month is January.  That's why your not getting any records from December.
    2)  The  monthly criteria won't be passed to the database for processing, which is a huge performance issue when you're reporting against a system like Lawson.  You're basically telling the report to bring back all records that don't start with an array of values, irrespective of the date.  Only after all the possible records are returned across the network will the extraneous records be filtered out on the client side.  That's bad.
    3)  It's easy to use StartsWith or Like, but it's also pretty inefficient, since it forces a full table scan of the underlying table
    Personally, I'd do one of two things in order to both fix the query and optimize it:
    1)  Write the underlying query in SQL as either a View or SQL Command object
    or
    2)  Keep the current report, but make use of SQL Expression fields in order to optimize the query.
    Here are some examples of SQL Expression fields against Oracle (PL/SQL) that could be useful:
    /*{%PLANCODES}*/
    /*This SQL Expression evaluates whether or not a Plan Code starts with the specified values*/
    /*"HRDEPBEN"."PLAN_CODE" is selected directly from the Field Tree in the SQL Expression Editor*/
    CASE
      WHEN SUBSTR("HRDEPBEN"."PLAN_CODE",1) IN ('C','V','W') THEN 'Y'
      WHEN SUBSTR("HRDEPBEN"."PLAN_CODE",3) = 'EAP' THEN 'Y'
      WHEN SUBSTR("HRDEPBEN"."PLAN_CODE",4) = 'HMIL' THEN 'Y'
      ELSE 'N'
    END
    /*{&CREATEDATEMONTH}*/
    /*This SQL Expression returns the month of the Creation Date field*/
    /*"HRDEPBEN"."CREATION_DATE" is selected directly from the Field Tree in the SQL Expression Editor*/
    TO_NUMBER(TO_CHAR("HRDEPBEN"."CREATION_DATE",'mm'))
    You could also create formula to return the Month value for last month and then use it in your record selection:
    //{@LASTMONTH}
    //This formula returns the Month value for Last Month
    //IIF statements can be passed to the database for processing
    IIF(Month(CurrentDate) = 1, 12, Month(CurrentDate) - 1)
    With expressions and formulas like these in place (this code is Oracle and DB2 compatible, it would be different for T-SQL), you could then modify your record selection criteria to be something simpler, like this:
    {HRDEPBEN.PLAN_TYPE} = "HL" and
    {%PLANCODES} = 'N' and
    {%CREATEDATEMONTH} IN {@LASTMONTH} TO MONTH(CURRENTDATE)// MONTH(CURRENTDATE) is passed to the DB
    By laying the groundwork, you'll have a much more efficient report and, in the case of the @LastMonth, more accurate! Hope this helps!
    p.s. a disclaimer on using SQL Expressions in this manner - it's not officially supported, although it's worked since Version 7 (when SQL Expressions were introduced) and there will be support for them in various 2011 versions. As such, they'll work for years. I use them all the time and they're fantastic for optimizing reports.

  • Workaround to display current month in calendar

    Hello,
    This is regarding Mr. Krishnamurthy's workaround to display current month in calendar. He asked us to run the URL with some name value pairs attached to get rid of the default "Next" button that the portal will create. But if i add this as a portlet how will i let portal know to run the portlet with these parameter values.
    one way that i'm guessing is to add these parameters to the page and pass the values in the customization page. But can we do without doing this customization and everything. And also how do i display the next month of the calendar in the portal itself(i.e inline rendering). Presently if i click the next month link it takes me out of the portal. Eagerly waiting for suggestions/solutions. Thanks and regards,
    --Ganti.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    Thanks for the reply. Actually, I have the workaround to display the current month with Previous month / Next month capabilities and I thought maybe somebody wants to know about this workaround .
    -Krishnamurthy

  • 2 days ago my FF3.6.3 started becoming extremely slow/delayed on EVERYTHING/ALL ACTIONS (I have been using 3.6.3 for a few months with NO problems, until 2 days ago). Scrolling going in delayed/slow 'waves' motion (not smooth & fast), Right-click box ver

    2 days ago my FF3.6.3 started becoming extremely slow/delayed on EVERYTHING/ALL ACTIONS (I have been using 3.6.3 for a few months with NO problems, until 2 days ago). Scrolling going in delayed/slow/jerky 'waves' motion (not smooth & fast), Right-click box very delayed/hangs in coming up, Text typing lagging/intermittent, activity extremely slow/delayed when pointing mouse over anything, changing from tab to tap extremely slow. Bascially EVERYTHING has become sooo slow, delayed, lagging etc. I have tried ALL possible checks (extensions, add-ons, plug-ins, download history, cache, cookies) & viewed nearly ALL the FF help sites. Is this a sudden/recent bug?? It doesnt only happen with Facebook, but EVERY window I open!!
    == This happened ==
    Every time Firefox opened
    == approx. 2 days ago

    I've personally not seen this behaviour since Firefox version 2. It however re-appeared for me in 3.6.6 and 3.6.7 (current) and it's bloody awful. Makes everything I do take 50% longer ..... great for efficiency in the modern world.
    This 3.6 branch is so riddle with flaws which seem never to be fixed. Each fix / update brings with it more problems ... worst of all I see version 4 is already in development but they cannot even get 3.6 right ??? WTF ????
    Mozilla must stop chasing version numbers as has become the trend in the software world. Fix an existing version to perfection then start working on a new branch of the product.

  • How to display empty months when grouping records by month

    Guys, I've got a recordset that successfully displays all
    records in the
    table grouped according to the month that the record was
    created in.
    This allows me to display a Monthly tally (a bit like a
    barchart - where the
    height of the column is derived by the qty of records for
    that given month)
    for each of the months in the year so far. However, it dawned
    on me today
    that if there was no activity in a given month, the month
    simply doesn't
    appear at all, rather than displaying but showing "0" as I
    would prefer.
    For example, the type of thing I want to display onscreen is:
    Month 1 2 3 4 5 6 7 8 9 10 11 12
    But let's say there were no records inserted in months June
    to September
    (inclusive), what I'm actually getting onscreen is:
    Month 1 2 3 4 5 10 11 12
    But what I actually want to appear onscreen is:
    Month 1 2 3 4 5 6 7 8 9 10 11 12
    I hope that makes some kind of sense...
    I'm using Dreamweaver CS3, ASP/VBScript, and MySQL.
    My current SQL Statement is as follows:
    SELECT Count(AffiliateID) AS TotalClicks, MONTH(`VisitDate`)
    AS Month
    FROM tbl_affiliaterefferals
    WHERE `AffiliateID` = "49" AND YEAR(`VisitDate`) =
    YEAR(Now()) GROUP BY
    MONTH(`VisitDate`)
    ORDER BY MONTH(`VisitDate`) ASC
    I figured one workaround would be to have 12 separate
    recordsets - one for
    each month - on the one page, but there must be a cleaner way
    of doing it
    surely?
    Any/all help greatly appreciated.
    Regards
    David

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0086_01C932EC.D9CE33D0
    Content-Type: text/plain;
    format=flowed;
    charset="iso-8859-1";
    reply-type=original
    Content-Transfer-Encoding: 7bit
    Hi Joe,
    I've simply got a table, within one cell of which is another
    table to which
    I've applied a background colour and am specifying the height
    of the <td>
    cell as the qty of the number of records returned for Month 1
    of the current
    year. Then I'm applying a repeat region to the <TD>
    cell containing the
    table that varies in height, in order to force the table to
    repeat
    horizontally according to the number of records (months)
    retrieved from the
    database.
    The code for the table is in the attached txt file.
    I appreciate your time in responding however you must have
    missed my
    comments about what I'm working in as I'm working in
    ASP/VBScript and
    haven't the first clue when it comes to PHP.
    I don't suppose you know or can point me in the direction of
    an ASP
    equivalent of your suggestion?
    Regards
    David
    "Joe Makowiec" <[email protected]> wrote in
    message
    news:[email protected]...
    > On 20 Oct 2008 in macromedia.dreamweaver, DTB-K wrote:
    >
    >> I figured one workaround would be to have 12
    separate recordsets -
    >> one for each month - on the one page, but there must
    be a cleaner
    >> way of doing it surely?
    >
    > Without seeing the code you're using to display it...
    >
    > Probably what that code is doing is looping through the
    recordset:
    >
    > <?php do { ?>
    > ...
    > <?php } while ($row_dates =
    mysql_fetch_assoc($dates)); ?>
    >
    > That's DW's standard PHP MySQL recordset behavior. What
    you want to do
    > is something more like:
    >
    > <?php
    > for ($i=1;$i<13;$i++) { // Do 12 months
    > echo '<p>Month: ';
    > echo $i; //Echo the month
    > if ($row_Recordset1['Month'] == $i) {
    > // Have data for this month
    > echo ' Clicks: ';
    > echo $row_Recordset1['TotalClicks'];
    > // Now get the next row
    > // Note that we only want to get the next row if the
    current month
    > // has data. That's why the fetch command is inside the
    if.
    > $row_Recordset1= mysql_fetch_assoc($Recordset1);
    > } // End if
    > echo "</p>\n";
    > } // End for
    > ?>
    >
    > --
    > Joe Makowiec
    >
    http://makowiec.net/
    > Email:
    http://makowiec.net/contact.php
    ------=_NextPart_000_0086_01C932EC.D9CE33D0
    Content-Type: text/plain;
    format=flowed;
    name="Code.txt";
    reply-type=original
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: attachment;
    filename="Code.txt"
    <table border=3D"0" cellpadding=3D"0"
    cellspacing=3D"0">
    <tr>
    <td colspan=3D"2" valign=3D"bottom"><h1>Current
    Year:</h1></td>
    </tr>
    <tr>
    <td valign=3D"bottom" =
    class=3D"BodyTxtsml"><strong>Month</strong></td>
    <%=20
    While ((Repeat1__numRows <> 0) AND (NOT
    Rs_MonthlyClicks.EOF))=20
    %>
    <%Dim TotalClicks, Cellheight
    TotalClicks =3D =
    FormatNumber((Rs_MonthlyClicks.Fields.Item("TotalClicks").Value),
    0, -2, =
    -2, -2)
    Cellheight =3D (TotalClicks)
    %> =20
    <td valign=3D"bottom" class=3D"BodyTxtsml" =
    title=3D"<%=3D(TotalClicks)%>"><div
    align=3D"center"><table border=3D"0" =
    cellspacing=3D"0" cellpadding=3D"0">
    <tr>
    <td height=3D"<%=3D(Cellheight)%>" =
    bgcolor=3D"#003366" onMouseOver=3D"this.bgColor =3D
    '#FFDB9D'" =
    onMouseOut=3D"this.bgColor =3D'#003366'"
    width=3D"40"> </td>
    </tr>
    =
    </table><%=3D(Rs_MonthlyClicks.Fields.Item("Month").Value)%></div></td>
    <%=20
    Repeat1__index=3DRepeat1__index+1
    Repeat1__numRows=3DRepeat1__numRows-1
    Rs_MonthlyClicks.MoveNext()
    Wend
    %> =20
    </tr>
    </table>
    ------=_NextPart_000_0086_01C932EC.D9CE33D0--

Maybe you are looking for