Calendar region - Skip weekend

When using the Calendar region type, is there a way to skip displaying the weekend cells i.e. I would like to display only a working week. I added a where to_char(dt,'fmday') not in ('saturday','sunday') to the calendar SQL but that didn't change the display.
Ideas? Thanks

Hi,
Any of the columns can be hidden by setting the width on the COL tag. So, if your calendar grid starts on a Sunday, then the first and last columns can have widths of 0px or if you want to hide Wednesday on a Mon-Sun calendar, the third COL tag gets the 0px width. Unfortunately, COL tags can not be added or updated after the page has loaded, so you have to know in advance what columns you need to show/hide, though it may be possible to use styles to make it more dynamic.
On one of my apps, where I have used this method, I have updated the Calendar Attributes to include a "Column Format" setting that adds in the entry for that date. In my case, this entry is:
<div class="#STYLE_NAME#" style="font-weight:#FONT_WEIGHT#">#USERNAME#</div>The STYLE_NAME value is on the SQL statement and shows a value depending on what the user was doing on that particular date - off sick, working etc - but each style uses "width:90%" to set the width of the DIVs. The width of the DIV is then based on the width of the column which is fixed by the COL tag style and, as it is a DIV tag, the text will wrap within that.
I don't think you are missing anything for the Start/End dates - I couldn't get them to have any effect on my calendars either! Going from the blurb on these, it would seem that these settings affect calendar entries for the displayed month only - so you could show part of one month but nothing spanning more than the month. But, I couldn't even get this working - it always showed an entire month's data! So, either we're totally misreading the blurb on this, or the functionality doesn't work!
Andy

