Calendar date range limit?

All,
I've set up a calendar region. The underlying data is all contained in the month of November; however, when a user first goes to the calendar, it defaults to the current month. Reading through the documentation, I thought I could fix this by setting the "Item Containing Start Date" and "Item Containing End Date" fields to point to page items with the first and last dates from the data, but that doesn't seem to have any effect--the calendar still loads in for October. And the users can click through to before and after the data, which I want to prevent.
I've verified that both page items have the correct values, in YYYYMMDD format. Begin at start of interval is selected, though I can't see how that would make much of a difference.
Any help?
-David

Well, I'm not fully sure this is the correct solution, but I got it working.
I set the values of the automatically created P1_CALENDAR_DATE and P1_CALENDAR_END_DATE items to be the start and end of my date range. Then I removed the previous/next/today buttons to prevent users from wandering off. This works, though I'm not 100% sure why...and it also makes me wonder what the "Item Containing Start Date" and "...End Date" fields are for, as they don't seem to have any impact.
So, despite my confusion, I'm going to mark this one as answered.
-David

Similar Messages

  • Calendar Date Range

    Is there a way to get the calendar portlet to display a date range? IE if there is a week long event, show the event on each day, not just the first day of the event. I know by default it can't but maybe someone has a query out there to pull it off. We've been trying to figure out a way to make a view that would display a record for each day of the event, so the calendar portlet would display properly.

    Hi,
    I had a similar problem a long time ago, and ended up creating a table of dates from 1900 to 2100 so that I could select from it where the date was between two dates.
    This gave a row for each date.
    Not a very elegant work around.
    At least Dates are quite small in the database.
    Regards Michael

  • How to produce the effect of a date range inner join without actually doing one

    I have a T-SQL inner date range join that has done the job, but now that I am starting to learn about query optimization (as in just starting), I'm scratching my head on how to make it better. I see the non-equi join as being the issue because the optimizer
    scans through the entire table.  As you will see from the DDL code pasted below, there are no possible equi-joins. The enrollment history table has about 6000 rows so far, whereas the calendar table has only 10 so far, but is subject to change, which
    is why I have it as a table join.
    Another way to describe this is in the necessary outcome, which you see in the "Is_FAY" column in the Select statement. For each row in the Enrollment History table, I use the Case statement to determine whether the pair of Entry and Exit dates
    are within the Calendar date ranges (and if so, which row the match is found). There are no nulls in either table by design.
    At first, I thought of adding a non-clustered index, but the credible resources and blogs are mixed. Some sources say to use them, others say not to use them, and the remainder are on the fence. That and the
    fact that I drop and recreate the table every 24 hours (there are many updates to the Black Box) makes me very leery about having indices other than the primary key.
    I have pasted DDL language below with sample data.  Change the "Use Learning_Curve" statement to whatever database you want to use -- the rest will run as written.
    Now that I've given you some background and what I hope to accomplish, I hope that someone has encountered this issue before and can suggest an avenue of further inquiry, because I am out of usable research sources and ideas. 
    Thank you
    USE Learning_Curve;
    GO
    IF OBJECT_ID('dbo.Enrollment_History', 'U') IS NOT NULL
    DROP TABLE dbo.Enrollment_History;
    CREATE TABLE dbo.Enrollment_History
    (ID INT NOT NULL identity(1, 1) PRIMARY KEY,
    Campus_ID INT NOT NULL,
    Student_ID INT NOT NULL,
    Entry_Date DATE NOT NULL,
    Exit_Date DATE NOT NULL);
    INSERT INTO dbo.Enrollment_History
    VALUES (1, 103934, '2014-08-11', '2015-01-10'),
    (1, 102912, '2014-09-10', '2015-05-10'),
    (1, 199234, '2014-08-07', '2015-05-01');
    IF OBJECT_ID('dbo.Calendar_FAY_Dates', 'U') IS NOT NULL
    DROP TABLE dbo.Calendar_FAY_Dates;
    CREATE TABLE dbo.Calendar_FAY_Dates
    (ID INT NOT NULL identity(1, 1) PRIMARY KEY,
    FY VARCHAR(4) NOT NULL,
    Start_B DATE NOT NULL,
    Start_E DATE NOT NULL,
    End_B DATE NOT NULL,
    End_E DATE NOT NULL);
    INSERT INTO dbo.Calendar_FAY_Dates
    VALUES ('FY14', '2013-08-05', '2013-08-29', '2014-04-30', '2014-05-15'),
    ('FY15', '2014-08-07', '2014-08-28', '2015-04-30', '2015-05-15');
    SELECT eh.ID,
    eh.Campus_ID,
    eh.Student_ID,
    eh.Entry_Date,
    eh.Exit_Date,
    cfd.FY,
    case
    when eh.Entry_Date >= cfd.Start_B
    and eh.Entry_Date <= cfd.Start_E
    and eh.Exit_Date >=cfd.End_B
    and eh.Exit_Date <= cfd.End_E
    then 1 else 0 end as Is_FAY
    FROM dbo.Enrollment_History eh
    inner join dbo.Calendar_FAY_Dates cfd
    on eh.Entry_Date >= cfd.Start_B
    and eh.Exit_Date <= cfd.End_E

    This definitely a case where an indexes on the two tables will speed things up significantly. 
    It's also one of those strange cases where you can't really rely on the numbers you see in the execution plan. To really get an idea the impact to need to actually time the query...
    For example. Running your final query with out any additional indexes took ~4,000 microseconds...
    Adding the following index, dropped that time down to ~3,000 microseconds...
    CREATE NONCLUSTERED INDEX ix_Enrollment_History_EntryDates ON dbo.Enrollment_History (
    Entry_Date,
    Exit_Date)
    INCLUDE (
    ID,
    Campus_ID,
    Student_ID)
    WITH (DATA_COMPRESSION = PAGE)
    Adding the following index (and keeping the 1st) dropped it again, down to ~2,000 microseconds
    CREATE NONCLUSTERED INDEX ix_CalendarFAYDates_Detes ON dbo.Calendar_FAY_Dates (
    Start_B,
    End_E)
    INCLUDE (
    Start_E,
    End_B,
    ID,
    FY)
    WITH (DATA_COMPRESSION = PAGE)
    Keep in mind that 5 rows of data doesn't even begin to provide an accurate representation of read execution times against actual production data (the smallest changes in background processes on my computer caused the time to vary pretty drastically between
    executions).
    Anyway, the following is a quick & dirty way to test execution times when you're query tuning or checking the impact of different indexes on a query.
    DECLARE @b DATETIME2(7) = SYSDATETIME()
    SELECT eh.ID,
    eh.Campus_ID,
    eh.Student_ID,
    eh.Entry_Date,
    eh.Exit_Date,
    cfd.FY,
    case
    when eh.Entry_Date >= cfd.Start_B
    and eh.Entry_Date <= cfd.Start_E
    and eh.Exit_Date >=cfd.End_B
    and eh.Exit_Date <= cfd.End_E
    then 1 else 0 end as Is_FAY
    FROM dbo.Enrollment_History eh
    inner join dbo.Calendar_FAY_Dates cfd
    on eh.Entry_Date >= cfd.Start_B
    and eh.Exit_Date <= cfd.End_E
    SELECT DATEDIFF(mcs, @b, SYSDATETIME())
    HTH,
    Jason
    Jason Long

  • How to limit data range in a Line chart with Time Refresh Control

    Hi All,
    I have a Line chart with Time Refresh Control and I would like to make some constraints to this navigation.
    For example, I would like to limit the user to navigate in a data range of 8 hours.
    Is this posible?
    Thanks in advance

    Hi Pedro,
    as far as I know, this is not possible using the time controls on an iChart. However, you may have some success by using your own time controls which call JavaScript methods exposed by the applet.
    For example, you could begin by hiding the time and calendar buttons on an iChart, and creating some buttons of your own. For instance, to set the start date of a query (and thus the start date of the iChart using the query), you can use the following:
    document.getElementById("appletID").getQueryObject().setStartDate(<date string>);
    Using code like the above (look into the xMII script assistant and documentation), you should be able to build time controls which satisfy your requirements. The exact format of <date string> in the sample above will depend on the date format defined in the query template this script calls.
    Hope this helps,
    Sascha

  • I want to print a calendar by specifying the date range

    I want to be able to print from ICal in a 4 week block but not by month. Our calendar is updated regularly and I want to be able to print out the forward 4 weeks, not this month which gives me dates already past.
    And I do not want to print out 4 individual weeks.
    I know how to print Month and Week but these don't do it for me.
    How can I specify a date range?
    Cheers
    Rusty

    Hello @jgolf ,
    I would like to direct your attention to the following post by PrintApper .
    HP Apps Service Retired on several printers
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • Possible to do limited date range changes in Calendar?

    If I set up a filter, say, for days since my last sync AND I'm doing a two-way sync, will only those changes sincy my last sync be synced or will I lose everything not in that date range? Since I make changes to the calendar in Outlook and on the device this is especially important to me. This could save me a lot of time, but I don't want to lose any other calendar data
    Also, I assume that I set the filter to use 'start date' and uncheck the box that says ' Delete from device any data that does not match the filter'. I am using DM 4.6 and OS 4.3
    IrwinII
    Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.

    Hi Mark,
    Yes, you can pass a date range value to the SUbreport!
    Here's how its done:
    1) Create a formula in the Main report; call it Start_date:
    Minimum({?Date_parameter})
    2) Create a second formula in the Main report and call it End_date:
    Maximum({?Date_parameter})
    3) Insert the sub-report and then Right-click the sub-report > Select Change Subreport links > Move the Start_date and End_date formulas to 'Fields to Link to' area and make sure you uncheck the 'Select data in subreport based on field' option.
    4) Edit the sub-report (Right-click > Edit) and insert a Record Selection formula to include the parameters from the Main Report.
    Go to Report > Selection Formulas > Record:
    {date_field} >= {?Pm-@Start_date} and {date_field} <= {?Pm-@End_date}
    Hope this helps!
    -Abhilash

  • Help with PowerShell to delete a date range of Calendar meetings

    I'm trying to delete all Calendar items within a date range, from a mailbox. But first I'd like to just make sure my date filter is actually working.
    Here is what i HAVE working:
    Search-Mailbox ME -SearchQuery "Received:01/01/2010..03/18/2010" -EstimateResultOnly
    This works, it gives me a count of all things in my mailbox
    Search-Mailbox ME -SearchQuery kind:meetings -EstimateResultOnly
    This works, it gives me a count of all Meetings in my Calendar.
    I reallly need now to get the date range to work in conjunction with the kind:meetings.
    How can I do that?

    Hi,
    The results include the deleted meetings. I test it in my lab.
    So the command to delete Calendar meetings with a date range is this:
    Search-Mailbox "username" -SearchQuery "Received:01/01/2010..3/18/2015 kind:meetings" –EstimateResultOnly -DeleteContent
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • Can I use SYSDATE in the WHERE clause to limit the date range of a query

    Hi,
    Basicaly the subject title(Can I use SYSDATE in the WHERE clause to limit the date range of a query) is my question.
    Is this possible and if it is how can I use it. Do I need to join the table to DUAL?
    Thanks in advance.
    Stelios

    As previous poster said, no data is null value, no value. If you want something, you have nvl function to replace null value by an other more significative value in your query.<br>
    <br>
    Nicolas.

  • Show date range in Calendar

    Hello,
    I have created a calendar using the calendar widget available in APEX 4.1
    This is SQL based and also has a input form to create a new event by clicking on a particular date.
    select id,activity,code,location,date_from from cal_activity a,cal_activity_type t where a.type_id = t.type_id order by code,activity
    The calendar works fine when I try to create/update an event.
    However the date range is not visible for events that last longer than one day.
    The event end_date is being captured.Then why is it that the calendar shows only sysdate events and not the ones before and after?
    Here is the link to the application :-
    https://apex.oraclecorp.com/pls/apex/f?p=17137:1:317233609286701:::::
    Could someone kindly explain what I might be missing here?
    Thanks and Regards,
    Priya Jetley
    Edited by: user637618 on Feb 13, 2012 1:35 AM

    According to CRM Support
    CRM Support wrote:the ability to block off a multi-day appointment in the Weekly and Monthly Calendar Views is not currently available on our product. However, we have submitted this functionality to our engineers as an enhancement request. At this time we are unable to provide an estimated time of implementation while this request is being analyzed and processed.
    Simple things seem hard for the Siebel guys.
    Edited by: nsidev on Aug 14, 2009 7:11 AM
    Edited by: nsidev on Aug 14, 2009 7:12 AM

  • Split date range without Calendar table

    Hi guys!
    Is there any way to split date ranges (to days / hours / minutes) in one table without using Calendar table (without joining 2 tables)?
    Reason I'm asking this is because we have a huge Fact table (500+ million records) and joining small Calendar table and this huge Fact table takes considerable amount of time.
    So far we tried:
    Join 2 tables (Fact and Calendar)
    Cross Applying Calendar and table-valued function (that returns necessary measures from Fact table)
    and both approaches took few minutes for 1 day to complete.
    Most successful test we had so far was using CLR and executing table-valued functions in parallel for different 15 minute periods. This way we were able to get the results in 3-4 seconds.
    Anyway, is there any effective pure T-SQL way to accomplish this?
    Thanks in advance,
    Miljan

    Try using a temporary table rather than table variable.. You can have a CI on the date column.
    or
    declare @PeriodStart datetime2(0) = '2013-01-05 00:00:00'
    declare @PeriodEnd datetime2(0) = '2013-01-05 02:00:00'
    select T.PeriodStart, T.PeriodEnd, count(Column1)as count1, sum(Column2)as sum1
    from Fact F with(nolock)WHERE F.[Start]>= '19000101' AND <=@PeriodStartand F.[End] >= @PeriodEnd and F.[End] <='20200101'
    group by T.PeriodStart, T.PeriodEnd
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Calendar Region : Date Range

    Hi,
    I am trying to add ranges to a calendar report.
    Here is exactly what I am trying to acheive...
    http://www.sumneva.com/apex/f?p=15000:305:0
    Does anyone know how this is acheived??
    I have tried messign around with calendar date, calendar end date but I don't seem to get anywhere??
    Thanks
    Richard

    Hi,
    Are you still working on this ? If you have solution please share.
    What I have check javascript, one option is something like below to get array mentioned in documentation
    http://arshaw.com/fullcalendar/docs/event_data/events_array/
    <script type='text/javascript'>
    $(function() {
    $('#calendar').fullCalendar({
      events:function(start,end,callback){
       /* user parametter start to pass open calendar starting date to funtion return events */
       /* user parametter end to pass open calendar starting date to funtion return events */
       $.ajax({
        type: "POST",
        url: "wwv_flow.show",
        dataType: "json",
        data:{
         p_flow_id:$('#pFlowId').val(),
         p_flow_step_id:$('#pFlowStepId').val(),
         p_instance:$('#pInstance').val(),
         p_request:"APPLICATION_PROCESS=CALENDAR_QUOTE_EVENTS"
         x01:start, /* in On Demand process use APEX_APPLICATION.G_X01 to get calendar start */
         x02:end  /* in On Demand process use APEX_APPLICATION.G_X02 to get calendar start */
        success:function(calevents){
          /* make event array with objects */
         var events=[];
         $.each(calevents.row, function(i, ev){
          events.push({
           title: ev.title,
           start: ev.start,
           end:ev.end
         /* return events to calendar */
         callback(events);
    </script>In JSON start and end date should be format YYYY-MM-DD HH24:MI:SS.
    Regards,
    Jari

  • Calendar Showing Date Range

    Does anyone know where I can find an example of a calendar showing a date range.
    I would like to show a start date and an end date of an event on the calendar
    Cheers
    Gus

    Hi Gus,
    In that case, you need to create a record for each individual date covered by the period. Obviously, for space/maintenance reasons, you wouldn't want to do this on actual tables, but there are techniques that you can use to construct the required virtual records - some are discussed here: vacation calendar- time consuming query ??
    Andy

  • Date Range for Limit Shopping Carts in SRM 7

    Classic Scenario:
    1. Create a Limit SC with Between Dates (date Range) with a sUpplier
    2. PO is created in BE only with a delivery date.
    I would like to get the date range in the header of the PO. Thoughts!
    Thanks

    Here you go.
    Use below SAP note for getting from and TO dates populated in ECC PO from SRM SC.
    This note will be released as part of SRM7 SP09.
    SRM 7
    Classic Scenario
    XI msg from SRM to ECC
    SAP note 1503941 and 1505317 in ECC and SRM respectively.
    Message Closed. Thanks
    Edited by: Netaji Gummadi on Sep 13, 2010 3:29 PM

  • Adf Calendar multiple date range disabled.

    Hi,
    I have a requirement where I have few date ranges say 1st -5th march, 9th-11th march.. and while opening date calendar these date ranges should be disabled (blacked out ) . MinValue and maxValue attribute is only for single date range. I need for multiple date ranges

    No version number, no clear idea of what you mean by "adf Calendar"
    If you are talking about [url http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_inputDate.html]af:inputDate, look at the disabledDays property
    John

  • No Data in Reports Details in Custom date range

    Hello, iTunes U Public Site Manager Admins.
    As the iTunes U Public Site Manager admin, I've been trying to access our institution's iTunes U Reports Details for a couple of days. (I send a monthly report of usage to our course/collection contributors.) When I custom the date range, under Details, there is zero entry; "No data available in table" message is shown.
    This feature had been working well since Apple iTunes U added this enhancement on August 13, 2013. The report Details showed the exact stats for Browse, Subscribe, Download, Stream, and Enclosure for each course/collection in the custom date range.
    Now under "Details", the data is shown only when the date range is Last 30 Days. It shows no data in custom date range when the Calendar is used to select a Start Date and End Date.
    Has anyone else noticed this problem?
    Thanks.
    Q. Wang

    Erik.
    I used your suggestion and it worked very well. This is how I did it.
    Export the range of data that includes Feb. 1-Feb. 28, 2014 as .tsv file.
    Open that file in Excel.
    Add a blank column next to the Date column. Use function =Month() to just extract the month into the new column. Fill down the whole column. Then copy and paste special (value) into the same column (I have over 26,000 rows of data in the file.) Converting to Value will allow for the next step of PivotTable.
    Create a PivotTable for the 26,000 rows of data. Use Month as the Report filter, iTunes_ID as the Row Labels, Select Browse, Subscribe, etc. as the Sum Values. (The result is a summary table with about 200 rows.)
    I then do a Vlookup to my premade Master file to add Category (course, collection, resources) and Instructor Name to each of the 200 rows.
    That will do it for my monthly report.
    Thanks for your tip again. I did not know the .tsv file would have DATE for each item.
    Sincerely,
    Q. Wang

Maybe you are looking for

  • How do you import songs into a new iTunes library from a Touch?

    I downloaded iTunes on a new PC laptop but, I'm unable to import the songs that are on the Touch, to the new iTunes library. The songs that are on the Touch are all iTunes purchased songs and these songs are based in a iTunes library that is on the o

  • Itunes account password reset. icloud email unavailable...

    this is a question for a friend, because obviously, i have an account to ask. itunes account password reset because her son kept attempting to access account. to reset password, link goes to email. however, her email was an icloud account. so it used

  • UCCX CUIC Custom Reports

    Hi Community, I'm creating new reports for one of our customers with the CUIC NFR kit in our lab. But I do not want to create the reports from scratch and want to use the report definition templates from UCCX. But I don't know where I can download th

  • XI integration

    Hello every one....           As doing web log scenario..BW-XI integration( how to send XML data to BW from XI ). I configured all the steps in that web log..but final step is not woking eventhough i created html file nad xml file as per the web log

  • Synchronous Webservice

    Hi all, I need to have a synchronous webservice to communicate with a synchronous send step in BPM.the output message of the webservice is defined and its of more relevence but cant specify the input message of the webservice.whether i need to make a