Workday Calendar - Organization

Hi Guys,
I am creating an inventory organization in 11.5.10 i have completed the following:-
Name XXMANUFACTURING
Type Plant
FRom date 01-JAN-1958
Location XXManufacturing
Location Address is populated
Then under Organizations Classifications i add Inventory Organization and complete the following:-
Acccounting information SOB= Vision Operations, Legal Entity = Vision Operations, Operating Unit = Vision Operations which is all fine
When i go into Inventory Parameters to add a master inventory org VISION OPERATIONS, i cannot select any work day calendars get the following error:
FRM-40212-Invalid value for field calendar_code.
I know that the following vision1 calander is setup and can see this in inventory
Can anybody tell me where i am going wrong...?
Thanks
Bal

Hi Bal,
Yes, you can use other site's workday calender if it is matching with your current site's Workday Calendar.. But still it is wise to have a separte Workday calender per site as sometime the National Holidays (which we defined under Calender exception template : Inv Setup --> Organizations --> Calender exception Templates ) are in different dates of different countries (say Independence Day).. If your 2 Orgs are under same country with same workday patten and Holidays then you can refer 1 Calender for both.
Hope it helps.
Regards,
S.P DASH

Similar Messages

  • [10g] Best way to populate and update multiple workday calendars?

    I would like to create multiple workday calendars, and be able to update them as needed. Each workday calendar would be for at most 5 years (right now), although it is possible that at some point in the future, I might want to extend that.
    A workday calendar can apply to a single resource or a group of resources. Each individual is part of a resource group. What I'm thinking is that if an individual resource has an associated workday calendar, that calendar gets used, but if it doesn't, it uses the calendar of it's resource group, and if the group doesn't have one, the default calendar gets used. Theoretically, each resource could have its own workday calendar, and there would be probably 500 resources at most. In practice, many resources will have the same or similar workday calendars.
    Each calendar will be based on one of 3 standards: all calendars days are work days, all days but weekends are workdays, or all days except weekends and holidays are workdays. (Weeks start on Sunday, and Saturday and Sunday are weekends.) The standard calendar would then be modified to create each unique calendar as needed. For example, if a resource was an employee, their calendar might be the standard of not working weekends or holidays, but could also include a one week vacation in February and a one week vacation July. I'm not sure what the best approach is for defining a calendar in the first place and then being able to update it as an employee decides on vacations (or whatever other situation might affect workdays).
    Furthermore, I'd really like to be able to incorporate work hours, which could vary by day, though would likely be fairly standard. I don't know if this information belongs in the workday table, or as something separate to be combined with the workday table.
    My ultimate purpose in doing all of this is to try to schedule a very large project amongst many resources.
    Here is some sample data illustrating where I'm at so far:
    CREATE TABLE     work_groups
    (     group_id     VARCHAR2(5)     NOT NULL
    ,     group_name     VARCHAR2(25)     
    ,     group_desc     VARCHAR2(200)
    ,     CONSTRAINT     work_groups_pk     PRIMARY KEY (group_id)
    INSERT INTO     work_groups
    VALUES     ('A','Group A','Group A description');
    INSERT INTO     work_groups
    VALUES     ('B','Group B','Group B description');
    INSERT INTO     work_groups
    VALUES     ('C','Group C','Group C description');
    INSERT INTO     work_groups
    VALUES     ('D','Group D','Group D description');
    CREATE TABLE     resources
    (     resource_id     VARCHAR2(20)     NOT NULL
    ,     type          VARCHAR2(1)
    ,     description     VARCHAR2(200)
    ,     group_id     VARCHAR2(5)     
    ,     CONSTRAINT     resources_pk     PRIMARY KEY (resource_id)
    ,     CONSTRAINT     group_id_fk     FOREIGN KEY (group_id)
                             REFERENCES  work_groups (group_id)
    INSERT INTO     resources
    VALUES     ('A001','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A002','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A003','M','text here','A');
    INSERT INTO     resources
    VALUES     ('B001','M','text here','B');
    INSERT INTO     resources
    VALUES     ('B002','M','text here','B');
    INSERT INTO     resources
    VALUES     ('C001','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C002','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C003','M','text here','C');
    INSERT INTO     resources
    VALUES     ('D001','M','text here','D');
    INSERT INTO     resources
    VALUES     ('12345','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12346','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12347','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12348','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12349','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12350','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12351','L','text here','D');I'm not sure if I should have a separate table to define a relationship between a resource or resource group and a calendar id (each resource or group would only be able to be assigned 1 unique calendar id, though multiple resources/groups could share the same calendar id), or if I should add an extra column to each of the above tables to assign the calendar id.
    CREATE TABLE     calendars
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_title     VARCHAR2(25)
    ,     cal_desc     VARCHAR2(200)
    ,     CONSTRAINT     calendars_pk     PRIMARY KEY (cal_id)
    INSERT INTO     calendars
    VALUES     (1,'Default','This is the default calendar to use for workdays');
    INSERT INTO     calendars
    VALUES     (2,'All Days','This calendar treats all days as workdays');
    INSERT INTO     calendars
    VALUES     (3,'Weekends Off','This calendar gives weekends off, but no holidays');
    INSERT INTO     calendars
    VALUES     (4,'Holidays Off','This calendar gives weekends and holidays off');
    CREATE TABLE     workdays
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_date     DATE          NOT NULL
    ,     cal_year     NUMBER(4)
    ,     work_day     NUMBER(3)
    ,     work_date     DATE
    ,     work_week     NUMBER(2)
    ,     work_year     NUMBER(4)
    ,     work_days     NUMBER(5)
    ,     cal_days     NUMBER(6)
    ,     CONSTRAINT     workdays_pk     PRIMARY KEY (cal_id, cal_date)
    ,     CONSTRAINT     cal_id_fk     FOREIGN KEY (cal_id)
                             REFERENCES  calendars (cal_id)
    );cal_id     - refers to calendars table
    cal_date - the actual calendar date
    cal_year - the actual calendar year for the given calendar date
    work_day - workday in that work year (resets each year, starting at 1, is 0 if that calendar date is not a work day)
    work_date - if a work day, the calendar date, if not, the calendar date of the last work day (or in the first week of the calendar, the next work day)
    work_week - work week of the work date (numbered starting at 1 , reset each year at the first Sunday of the year, before first Sunday will have last week of previous year, and the first year of the calendar will have all days prior to Sunday included in the first week, so the first week of a calendar could be more than 7 days)
    work_year - year of the work date
    work_days - shop day of the work date (except in first week of the calendar, before first shop day is 0), starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
    cal_days - calendar day of the work date, starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
    Assuming the calendar starts on 1/1/2010 (these values are approximately correct--I just made my best guess to provide sample data):
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,1);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,2);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,3);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/04/2010','mm/dd/yyyy'),2010,1,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,1,4);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/05/2010','mm/dd/yyyy'),2010,2,TO_DATE('01/05/2010','mm/dd/yyyy'),1,2010,2,5);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/23/2010','mm/dd/yyyy'),2010,250,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,357);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/24/2010','mm/dd/yyyy'),2010,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,358);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,366);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),1,2011,250,367);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2011','mm/dd/yyyy'),2011,1,TO_DATE('01/03/2010','mm/dd/yyyy'),1,2011,251,368);I've tried googling workday calendars and similar things, but I can't seem to find anything that fits my situation. If anyone could even point me in the right direction, I'd appreciate it.
    I'm working in 10g (XE).
    Edited by: user11033437 on Jul 19, 2011 3:05 PM
    Also, I don't know if it would make more sense to just somehow store the days each resource/group doesn't work, and generate a workday calendar on the fly as needed, rather than trying to store possibly thousands of dates in the database??

    Hi,
    Interesting problem!
    I'm not sure exactly what you want, however. Are you looking for a way to answer questions such as "For resource A001, what are the first 6 work days on or after January 4, 2010?" or "How many work days does resource A001 have between January 4 and January 12, 2010?" Post a few examples of the questions you might ask, and the results you would want, given the sample data you posted.
    user11033437 wrote:
    I would like to create multiple workday calendars, and be able to update them as needed. Each workday calendar would be for at most 5 years (right now), although it is possible that at some point in the future, I might want to extend that.
    A workday calendar can apply to a single resource or a group of resources. Each individual is part of a resource group. Is a "resouce group" the same as a "work group"?
    if a resource moves from one resource group to another, do you need to keep track of the historical information? For example, if resource A001 does not havfe its own calendar, and is part of work_group A on Juanuary 1, 2010, but then moves to work_group B on July 1, 2010, will you need to answer questions like "How many work days did A001 have in 2010", where you have to remember that the work_group A calendar apllied during the first half of the year, but the work_group B calendar was in use for the second half?
    What I'm thinking is that if an individual resource has an associated workday calendar, that calendar gets used, but if it doesn't, it uses the calendar of it's resource group, and if the group doesn't have one, the default calendar gets used. Theoretically, each resource could have its own workday calendar, and there would be probably 500 resources at most. In practice, many resources will have the same or similar workday calendars.
    Each calendar will be based on one of 3 standards: all calendars days are work days, all days but weekends are workdays, or all days except weekends and holidays are workdays. (Weeks start on Sunday, and Saturday and Sunday are weekends.) The standard calendar would then be modified to create each unique calendar as needed. For example, if a resource was an employee, their calendar might be the standard of not working weekends or holidays, but could also include a one week vacation in February and a one week vacation July. I'm not sure what the best approach is for defining a calendar in the first place and then being able to update it as an employee decides on vacations (or whatever other situation might affect workdays).It seems like the simplest thing would be to record only the exceptions to the base calendar. That is, given that the employee normally abides by the "no weekends or holidays" schedule, just enter 5 rows for that particular employee to mark the 5 work days he'll miss in February. If the emplyoee is going to work Saturdays in June (in addition to his regular schedule), then enter one row for each Saturday in June.
    >
    Furthermore, I'd really like to be able to incorporate work hours, which could vary by day, though would likely be fairly standard. I don't know if this information belongs in the workday table, or as something separate to be combined with the workday table. That depends on exactly what you want. Post a couple opf examples of questions you would want to answer, and the actual answers, given the sample data you post.
    My ultimate purpose in doing all of this is to try to schedule a very large project amongst many resources.
    Here is some sample data illustrating where I'm at so far:
    CREATE TABLE     work_groups
    (     group_id     VARCHAR2(5)     NOT NULL
    ,     group_name     VARCHAR2(25)     
    ,     group_desc     VARCHAR2(200)
    ,     CONSTRAINT     work_groups_pk     PRIMARY KEY (group_id)
    INSERT INTO     work_groups
    VALUES     ('A','Group A','Group A description');
    INSERT INTO     work_groups
    VALUES     ('B','Group B','Group B description');
    INSERT INTO     work_groups
    VALUES     ('C','Group C','Group C description');
    INSERT INTO     work_groups
    VALUES     ('D','Group D','Group D description');
    CREATE TABLE     resources
    (     resource_id     VARCHAR2(20)     NOT NULL
    ,     type          VARCHAR2(1)
    ,     description     VARCHAR2(200)
    ,     group_id     VARCHAR2(5)     
    ,     CONSTRAINT     resources_pk     PRIMARY KEY (resource_id)
    ,     CONSTRAINT     group_id_fk     FOREIGN KEY (group_id)
                             REFERENCES  work_groups (group_id)
    INSERT INTO     resources
    VALUES     ('A001','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A002','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A003','M','text here','A');
    INSERT INTO     resources
    VALUES     ('B001','M','text here','B');
    INSERT INTO     resources
    VALUES     ('B002','M','text here','B');
    INSERT INTO     resources
    VALUES     ('C001','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C002','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C003','M','text here','C');
    INSERT INTO     resources
    VALUES     ('D001','M','text here','D');
    INSERT INTO     resources
    VALUES     ('12345','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12346','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12347','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12348','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12349','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12350','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12351','L','text here','D');
    It looks like all the rows have the same description. if description matters in this problem, wouldn't it be better to illustrate how it matters, by having different descrioptions that appeared in different outputs? On the other hand, if description doesn't play any role in this problem, then why include in the sample data at all?
    I'm not sure if I should have a separate table to define a relationship between a resource or resource group and a calendar id (each resource or group would only be able to be assigned 1 unique calendar id, though multiple resources/groups could share the same calendar id), or if I should add an extra column to each of the above tables to assign the calendar id.
    CREATE TABLE     calendars
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_title     VARCHAR2(25)
    ,     cal_desc     VARCHAR2(200)
    ,     CONSTRAINT     calendars_pk     PRIMARY KEY (cal_id)
    INSERT INTO     calendars
    VALUES     (1,'Default','This is the default calendar to use for workdays');
    INSERT INTO     calendars
    VALUES     (2,'All Days','This calendar treats all days as workdays');
    INSERT INTO     calendars
    VALUES     (3,'Weekends Off','This calendar gives weekends off, but no holidays');
    INSERT INTO     calendars
    VALUES     (4,'Holidays Off','This calendar gives weekends and holidays off');
    What is is cal_id=1? How will it differ from the other three?
    CREATE TABLE     workdays
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_date     DATE          NOT NULL
    ,     cal_year     NUMBER(4)
    ,     work_day     NUMBER(3)
    ,     work_date     DATE
    ,     work_week     NUMBER(2)
    ,     work_year     NUMBER(4)
    ,     work_days     NUMBER(5)
    ,     cal_days     NUMBER(6)
    ,     CONSTRAINT     workdays_pk     PRIMARY KEY (cal_id, cal_date)
    ,     CONSTRAINT     cal_id_fk     FOREIGN KEY (cal_id)
                             REFERENCES  calendars (cal_id)
    );I suspect there's a simpler way, especially if there's a regular order to day types (e.g., people who get holidays off normally get weekeneds, too).
    Perhaps you could have a table like this, that had one row per day:
    CREATE TABLE  days
    (       a_date      DATE     PRIMARY KEY
    ,     day_type    NUMBER (1)              -- 1=Weekend, 2=Holiday, 3=Other
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-01', 2) /* New Years Day */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-02', 1) /* Saturday */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-03', 1) /* Sunday */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-04', 3) /* Monday - back to work */;
    ...Another table (I'll call it work_sched) shows what resources work when:
    CREATE TABLE  work_sched
    (       p_key          NUMEBR     PRIMARY KEY     -- Arbitrary Unique ID
    ,     group_id         VARCHAR2 (5)          -- Exactly one of the columns group_id or ...
    ,     resource_id      VARCHAR2 (20)          --     ... resource_id will always be NULL
    ,     a_date              DATE
    ,     works_on     NUMBER (1)          -- works when days.day_type >= this value
    ,     remarks          VARCHAR2 (40)
    );To indicate that work_group 'L' normally works on type 3 days only (that is, weekends or holidays):
    INSERT INTO work_sched (group_id, a_date, works_on) VALUES ('L', NULL, 3);(Let's assume that p_key is populated by a trigger.)
    The NULL in the a_date column indicates that this applies to all days, unless overridden by another row in the work_sched table. Instead of NULL, mabe some impossible date (such as Jan. 1, 1900) would be more convenient to indicate defaults.
    Exceptions to this schedule would be indicated by other rows in work_sched. For example, if '12345' is the employee who's on vacation for a week in February:
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-08', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-09', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-10', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-11', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-12', 4, 'Vacation');And if that same employee works Satudays in June:
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-05', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-12', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-19', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-26', 1, 'Fiscal year-end crunch');When finding the number of work days, we would join work_sched to days using both conditions:
    ON   work_sched.date           = days.a_date
    AND  work_sched.works_on  <= days.day_type
    cal_id     - refers to calendars table
    cal_date - the actual calendar date
    cal_year - the actual calendar year for the given calendar date
    work_day - workday in that work year (resets each year, starting at 1, is 0 if that calendar date is not a work day)
    work_date - if a work day, the calendar date, if not, the calendar date of the last work day (or in the first week of the calendar, the next work day)
    work_week - work week of the work date (numbered starting at 1 , reset each year at the first Sunday of the year, before first Sunday will have last week of previous year, and the first year of the calendar will have all days prior to Sunday included in the first week, so the first week of a calendar could be more than 7 days)
    work_year - year of the work date
    work_days - shop day of the work date (except in first week of the calendar, before first shop day is 0), starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
    cal_days - calendar day of the work date, starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)This is a lot of denormalized data. that is, you should be able to easily deduce cal_year from cal_date, but sometimes it is convenient to store denormalized data.
    Assuming the calendar starts on 1/1/2010 (these values are approximately correct--I just made my best guess to provide sample data):
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,1);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,2);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,3);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/04/2010','mm/dd/yyyy'),2010,1,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,1,4);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/05/2010','mm/dd/yyyy'),2010,2,TO_DATE('01/05/2010','mm/dd/yyyy'),1,2010,2,5);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/23/2010','mm/dd/yyyy'),2010,250,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,357);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/24/2010','mm/dd/yyyy'),2010,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,358);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,366);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),1,2011,250,367);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2011','mm/dd/yyyy'),2011,1,TO_DATE('01/03/2010','mm/dd/yyyy'),1,2011,251,368);I've tried googling workday calendars and similar things, but I can't seem to find anything that fits my situation. If anyone could even point me in the right direction, I'd appreciate it.
    I'm working in 10g (XE).
    Edited by: user11033437 on Jul 19, 2011 3:05 PM
    Also, I don't know if it would make more sense to just somehow store the days each resource/group doesn't work, and generate a workday calendar on the fly as needed, rather than trying to store possibly thousands of dates in the database??That's what I was thinking, too.
    Post some sample data (if it's not what you've already posted), a couple of sample questions, and the exact answers you want from each question given that sample data.

  • Does EAM Forecasting considers off days mentioned in Workday Calendar?

    Hi EAM Guru,
    I need to know if PM Schedule considers off days while forecasting work orders.
    Requirement: Let's suppose Maintenance Workbench is showing forecasted work orders on 25-March-2013. But if 25-March-2013 is the off day mentioned in the workday calendar or it is mentioned as off day in the exception list then what would be the behavior of maintenance workbench?
    User requires that work orders should not be forecasted in off days mentioned in workday calendar.
    Thanks

    Yes.
    Infinite Scheduler within eAM will do automatic scheduling and it does consider calendar and shift defined for maintenance Org.
    Please note, current capability (12.1) does not consider shift exceptions.
    HTH.
    Kamal

  • Inv Workday Calendar

    I am curious about why the Inventory Workday calendar for a given months lets say Sep 09 ( assuming 4/4/5 and work 5 days and 2 off) shows August 31st as first working day on Monday and also shows October 1st and 2nd on thursday and Friday?

    What if operations are set OFF(via shift function in workday calendar) but Purchase dept is allowed to place POs??

  • Contacts & Calendar Organizer on Visio

    I would really like to see a more functional organizer - something with alarms or popup screen similar to Palm software. Also the ability to enter appointments, contacts, events, etc. from the unit rather than only from the PC. It seems to me that the player would be a lot more useful to me if it had these features.

    @ wulframbosch,
    Welcome to the forum! You can do this by syncing the calendar to Nokia Suite. After this select Calendar > Options > Delete entry > Delete all in the device. When you want to sync the data back, please follow the sync instructions.
    Hope this helped!
    Jampe
    If the answer solves your issue, please click the ACCEPT AS SOLUTION button so other users can benefit from it as well. Giving a kudos (the white star) if my answer has helped will be appreciated.

  • E51 - adding a voice clip to the calendar/organize...

    Being a 'business phone' I am quite surprised to find that I cannot set a new note in calendar and add a voice clip in the E51 and say have that voice clip play at a specific day/date/time when its reached. All I can see you can do is send the voice clip by mms/infra red/Bluetooth. Maybe there is a third party app available for this that I can download? I have tried active note but that does not seem to integrate with the calendar either.
    Many thanks,
    Andy.

    You can bring a connected clip to the primary storyline. You just can't over-write the existing clip. Once the connected clip is on the primary. you could delete the clip it was previously attached to,
    If you want t make a clip on the primary story line a connected clip, select it and use the Lift from Storyline command (keyboard shortcut, Command+Option-up arrow),
    Russ

  • Issues with calendar invites from Outlook address that come to my gmail on iPhone

    I have been trying for HOURS to get to the bottom of this iPhone calendar invite problem I'm having. I'll try to summarize.
    I LOVE iCal and I want to continue using it. Though I have a personal mid-2010 Macbook Pro, I don't use it too much (my company functions solely on Windows). I almost exclusively use my iPhone 4S for calendar purposes. Yes, my calendar is synced up to iCloud. I have a gmail account as my primary apple ID and my mail account on the iPhone is synced with gmail. I've been very annoyed lately as I have been receiving a lot of calendar invites from a friend who has Outlook, and I cannot accept or decline when I received her invite. The events are added to my calendar, grayed out.
    After much research, I realized that I had to setup my gmail account as an Exchange account on my iPhone, which I did. I then sent myself a test invite from Lotus Notes, and low and behold, I can now accept and decline!
    ..but I am VERY particular about my calendar organization, and I want to be able to choose which calendar the event is added to; however, it is added to my exchange (gmail) calendar, I guess because it was received on the gmail server. I want my calendar invites to be received on my ios device calendar! I don't know if having people use my .me account would help, but I don't want to tell everyone to change the email address to which they send me notifications, because I want to continue to receive mail at my gmail account (like the many calendars, I have many folders there and have everything set up the way I want it).
    I get emails concerning work, events, tennis matches, etc via my gmail account, and I want to sort them to the correct calendar when the invite comes to my gmail while STILL maintaining the functionality to accept and decline invites.
    Is this a crazy question?

    I posted this question a while ago and didn't receive any responses but there are a lot of people who have viewed it and 10 have said they have the same question so I thought I would update you that I added my nanny to my exchange server account (created an email for her) and I send all invites to that email address and they work.  So sending invites from an exchange server account to a non-exchange server account apparently is a bug so to solve it, get on an exchange server I guess.

  • Can Not Sync Contacts and Calendar to iPhone Since iTunes Upgrade to 7.6

    Hello, I have an iPhone and iTunes installed on my PC--which is running Windows XP Home Edition 2002 SP2, and I only sync my Contacts and Calendar using the sync functionality through iTunes and MS Outlook 2007. I was on iTunes 7.4 and everything worked fine. I just upgraded to iTunes 7.6, and now I can not get my new contacts and calendar info from Outlook to sync with my iPhone anymore. I get this error message:
    The program "C:\Program Files\Common Files\Apple\Mobile Device Support\bin\OutlookSyncClient.exe" --sync com.apple.Outlook --entitynames com.apple.calendars.Attendee,com.apple.calendars.Calendar,com.apple.calendars.D isplayAlarm,com.apple.calendars.Event,com.apple.calendars.Organizer,com.apple.ca lendars.Recurrence,com.apple.calendars.Task caused a problem and is going to close.
    Is anyone familiar or know of the solution?
    Thanks!

    Thanks, but as I've said I've tried all of that described in the reference you've kindly given. I don't have a local cache, and hence no PST files. The only one I have is an OST file which I have checked for integrity using the Microsoft supplied tools. I have switched to local PST (a suggestion given in another thread), and found that not to work either, so have switched back to non cached. I have even renamed the OST file to .BAK, and had it rebuilt. Again to no avail. There is a bona fide bug here. The http://docs.info.apple.com/article.html?artnum=306635 article does only say "This may be due to the format of the Outlook Personal Storage File (.PST)", so I guess as the operative word is "may", its not a guarantee of this being the solution.
    Also I'm not syncing my contacts, I'm only doing the calendar nothing else.
    Additionally, this used to work, so your hypothesis, of the "bad data", being synced in 7.6 and then not being able to be subsequently budged is a definate goer I think. But the trick would be to work out what the bad data is. I'm assuming the source of the bad data is the iphone, so I've deleted old calendar in outlook entries I know to have come from the iPhone, that has, as yet, been a fruitless exercise.
    I do thank you though for your help though, I'll be scouring the internet for any tidbits of information which might help, and I'll post them back here if I find the solution, or anything which may help others unfortunate enough to be in this situation.

  • I miss my calendar sync , outlook 2007 to iphone  4 - ISyncInvalidRecordException

    I miss my calendar sync , outlook 2007 to iphone  4 - ISyncInvalidRecordException.
    attached part of the record of itunes:
    [4832 @ Wed May 23 19:28:30 2012] [_ISDVLog AppleMobileSync.exe] com.apple.MobileSync.8d0b9af1fd44aee05905f7ff661ab607cb0da9b0: fast sync com.apple.calendars.Event, com.apple.calendars.Organizer, com.apple.calendars.Attendee, com.apple.calendars.CalendarOrder, com.apple.calendars.DisplayAlarm, com.apple.calendars.Calendar, com.apple.calendars.AudioAlarm, com.apple.calendars.Recurrence
    [3040 @ Wed May 23 19:28:30 2012] [_ISDVLog com.apple.Outlook.client.exe] com.apple.Outlook: slow sync com.apple.calendars.Calendar, com.apple.calendars.DisplayAlarm, com.apple.calendars.Event, com.apple.calendars.Recurrence
    [3040 @ Wed May 23 19:28:30 2012] [_ISDVLog com.apple.Outlook.client.exe] com.apple.Outlook: prepare to slow sync com.apple.calendars.Calendar,com.apple.calendars.DisplayAlarm,com.apple.calenda rs.Event,com.apple.calendars.Recurrence
    [3040 @ Wed May 23 19:28:44 2012] [_ISDVLog com.apple.Outlook.client.exe] ISyncSession record validation failure: Value pushed for property triggerdate on com.apple.calendars.DisplayAlarm is not of expected class NSCalendarDate (calendar date), rather __NSDate.
    [3040 @ Wed May 23 19:28:44 2012] [YSLog com.apple.Outlook.client.exe] objcMain caught an exception:
    name       : ISyncInvalidRecordException
    reason     : ISyncSession record validation failure: Value pushed for property triggerdate on com.apple.calendars.DisplayAlarm is not of expected class NSCalendarDate (calendar date), rather __NSDate.
    user info  : (null)
    call stack : (
    How i can solve this problem?

    Welcome to the forums
    I like how you've posted all the steps you took, it make our work a lot easier!
    Try deleting the intellisync folder according to this guide: http://www.blackberry.com/btsc/KB11703
    Kijana
    Please remember to:
    1. Mark Accept as Solution on the appropriate post once your issue has been resolved
    2. Give Kudos to helpful posts (click the star next to the post)
    Thanks

  • [8i] Help with function with parameters (for workday calculation)

    Let me start by saying, I've never written a function before, and I don't have access to create a function in my database (i.e. I can't test this function). I'm trying to come up with a function that I can ask my IT department to add for me. I'm hoping someone can take a look at what I've written and tell me if it should work or not, and if this is the right way to go about solving my problem.
    I am trying to create a function to do a very simple workday calculation (adding/subtracting a particular number of workdays from a calendar date).
    The database I'm working with has a table with the workday calendar in it. Here is a sample table and sample data, representative of what's in my workday calendar table:
    CREATE TABLE caln
    (     clndr_dt     DATE,
         shop_days     NUMBER(5)
         CONSTRAINT caln_pk PRIMARY KEY (clndr_dt)
    INSERT INTO     caln
    VALUES (To_Date('01/01/1980','mm/dd/yyyy'),0);
    INSERT INTO     caln
    VALUES (To_Date('01/02/1980','mm/dd/yyyy'),1);
    INSERT INTO     caln
    VALUES (To_Date('01/03/1980','mm/dd/yyyy'),2);
    INSERT INTO     caln
    VALUES (To_Date('01/04/1980','mm/dd/yyyy'),3);
    INSERT INTO     caln
    VALUES (To_Date('01/05/1980','mm/dd/yyyy'),3);
    INSERT INTO     caln
    VALUES (To_Date('01/06/1980','mm/dd/yyyy'),3);
    INSERT INTO     caln
    VALUES (To_Date('01/07/1980','mm/dd/yyyy'),4);
    INSERT INTO     caln
    VALUES (To_Date('01/08/1980','mm/dd/yyyy'),5);
    INSERT INTO     caln
    VALUES (To_Date('01/09/1980','mm/dd/yyyy'),6);
    INSERT INTO     caln
    VALUES (To_Date('01/10/1980','mm/dd/yyyy'),7);
    INSERT INTO     caln
    VALUES (To_Date('01/11/1980','mm/dd/yyyy'),8);
    INSERT INTO     caln
    VALUES (To_Date('01/12/1980','mm/dd/yyyy'),8);
    INSERT INTO     caln
    VALUES (To_Date('01/13/1980','mm/dd/yyyy'),8);
    INSERT INTO     caln
    VALUES (To_Date('01/14/1980','mm/dd/yyyy'),9);The actual table includes from 1/1/1980 though 12/31/2015.
    I've written (and validated) this parameter query which does my workday (mday) calculation:
    SELECT     cal.clndr_dt
    FROM     CALN cal
         SELECT     cal.shop_days+:mdays     AS new_shop_days
         FROM     CALN cal
         WHERE     cal.clndr_dt     =:start_date
         ) a
    WHERE     cal.shop_days     = a.new_shop_days
    AND     ROWNUM          =1
    ORDER BY     cal.clndr_dt;Based on this query, I've created the following function (and I have no clue if it works or if the syntax is right, etc.):
    CREATE OR REPLACE FUNCTION add_mdays
         (start_date     IN DATE,
         mdays          IN NUMBER(5))
    RETURN     DATE
    IS
         new_date DATE;
    BEGIN
         SELECT     cal.clndr_dt
         FROM     CALN cal
              SELECT     cal.shop_days+mdays     AS new_shop_days
              FROM     CALN cal
              WHERE     cal.clndr_dt     =start_date
              ) a
         WHERE     cal.shop_days     = a.new_shop_days
         AND     ROWNUM          =1
         ORDER BY     cal.clndr_dt;
         RETURN     new_date;
    END add_mdays;  //edit 9:31 AM - noticed I left off this bitI'm also not sure how to have the function handle results that would return a date outside of the date range that is in the table (Before 1/1/1980 or after 12/31/2015--or, another way to look at it is, before the MIN value of caln.clndr_dt or after the MAX value of caln.clndr_dt).
    My goal is to be able to use the function in a situation like the following:
    First, here's a sample table and data:
    CREATE TABLE orders
    (     ord_no          NUMBER(5),
         plan_start_dt     DATE,
         CONSTRAINT orders_pk PRIMARY KEY (ord_no)
    INSERT INTO orders
    VALUES (1,To_Date('01/08/1980','mm/dd/yyyy'));
    INSERT INTO orders
    VALUES (2,To_Date('01/09/1980','mm/dd/yyyy'));
    INSERT INTO orders
    VALUES (3,To_Date('01/10/1980','mm/dd/yyyy'));And here is how I would like to use my function:
    SELECT     orders.ord_no
    ,     orders.plan_start_dt
    ,     add_mdays(orders.plan_start_dt, -3) AS prep_date
    FROM     ordersThus, the function would allow me to return, for every order in my orders table, the date that is 3 workdays (mdays) prior to the plan start date of each order.
    Am I going about this the right way? Do I need to create a function to do this, or is there a way for me to incorporate my query (that does my mday calculation) into the sample query above (eliminating the need to create a function)?
    Thanks much in advance!
    Edited by: user11033437 on Feb 2, 2010 8:55 AM
    Fixed a couple typos in the last insert statements
    Edited by: user11033437 on Feb 2, 2010 9:31 AM (fixed some syntax in the function)

    Hi,
    Ah, mentioning Oracle 8 and not being able to test your own code makes me nostalgic for the good old days, when you typed your cards, and brought them to a window at the computer center, and waited an hour for the job to run, and then saw the printout to find that you had made a typo.
    If you're going to write functions, you really need to test them yourself. Like all code, functions whould be written in baby steps: write a line or two (or sometimes just part of what will later become one line), test, make sure it's running correctly, and repeat.
    Ideally, your employer should create a developement schema in a development database for you to use.
    You can legally download your own instance of Oracle Express Edition for free; just be careful not to use features that aren't available in the database where the code will be deployed.
    You don't need a function to get the results you want:
    SELECT       o.ord_no
    ,       o.plan_start_dt
    ,       MIN (e.clndr_dt)     AS prep_date
    FROM       orders     o
    ,       caln          l
    ,       caln          e
    WHERE       l.clndr_dt     = o.plan_start_dt
    AND       e.shop_days     = l.shop_days - 3
    GROUP BY  o.ord_no
    ,            o.plan_start_dt
    ;This would be more efficient (and a little simpler) if you added a column (let's call it work_day) that identified if each row represented a work_day or not.
    For each value of shop_days, exactly 1 row will be marked as a work day.
    Then the query might be something like:
    SELECT       o.ord_no
    ,       o.plan_start_dt
    ,       e.clndr_dt          AS prep_date
    FROM       orders     o
    ,       caln          l
    ,       caln          e
    WHERE       l.clndr_dt     = o.plan_start_dt
    AND       e.shop_days     = l.shop_days - 3
    AND       e.work_day     = 1
    ;You could use the analytic LAG function to populate the work_day column.
    A function would certainly be handy, though perhaps slower.
    The function you posted has a few mistakes:
    (a) An argument can't be declared as NUMBER (5); just NUMBER.
    (b) When you SELECT in PL/SQL, like you're doing, you have to SELECT INTO some variable to hold the results.
    (c) ROWNUM is arbitrary (which makes it useless in this problem) unless you are drawing from an ordered sub-query. I don't think you can use ORDER BY in sub-queries in Oracle 8. Use the analytic ROW_NUMBER function instead.
    (d) The function must end with an END statement.
    Given your current caln table, here's how I would write the function:
    CREATE OR REPLACE FUNCTION add_mdays
         ( start_date     IN           DATE          DEFAULT     SYSDATE,
           mdays          IN           NUMBER          DEFAULT     1
    RETURN     DATE
    DETERMINISTIC
    IS
         --     add_mdays returns the DATE that is mdays working days
         --     after start_date.  (If mdays < 0, the DATE returned
         --     will be before start_date).
         --     Work days do not include Saturdays, Sundays or holidays
         --     as indicated in the caln table.
         new_date     DATE;          -- to be returned
    BEGIN
         SELECT     MIN (t.clndr_dt)
         INTO     new_date
         FROM     caln     f     -- f stands for "from"
         ,     caln     t     -- t stands for "to"
         WHERE     f.clndr_dt     = TRUNC (start_date)
         AND     t.shop_days     = f.shop_days + TRUNC (mdays)
         RETURN     new_date;
    END     add_mdays;
    SHOW ERRORSProduction code whould be robust (that includes "idiot-proofing").
    Try to foresee what errors people might make in calling your function, and correct for them when possible.
    For example, if it only makes sense for start_date to be midnight, or mdays to be an integer, then use TRUNC in the function in case soembody passes a bad value.
    Allow for default arguments.
    Comment your function. Put all comments within the function (that is, after CREATE and before the final END) so that they will be kept in the data dictionary.
    If, given the same arguments, the function always returns the same value, mark it as DETERMINISTIC, for efficiency. This means the system may remember values passed back rather than call the function every time it is told to.
    I wish I could mark questions as "Correct" or "Helpful"; you'd get 10 points for sure.
    You posted CREATE TABLE and INSERT statements (without even being begged).
    You gave a clear description of the problem, including desired results.
    The code is nicely formatted and easy to read.
    All around, one of the most thoughtful, well-written questions I've seen.
    Well done! Keep up the good work!
    Edited by: Frank Kulash on Feb 2, 2010 1:10 PM
    Added my own version of the function.

  • [8i] Need help updating/fixing a workday table

    I'm working in an old database:
    Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
    PL/SQL Release 8.1.7.2.0 - Production
    CORE 8.1.7.0.0 Production
    TNS for HPUX: Version 8.1.7.2.0 - Production
    NLSRTL Version 3.4.1.0.0 - Production
    I'm trying to fix a workday calendar, and I'm not exactly sure how to do it. I'm used to querying data, not making changes to the data...
    Here's some sample data:
    CREATE TABLE     test_cal
    (     clndr_dt     DATE     NOT NULL
    ,     work_day     NUMBER(3)
    ,     clndr_days     NUMBER(6)
    ,     work_days     NUMBER(5)
    INSERT INTO     test_cal
    VALUES     (TO_DATE('12/30/2010','mm/dd/yyyy'), 254, 11322, 7885);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('12/31/2010','mm/dd/yyyy'), 255, 11323, 7886);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/01/2011','mm/dd/yyyy'), 0, NULL, NULL);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/02/2011','mm/dd/yyyy'), 0, NULL, NULL);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/03/2011','mm/dd/yyyy'), 1, NULL, NULL);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/04/2011','mm/dd/yyyy'), 2, NULL, NULL);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/05/2011','mm/dd/yyyy'), 3, NULL, NULL);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/06/2011','mm/dd/yyyy'), 4, NULL, NULL);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/07/2011','mm/dd/yyyy'), 5, NULL, NULL);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/08/2011','mm/dd/yyyy'), 0, NULL, NULL);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/09/2011','mm/dd/yyyy'), 0, 11332, 7895);
    INSERT INTO     test_cal
    VALUES     (TO_DATE('01/10/2011','mm/dd/yyyy'), 6, 11333, 7896);Note: 12/31/2010 is the last time I am 100% sure the data in the table is good. After that, clndr_days and work_days are either missing or, at least in the case of work_days, are not correct.
    This is a two-part question, since I need to fix both clndr_days and work_days. (You can probably fix them both with one statement, but I broke it into two to start, to simplify it for myself).
    I only show 12 days in my sample data, but really, the table stretches back a number of years, and forward another 5 or so years.
    PART 1: fixing clndr_days
    I put together this query:
    SELECT     clndr_dt
    ,     work_day
    ,     work_days
    ,     clndr_days
    ,     min_clndr_day + r_num     AS clndr_days_test
    FROM     (
         SELECT     t.*
         ,     MIN(clndr_days)     OVER(ORDER BY clndr_dt)     AS min_clndr_day
         ,     ROW_NUMBER() OVER(ORDER BY clndr_dt)-1     AS r_num
         FROM     test_cal t
         WHERE     clndr_dt     >= TO_DATE('12/31/2010','mm/dd/yyyy')
    ;Which gives the right clndr_days (as clndr_days_test), but I'm not sure how to get that into the table.
    This doesn't work:
    UPDATE     test_cal
    SET     clndr_days     =     (
                        SELECT     min_clndr_day + r_num
                        FROM     (
                             SELECT     t.*
                             ,     MIN(clndr_days)     OVER(ORDER BY clndr_dt)     AS min_clndr_day
                             ,     ROW_NUMBER() OVER(ORDER BY clndr_dt)-1     AS r_num
                             FROM     test_cal t
                             WHERE     clndr_dt     >= TO_DATE('12/31/2010','mm/dd/yyyy')
                             ) c
                        WHERE     c.clndr_dt     = ???  -- how do I make this equal whatever the clndr_dt is for the record I'm updating?
    WHERE     clndr_dt     >      TO_DATE('12/31/2010','mm/dd/yyyy')and I'm not sure how to make it work...
    PART 2: Fixing work_days
    Then, I can't seem to put together a query for work_days.
    This is what I have so far, but it doesn't work quite right, and then it also needs to be an UPDATE statement as well:
    SELECT     clndr_dt
    ,     work_day
    ,     work_days
    ,     clndr_days
    ,     min_work_day + r_num     AS work_days_test --this isn't right, when work_day is 0 work_days_test should be the previous work_day not the minimum work_day
    FROM     (
         SELECT     t.*
         ,     MIN(work_days)     OVER ( ORDER BY clndr_dt)     AS min_work_day
         ,     CASE
                   WHEN     work_day     <> 0
                   THEN     ROW_NUMBER()     OVER ( PARTITION BY     CASE
                                                      WHEN     work_day <> 0
                                                      THEN     1
                                                      ELSE     2
                                                 END
                                         ORDER BY     clndr_dt
                   ELSE     0
              END               AS r_num
         FROM     test_cal t
         WHERE     clndr_dt     >= TO_DATE('12/31/2010','mm/dd/yyyy')
    ;(When I tried using LAG, that didn't work either, because you can have more than 1 non-work day in a row, and so it only works for the first non-work day to have the correct work_days, and then it's back to being wrong again)
    This is what I want my table to look like in the end:
    CLNDR_DT                   WORK_DAY       WORK_DAYS CLNDR_DAYS_TEST
    12-31-2010 00:00:00         255.000       7,886.000    11,323.000
    01-01-2011 00:00:00            .000       7,886.000    11,324.000
    01-02-2011 00:00:00            .000       7,886.000    11,325.000
    01-03-2011 00:00:00           1.000       7,887.000    11,326.000
    01-04-2011 00:00:00           2.000       7,888.000    11,327.000
    01-05-2011 00:00:00           3.000       7,889.000    11,328.000
    01-06-2011 00:00:00           4.000       7,890.000    11,329.000
    01-07-2011 00:00:00           5.000       7,891.000    11,330.000
    01-08-2011 00:00:00            .000       7,891.000    11,331.000
    01-09-2011 00:00:00            .000       7,891.000    11,332.000
    01-10-2011 00:00:00           6.000       7,892.000    11,333.000(sorry about all the extra decimal places)
    Edited by: user11033437 on Jan 11, 2012 1:40 PM

    Hi,
    Thanks for posting the CREATE TABLE and INSERT statements, the very clear desired output, and your attempts; that's all very helpful. It would also be helpful to explain how you get the results you want from the sample data. There's always a chance someone might coincidentally get the right results for the wrong reasons with the small set of sample data, but would cause you to get wrong results with your full data.
    It looks like clndr_days is the total number of days since some conventional starting point (maybe when the company started), and that work_days is the total number of work days from some starting point. It looks like work_day is 0 when the day is not a working day, and otherwise, it's the total number of working days so far in the calendar year. Is that right?
    You said the data after December 31, 2010 isn't reliable. Did you mean that two columns (clndr_days and work_days) are unreliable, but the rest of the data is reliable? That is, are you sure there is exactly one row per day even after 2010, and that the work_day column is accurate? If so, you can do this:
    UPDATE       test_cal     m
    SET       (clndr_days, work_days) =
         SELECT     MIN (clndr_days) + COUNT (*) - 1          -- clndr_days
         ,     MIN (work_days)  + COUNT ( CASE
                                               WHEN  work_day > 0
                                    AND   clndr_dt > TO_DATE ('12/31/2010', 'MM/DD/YYYY')
                                    THEN  1
                                END
                                 )               -- work_days
         FROM     test_cal
         WHERE     clndr_dt     BETWEEN     TO_DATE ('12/31/2010', 'MM/DD/YYYY')
                        AND     m.clndr_dt
    WHERE     clndr_dt     > TO_DATE ('12/31/2010', 'MM/DD/YYYY')
    ;You were right: it is possible to set both columns at the same time.
    It's a shame that you're using Oracle 8.1. The MERGE command, which was new in Oracle 9.1, is a lot clearer and more efficient. If you could use MERGE, you could basically use the code you posted as the core of a MERGE statement.
    The UPDATE statement above assumes that, for the inaccurate days, clndr_days and work_days will never be lower than the last accurate value. If that's not the case, the solution is a little more complicated. You could avoid that problem, and make the statment faster as well, by simply hard-coding the last accurate values of clndr_days and work_days in the UPDATE statment, where I used MIN. (This sounds like one situation where efficientcy isn't a big deal, however. You'll probably never do this exact UPDATE statement again, so whether it runs in 1 second or 10 minutes might not matter much.)
    Sorry, I don't have an Oracle 8 database to test this. It works in Oracle 9.2, and I don't believe it uses any features that aren't available in 8.1.

  • UID property of Calendar Null Exchange Web Services 2010 SP2

    Hi,
    I'm using Java to consume EWS APIs. I am trying to fetch Calendar items within a certain date range. For few Calendars items I'm getting UID property as null. As per the MSDN documentation UID of Calendar cannot be null or empty reference http://msdn.microsoft.com/en-us/library/office/bb891878(v=exchg.150).aspx 
    Here is the request payload:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
    <soap:Header>
    <t:RequestServerVersion Version="Exchange2007_SP1" />
    </soap:Header>
    <soap:Body>
    <GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
    <ItemShape>
    <t:BaseShape>IdOnly</t:BaseShape>
    <t:AdditionalProperties>
    <t:FieldURI FieldURI="calendar:Organizer" />
    <t:FieldURI FieldURI="calendar:OptionalAttendees" />
    <t:FieldURI FieldURI="calendar:RequiredAttendees" />
    <t:FieldURI FieldURI="item:Body" />
    <t:ExtendedFieldURI PropertyTag="0x1013" PropertyType="Binary" />
    <t:ExtendedFieldURI PropertyTag="0x1000" PropertyType="String" />
    <t:FieldURI FieldURI="item:DateTimeCreated" />
    <t:FieldURI FieldURI="calendar:Start" />
    <t:FieldURI FieldURI="calendar:End" />
    <t:FieldURI FieldURI="calendar:Location" />
    <t:FieldURI FieldURI="item:LastModifiedTime" />
    <t:FieldURI FieldURI="calendar:AppointmentSequenceNumber" />
    <t:FieldURI FieldURI="item:Subject" />
    <t:FieldURI FieldURI="item:ItemId" />
    <t:FieldURI FieldURI="item:ParentFolderId" />
    <t:FieldURI FieldURI="calendar:UID" />
    </t:AdditionalProperties>
    </ItemShape>
    <ItemIds>
    <t:ItemId Id="AAMkADlkMGVlMGNlLTljNDktNGFlMi1iZmIyLTJhMzcyNDg2NDg4NwBGAAAAAABXjL+81Py5TY5OXVsf4Q4NBwDlZIRAnXFLTrTCydbbFjQEAACkS8cwAAA5cSgq91wDQp3guH/kYhAjAEPbSRyBAAA=" />
    </ItemIds>
    </GetItem>
    </soap:Body>
    </soap:Envelope>
    In the response I do get UID field at all which in turn is evaluated null.
    Can somebody confirm whether it's an issue with exchange? Because we have written out business logic with an assumption that UID will never be null.
    Thanks
    Nitin Arora

    Hi Glen,
    Thanks for the reply. The problem that we are facing is on one of our client's exchange server.
    1. I don't exactly know the Rollup version for SP2. But below is the response that I receive from our client's exchange server.
    <h:ServerVersionInfo MajorVersion="14" MinorVersion="3" MajorBuildNumber="174" MinorBuildNumber="1" Version="Exchange2010_SP2" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
    2. Yes I tried to version requests to Exchange 2010_SP2 but got the same results.
    3. Since this problem is coming at one of our client's exchange server we cannot use ewseditor to test.
    4. I will try to fetch the CleanGlobalObjectId and will update this post with results.
    Thanks
    Nitin Arora

  • A Calendar...

    Hi guys, would anyone know where I could get a calendar app that runs on OS 9.2.2?
    I apparently lost the floppy that had the perfect OS 9 calendar on it.
    Now I can't seem to find an OS 9 calendar either freeware or shareware.
    Thanks

    Another one you may want to consider. +Palm Desktop for Mac+.
    http://www.palm.com/us/software/desktop/mac.html
    I don't think you need to have a Palm device to use it. If I remember correctly, Palm bought the rights to +Claris Organizer+ as the basis for creating Palm Desktop for Mac, so it is a full-featured calendar/organizer program. It also has an address book. I was messing around on my old Mac OS 9 machine and it was still installed, and it worked fine, even though I no longer use a Palm device.
    It may install a few Palm connection extensions (all start with "Palm" in their names), so you can disable those through Extensions Manager.

  • Calendar reeminder not functioning properly

    My calendar (organizer) functions properly except that the reminders don't pop up on the home screen at the set times (actually not at all). All the settings are correct, I don't know what I could have done to change things. It used to work.
    Any suggestions?

    Linda,
    You'll have to tell us more. What's wrong with the .Mac version?

  • Does ipod touch 32gb have a planner/organizer?

    im looking at getting a new pda, but i like the idea of having an ipod touch too. does the touch have a planner/calendar/organizer? is it comparable to a pda's? one of the pdas that im looking at has wifi so that is not a deal maker.

    goathead wrote:
    guess what? i found these forums by being on the apple website. i have read and re-read the touch info and nowhere does it say anything about an organizer. my cell phone has a basic one but i would like a pda-like organizer. does the touch have one.
    I think the problem is that you need to be more specific about what you're looking for. I think "organizer" is too vague. I suspect that if you ask any two people about whether it has an organizer, they'd give you different answers. If you could be more specific about the features you're looking for, someone is more likely to be to able tell you if it has them.
    The iPod Touch has a calendar. It has an address book for contacts. There's an email program for when you connect to wi-fi. There's an app for taking notes. To me, that makes it an organizer, but how do I know that meets your criteria?
    Also, look at the App store in iTunes. You can look for organizer apps there and see if any of those fit your needs. Then you'd know for sure that there's an organizer app for you.
    charlie

Maybe you are looking for

  • ICal events do not show up on Entourage

    Hello to all and here's tehbackground: 1. I have a new MacBook Air 2. I have new updated software (the latest updates) 3. I have Office 2008 with Entourage (which I want to use as my mail client and calendar app - though am happy to leave iCal on my

  • How can I scan with HP 5600 all in one?

    Hi! I have an HP 5600 all in one. I recently switched to an iMac Leopard. The printer driver does not have any scanning support. Is there any other driver available to get this support? Or will I have to get a compatible printer to be able to use sca

  • Yet another high cpu using flash issue

    Salutations. What I'm about to tell you won't come to you as a surprise as there have been many similar topics discussed here. In fact, on the first page, there were two. So let's get on with it! hp pavillion entertainment notebook dv6 e2170ee window

  • Is there any way I can restore to leopard?

    I bought a macbook 3 years ago, updated to all the new software directly, everything went well, no crashes...until now. Installed Lion 2 days ago and today it just blocked all over... had to restart the whole computer! I went over to mac because of t

  • IPhone 4 factory unlock wont restore. It's stuck in a continuous loop of the apple logo and spinning hash marks.

    I just got the factory unlock from AT&T and connected my phone to iTunes as instructed. did the back up and then the factory restore. After I got the "Congratulations" message I followed the steps to restore my phone. (I have tried both registering i