Similar Messages

  • Every ?th weekday recurring event (skip weekends) -- is it possible?

    At my workplace, we're on a 7-day production schedule (M-F only), such that if a "day 1" were to fall on a Monday, the next "Day 1" would fall on the Wednesday of the following week. We have a production meeting every "day 7".
    What I would like to do is set up a recurring event that repeats every 7th weekday. Is this possible with a custom RRULE (i.e. edit something in textedit and drop it in)? Is there a simpler way to do it? If RRULE, could anyone point me in the right direction?
    I tried custom daily recurrence, but it doesn't give me the option to skip weekends.
    ** If a rule could be made to skip weekends and stat holidays, all the better -- but I'm assuming that'd be pushing my luck.
    Message was edited by: MrBizz

    I tried a few ways with customised tweaked RRules without success. I thought something might be achievable based on a 9-day interval. Reading about it, it seems to be one of the recognised weaknesses of the icalendar standard.
    You could run an applescript and generate a separate event for each meeting - here is an example.
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">-- AK Oct 2007
    --Things you should probably change
    --you can put the dates in simpler format eg "Dec 25 2009". Applescript will convert them
    set HolidaysList to {date string of date "Tuesday 25 December 2007 00:00:00"}
    set HolidaysList to HolidaysList & {date string of date "Tuesday 1 January 2008 00:00:00"} --add extra line like this for each excluded date
    display dialog HolidaysList --so you know that the list is correct
    set StartTime to 9 * hours --time meeting starts
    set Duration to 1 * hours --length of meeting
    set MeetCal to "Production Meetings" --name of the calendar
    --After here, only change if you have at least a vague idea of what you are doing
    set DaysList to {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}
    set Today to date string of (current date)
    set StartOn to date (text returned of (display dialog "Start date?" default answer Today))
    set StartOn to StartOn + StartTime
    set RepeatCount to text returned of (display dialog "Number of meetings?" default answer 50)
    repeat RepeatCount times
    repeat until ((first word of date string of StartOn) is in DaysList) and (date string of StartOn is not in HolidaysList)
    set StartOn to StartOn + 1 * days
    end repeat
    tell application "iCal"
    tell calendar MeetCal
    make new event at end of events with properties {summary:"Planning Meeting", start date:StartOn, end date:StartOn + Duration}
    end tell
    end tell
    set StartOn to StartOn + 9 * days
    end repeat</pre>

  • Use multiple day event in Calendar region

    I am using a Calendar region in my application. One issue i have run into is, some of my events are multiple-day events, such as a conference. The calendar application does not seem to be able to deal with multiple-day events. It takes one date as the date. There doesn't seem to be any way of dealing with multiple day events. In my case, I have 2 date fields in my table associated with my calendar - a starting date, and an ending date.
    Has anyone found a way to deal with this situation? I don't want to have a separate entry for each date of the event. I'd like to be able to use my start date, and ending date fields.
    Thanks,
    John

    Scott,
    I took the SQL you used in your trigger and substituted my table names and fields. I am getting 3 errors. Here is what my code looks like after the substitutions (my table names are 'meetings_tbl' and 'meetings_tbl_cal'):
    CREATE OR REPLACE TRIGGER ai_meetings
    AFTER UPDATE OR INSERT ON meetings_tbl
    FOR EACH ROW
    DECLARE
    l_date_diff NUMBER;
    BEGIN
    IF UPDATING THEN
    DELETE FROM meetings_tbl_cal WHERE m_id = meetings_tbl.m_id;
    END IF;
    l_date_diff := meetings_tbl.meeting_end - meetings_tbl.meeting_start;
    FOR x IN 0..l_date_diff
    LOOP
    INSERT INTO meetings_tbl_cal
    (m_id, meeting_date)
    VALUES
    (meetings_tbl.m_id, TO_DATE(meetings_tbl.meeting_start + x));
    END LOOP;
    END;
    I am getting 3 errors:
    1) PL/SQL: ORA-00904: "MEETINGS_TBL"."M_ID": invalid identifier
    2) PLS-00357: Table,View Or Sequence reference 'MEETINGS_TBL.MEETING_END' not allowed in this context
    3) PL/SQL: ORA-00984: column not allowed here
    Maybe I'm not supposed to substitute ':NEW' with 'MEETINGS_TBL' ??
    Thanks for your help!
    John

  • Place a SUM of a selected column in an EASY CALENDAR region

    Hello,
    I'd like to SUM a particular field (SCHEDULE_TABLE.SCHEDULE_PERCENT_FORECAST)
    And place it in EASY CALENDAR. The idea is that if a resource had 3 records in the SCHEDULE_TABLE for a given date, the sum of the 3 SCHEDULE_PERCENT_FORECAST fields would appear as a Display Value inside the cell of EASY CALENDAR.
    I'm having trouble making this happen.
    What I've tried thus far is to create an Item in the calendar region and called it: P2_RESOURCEPERCENTSCHEDULED. In that Item, I took a shot at the SQL for the "Source Value Or Expression" and made the source type = "PL/SQL or Expression or Function" The SQL currently reads:
    select     sum(SCHEDULE_TABLE.SCHEDULE_PERCENT_FORECAST) as "SCHEDULE_PERCENT_FORECAST"
    from     "SCHEDULE_TABLE" "SCHEDULE_TABLE"
    where      "SCHEDULE_TABLE"."RESOURCE_ID" = P2_RESOURCE_ID
    and     "SCHEDULE_TABLE"."THE_DATE" = 11-JAN-08
    group by SCHEDULE_TABLE.SCHEDULE_PERCENT_FORECAST
    The field P2_RESOURCE_ID is from another region of the page where the user has previously selected the Resource.
    The field SCHEDULE_TABLE.THE_DATE is date field from the schedule table which should correspond to the date field in EASY CALENDAR. I used the value of 11-JAN-08 because I know I have 3 records for that date. I know the final SQL shouldn't look like that, but I didn't know how the SQL should look so that it would SUM for each date in the calendar.
    I hope this explains the issue well enough. I appeciate your help.
    Phil

    Hello,
    I discovered a big portion of my problem is that I wasn't adjusting the Region Source to identify the fields I needed for the calendar. My problem now is the construction of my SQL. Here's where it stands now.
    DECLARE
    Temp_Resource_ID NUMBER;
    BEGIN
    Temp_Resource_ID := P2_RESOURCE_ID;
    select SUM("SCHEDULE_TABLE"."SCHEDULE_PERCENT_FORECAST")
    as "SCHEDULE_PERCENT_FORECAST",
    "SCHEDULE_TABLE"."THE_DATE" as "THE_DATE",
    "SCHEDULE_TABLE"."RESOURCE_ID" as "RESOURCE_ID"
    from "SCHEDULE_TABLE" "SCHEDULE_TABLE"
    where "RESOURCE_ID" = "Temp_Resource_ID"
    group by "SCHEDULE_TABLE"."SCHEDULE_PERCENT_FORECAST";
    END;
    P2_RESOURCE_ID is an item from another region on the page where the user would have selected the Resource to view in the calendar.
    Temp_Resource_ID is a temporary field for use within the SQL
    The other fields are existing fields within the database
    The error I get is:
    1 error has occurred
    Query cannot be parsed, please check the syntax of your query. (ORA-06550: line 1, column 8: PLS-00103: Encountered the symbol "" when expecting one of the following: begin function package pragma procedure subtype type use form current cursor)
    Yet this general format of SQL seems to work in the SQL COMMANDS section of SQL WORKSHOP. Please let me know what I'm doing wrong.
    Thanks again for your help.

  • Skip Weekends when Inserting Date Ranges

    I am working on an application where I am populating a
    database with a date range based on a start date and an end date.
    The user enters the start and end dates, submits the form, and then
    I want to populate the database with all of the dates in the range,
    including the start date and the end date. This piece is working
    fine. The problem I'm having is, I cannot figure out a way to skip
    weekends and populate ONLY weekdays. Can anybody help???

    The functions DayofWeek or DayOfWeekAsString will identify
    the weekends for you.

  • Unable to copy calendar region to new page

    Hi,
    I've tried this several times, and have had the same result each time. Editing my page with a calendar region, and choosing the copy icon to copy it to another page, I'm presented with the dialog box for which page to copy to, but each time I try I get the error:
    1 error has occurred
    * Only one calendar is supported per page.
    I've checked the destination page, and there is no calendar region (or any other region for that matter) on that page.
    Thanks in Advance,
    -- cliff

    Scott, while I have your attention, could you have a look at this post?
    Possible Calendar Bug
    Thx,
    -- cliff

  • Skipping weekend in boundary event(timer)

    Hi,
    I have BPM project that contain a few human task flow for approval.  In every human task flow , I have set the boundary event (timer: interrupting event). I have set it to escalate to other project manager if the time cycle :3 days( 0 Months 3 Days 0:0:0).
    Right now, after I set this, every 3 day (include weekend) it will escalate to other project manager. Is there any way that I can do to skip the weekend? That means the calculation only calculate working days.
    I know the timer have an option to use expression. How can I use the expression to calculate working day?

    I haven't had the need yet to skip non-working days, but here's how I'd approach it.
    I would not use a boundary timer event for this escalation.  Instead, first set up a calendar using the Workspace that does not include weekends as working days.  Next, open the human task associated with the Interactive activity -> click the "Deadlines" tab -> check the checkbox in the upper right corner that says "Base Expiration on Business Calendar" -> for the "Task Durations Settings" dropdown, select "Escalate after" -> click the dropdown below it and change this to "By Expression" -> click the XPath expression builder to the right of the field -> from the dropdown under "Functions" select "BPM Functions".
    This is where it gets a bit tricky.  I'd look at the "getAbsoluteDurationFromBusinessCalendar()" method first.
    Hope this gets you going,
    Dan

  • Calendar app skipping events

    Once I set up an Event in Calendar, the default is that a notification appears on my desktop and on the screens of my iPhone and iPad.  In any event, that's how it works on my devices.
    Because many of my Events are to remind me of tasks/chores which need to be done, I chose also to be notified by email so I could close the alert on my desktop, but still be reminded of the task each time I look at my inbox and see the reminder there, and only delete it from the inbox when the task was accomplished.  This way, I don't have to hit Snooze over and over until the task is done.
    My particular frustration is this:  several of my Events, household tasks, are set up to appear every four days.  Since I have set up email notification, I can search for old notifications in Mail.  When I do so, I find that for a month or two, the email is there and the alert appears on my desktop every four days.  Then, for reasons I cannot determine, the notification will skip a date when it is supposed to notify me.
    E.g., https://db.tt/QUffjNyI
    You'll see several anomalies here: 
    1.  Although email reminders are set to be sent to my iCloud email address, on two occasions they went to another of my other email addresses.
    2.  The events are set to occur every four days, but you will see several days on which notifications were to be sent, none were.  E.g., July 20 and 28; September 22.
    3.  Really bizarre:  twice, instead of showing that the notification went to my email account, it went to "All Mail".  What's THAT all about?
    Is there ANY way to fix this?  I really don't want to have to pay $20 for a replacement for Calendar if I can avoid doing so.
    Many thanks.

    is this the standard calendar app? if so than yes
    here you find some information about the back up, which data will be safed there
    http://support.apple.com/kb/HT1766?viewlocale=en_US

  • Skipping weekends while setting the expiration duration in Human task

    Hi,
    I need the task to expire after 5 days.
    If I give a 'Fixed Duration' of 5 days, that would mean weekends are included as well.
    How can I avoid this?
    Any help will be greatly appreciated.
    Thanks,
    Vivek

    Hi Bill,
    Thanks for the reply.
    I have done the the first part of what you suggested, namely:
    - Created a calendar called QCalendar (Monday to Friday, 8 hours)
    - Created a Organizational Unit called QUnit and associated the QCalendar with it.
    - Added a group called QGroup to the Org Unit
    - Created a task with one stage, and assignee as QGroup. Task Expiration is set at 10 days. 'UseBusinessCalendar' attribute is set to true.
    This does not work. Weekends are still considered.
    I felt I was missing something, and I believe that is what you mention when you say - 'Here's where I'm not entirely certain about this... I believe you will have to map the name of the org unit into the task payload using an association.'
    Can you please elaborate on that part?
    Thanks again,
    Vivek

  • Calendar Region format error?

    Until recently, my Calendar app week view started on Monday.  It now shows as Sunday with no apparent ability to change it.  My Region format is set to Australia, which should have resulted in the format being correct (it was until recently).  How do I change my preference to have the week view commence on a Monday once again?
    Thanks! :)

    I realise that this is an older post but your problem is something that bugs me too!
    The problem started with the iOS 5 upgrade where the International/Regional settings were changed making the calendar start date for Australis Sunday instead of Monday as it had been previously.
    There is no way I have found to correct it apart from changing your international/region setting to something that has Monday as the start day, but this also afffects a number of other settings that you probably don't want changed.
    I've been submitting constant feedbacks to Apple hoping that each new iOS update will fix this but no such luck.
    I'll keep submitting them in the hope that one day they will listen and fix it... hopefully before I dump my iPhone and gowith another platform that does work.

  • Scheduling events by skipping weekends

    HI,
    I am trying to create Academic events (E) using relative start and end units. For example if i am scheduling a 3 day event starting from 6th May 2011 to 8th May 2011 unknowingly that  7th and 8th will be weekend and there will be no class for these two days. Is it possible that system will identify weekends and use next working days and change or suggest to change the relative dates as from 6th May to 10th May.
    Regards
    Vinod Kumar

    Hi Vinod,
    Did you relata a Factory Calender (from HR) to infotype 1027 of the academic calender that you are using?
    The SAP standard factory calendar (from HR) can be used for academic calendars.  The factory calendar is used to define public or university-specific holidays which in turn can be recognized by event planning. Factory calendars can, e.g., be used for lengthier interruptions within a given time limit.
    The system uses the first factory calendar it finds in the evaluation path to determine the days off. It does not take into account the factory calendars assigned to higher-level objects of the academic structure. If the system does not find a factory calendar in the specified evaluation path and no factory calendar is assigned to the top organizational unit, it uses the default calendar for the client (administered by Training and Event Management - TEM).
    Within the factory calender also the working days are defined. See also IMG: Student Lifecycle Management\ Basic Settings \ Control Days Off\ Check Factory Calendar (factory calender, definition).
    Hope this helps.
    Rob

  • Gregorian Calendar & Regional Settings effect

    I have a problem where the last week of the month gets cut off in my Calendar display.
    (e.g. Feb has 24 days instead of 28 yr2002)
    It occurs for all months except for March and June when the last day falls on a Sunday.
    It only happens when the Regional Settings is set as English (United Kingdom). No problem for US.
    Have used the Gregorian Calendar class. Is this a known issue?

    Do you have a sample code that shows this? Which version of java do you use?

  • ApEx Calendar Region - enhanced behavior using JavaScript

    Hi everyone,
    I recently wrote about the built in calendar. Comments/remarks are welcome! :)
    http://insum-apex.blogspot.com/2008/07/apex-calendar-enhanced-behavior.html
    Louis-Guillaume
    Homepage : http://www.insum.ca
    Blog : http://insum-apex.blogspot.com

    Hi Emma,
    You could do it with an POP-UP LOV and Dynamic Action.
    Dynamic Action
    - Change
    - item P65_STAFF_ID
    True Actions
    1 - PL/SQL block;
         - PL/SQL Code in this block you can get the last of first date for the absence of the STAFF_ID and put it in the date item for the calendar (eg P65_CALENDAR_DATE);
         - Page Items to Submit P65_STAFF_ID
         - Page Items to Return P65_CALENDAR_DATE
    2 - Execute Javascript Code
         - apex.widget.calendar.ajax_calendar('M','same',$v('P65_CALENDAR_DATE'));
    This way the calendar will be refreshed and set to the date in P65_CALENDAR_DATE.
    You can also put "null;" in the PL/SQL block, leave the Page Items to Return empty and remove the ",$v('P65_CALENDAR_DATE')" part from the Javascript code. This way you do not open the calendar at the right date.
    I made a small example at http://apex.oracle.com/pls/apex/f?p=14257:4 (login as demo/demo).
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.

  • 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 region.

    Hi,
    I am new to APEX. I have a requirement. I have a table for events. This has the date and event name. I would like to show a calendar and would like to show these events in cells where ever necessary. For example Thanksgiving is a holiday. I would like to show that date in the calendar with the text in the table for that date. Is there a sample or how to document for this control ? I am using APEX 3.0.1. Appreciate any help on this. In addition, is it possible to give maintenance on this calendar also ? If someone clicks on a date, I want to tke them to a page where they can enter the event details.
    Thanks
    Naresh

    Hi,
    I am new to APEX. I have a requirement. I have a table for events. This has the date and event name. I would like to show a calendar and would like to show these events in cells where ever necessary. For example Thanksgiving is a holiday. I would like to show that date in the calendar with the text in the table for that date. Is there a sample or how to document for this control ? I am using APEX 3.0.1. Appreciate any help on this. In addition, is it possible to give maintenance on this calendar also ? If someone clicks on a date, I want to tke them to a page where they can enter the event details.
    Thanks
    Naresh

Maybe you are looking for

  • 2 Ipods/1 account or separate accounts?

    Is it possible to use one Itunes account to service two Ipod Touch's (each one requiring different content)? Alternatively, can I have 2 Itunes accounts using the same debit card? How would I do that? My second child will shortly acquire her own Ipod

  • Writing custom program errors to SLOG

    I am looking for a way to put errors from custom program ( which would run as job) to system log, which should be visible via SM21. Can any of you help me with a function module with which I can achieve it ?

  • Can't Change Plan Because of Pending Change

    "You currently have a pending order for this line of service. You have  the option to return to My Verizon to change your calling plan after the  order has been completed" I need to cancel this pending change so I can change this months plan. Can any

  • TS1398 useless for me

    i've tried all the solutions above but didn't work for me, my iphone still doesn't accept my router password,i guess it's a bug in the latest ios version i dont know why the specialists and responsible crews dont pay any attention about this problem,

  • Creating customize AI image for X86 failed

    Hi I Have Solaris 12 build 29 OS with me. I have deployed a local repository for same and its working fine for upgrading/install the package. Now i am trying to create a new AI image for x86 system using below command . # distro_const build /export/h