BB10 calendar works SDK WebWorks 1.0.3.8

Hi all

Trying to intergrate the goodness of new calendar in my application BB10.

varStart = "20121129193000";

varDateStart = newDate (start.charAt (0) + start.charAt (1) + start.charAt (2) + start.charAt (3), start.charAt (4) + start.charAt (5), start.charAt (6) + start.charAt (7), start.charAt (8) + start.charAt (9), start.charAt (10) + start.charAt (11), 00);

The remote debugger then displays the date:

Sam 29 dec 19:30

 

This is incorrect, the date, I expect is Thursday, November 29, 19:30.

 


Secondly, the operation where the date is added to the calendar returns Error 20 on the Dev Alpha code.

Does anyone know where there is a list of error codes for BlackBerry 10 development and WebWorks or what it means - it is based permissions?

The problem occurs because the index of the month starts at 0, so 0 = January and 11 = December. For easier reading, you can try to format the variable 'start' in order to to use when you create a date object instead of enter the characters one by one.
https://developer.Mozilla.org/en-us/Docs/JavaScript/reference/Global_Objects/date#example:_Several_w...

Tags: BlackBerry Developers

Similar Questions

  • Cannot download the latest SDK WebWorks (2.1)

    Cannot download the latest SDK WebWorks (2.1)

    After I click on "Download Blackberry Webworks SDK for Tablet OS for Windows" on the next page

    http://us.BlackBerry.com/developers/Tablet/WebWorks.jsp

    the Web page appears to be stuck, "Blackberry Developer Zone Loading" screen... »

    It seems to navigate between index.jsp and SWDLRegistration... pages

    I tried this from Chrome and IE.

    A little frustrating because I need to install a new debugging since the old token has expired and can not get the latest version of the SDK

    OB.

    YES he got working 2 hours ago. Could not download 2 days - tried different browsers and different PCs / networks at home and work.

    Anyway, finally got it work on Firefox with my disabled Proxy.

    Guess it could be related to the:

    -specific browser

    -the proxy settings

    -security settings (e.g. cookies)

    Tried on different networks (work and home).

    different browsers (Chrome, Opera, IE) without success.

    Not sure if I had turned off before proxy.

    Hope that points you in the right direction.

    . H

  • New SDK Webworks error during Application of packaging

    Everything worked fine until I updated to the new SDK Webworks. Now I get this error, then I reinstalled everthing. I went through the process of setting up environmental variables pointing to the SDK and jre, but nothing helped. I reinstalled all components at least 3 - 4 times always with administrator privileges but cannot make it work. I try to compile my application with the new SDK and submit it so that it runs very well update the OS of the Playbook.

    The error I get is:

    OK, so I solved the problem by setting the name of my loading screen (thats why the error said SplashScreen). I never noticed that my background image has 2 i in since version beta SDK never threw any errors. I would have thought more of said error; He would have led me to how to fix more quickly (an image not found problem with splashScreen).

  • Update plugin Eclipse SDK WebWorks to 2.3.1.5

    Hello

    I read this (http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Eclipse-Plug-in-for-Webworks-SDK...) and I'm well aware that the like Blackberry developers to switch to training for development. However, I work with the Push API (BIS) that is not fully supported on waving, so I need to use a device/Simulator.

    I found that using WebWorks (SDK 2.0.0) Packager that comes with the Eclipse Plugin supports all the features I need to use the API to push (I get Java exception errors). Instead, I've been spending like a Flash project and package/signature of the command line with the latest version of the SDK WebWorks (2.3.1.5) - it works very well. My question is: How can I incorporate the new version of the SDK WebWorks in the eclipse plugin? -How can I copy over

    C:\Program search in Motion\BlackBerry WebWorks SDK 2.3.1.5

    TO

    C:\eclipsebb\plugins\net. RIM. Browser.Tools.wcpc_2.0.0.201103231828 - 18

    ?

    Did anyone done this before? This would make the application faster and easier to deploy on the simulators of packaging.

    You can use Packager integrated ripple, even if you are not stable in Wellington. It will deploy to the Simulator for you and it always supports the latest version of the SDK.

    https://developer.BlackBerry.com/HTML5/documentation/packaging_your_app_in_ripple_1904611_11.html

    With respect to the SDk update in the eclipse plugin, I do not know if more copy would work. You can back up the original files and try

  • Web Works SDK Installation stuck on the first Page

    Hi guys, I installed SDK WebWorks on my Mac OSX 10.8. I have java version 1.6.2. However, when I run the installer, it asks me to enter the Admin password and then, it launches the Installation Wizard of anywhere. It presents the first screen with a button "Next" and then it just stuck there, I rebooted several times and once it moves to "FAKE" page but then it does not there either, I can't even go to option buttons on this screen. It's a horrible experience, I'll have no waiting not BlackBerry.

    I had a very similar problem installing the Simulator a few days ago - there is a very annoying work around that I discovered by chance [break then I turn on Mac + get summat to install]

    Righto - Install fake WebWorks

    You end up with a big gray dialig with a next button box

    Go to the App menu - where it says 'Blackberry 10 WebWorks SDK 10.0.4.11' in the toolbar @ top

    Open Services

    TADA!

    Unfortunately, you must do this at every stage - press the [Services], [Services] license agreement button, press the [Services]

    Basically if when in doubt, open Services

    For some unknown reason, it unlocks the install anywhere

    It is a recent (last month or almost) bug - it all used to work perfectly

    I don't think even know BB

  • The time in the calendar works with an hour between start and end time

    Until recently, calendar worked OK but now only allow me to have a time of an event if I try to put the first gestures of time within an hour of arrival times longer.

    There is a symbol link to the right of the time of departure and arrival. If the points are in contact with the time interval that you have in the calendar (by default 60 minutes) options will be kept when you change the time. Click on this symbol, and the points will be away and stop this action.

  • Why I do not have icons sdk Webworks?

    Hello dear members,

    I downloaded and installed adobe AIR sdk and Webworks SDK but after starting I have not found and icon to start the sdk webworks. Please somebody guide me how can I use the SDK.

    Concerning

    Is it installed successfully then its installed.

    There are no icons.

    1. You must install extension ripple in chrome of the Tools page.
    2. You must click on the wave button and click on 'enable '.
    3. Accept the agreement and to choose the platform that you want to develop on
    4. You can now begin to develop... you need help more far away?
  • Installation of SDK Webworks

    Hello

    I try to install the SDK WebWorks and in the penultimate stage installation... it crashes just here showing the Popup 'WebWorks BlackBerry PlayBook SDK configuration'. Hung there for 30 min.

    If anyone has experienced this before?

    Thanks in advance for the help!

    Can view you the details of your operating system, i.e. Windows 7 64-bit, Mac OS x 10.x

  • Recent SDK WebWorks good for old BONES? What versions?

    Hello

    I have latest SDK WebWorks 2.3.1.5 and I was wondering which versions of OS .cod file would be actually on. Doesn't not find that documented anywhere

    Or is - it mainly depends on what functions the application actually uses?

    Is there a list somewhere of what versions of SDK WebWorks are compatible with versions of the OS? Is it still today possible for example to develop a WebWorks app which can be used on devices such as the model of curve 8300 OS 4.5?

    https://bdsc.webapps.BlackBerry.com/HTML5/download/previousversions goes back to v2.0 of the SDK, but I have no idea on what is exactly the minimum target version OS of this.

    Same thing for the Tablet SDK... Is a .bar file compiled from the sources of html5/css3/js by BlackBerry WebWorks SDK for Tablet 2.2.0.5, usable on both 1.0 and 2.0 of the PlayBook BONES / Tablet OS?

    The WebWorks SDK for Smartphone supports OS 5.0 and more.

  • The 2.1 SDK WebWorks for smartphone update?

    When I download this SDK Update on this link:
    https://swdownloads.BlackBerry.com/downloads/contactFormPreload.do?code=DC727151E5D55DDE1E950767CF86...
    and install it. It's still an old version (2.0.0.201103231828 - 18)
    At any site update via eclipse update? Please help:)

    As stated in the declaration of the end of life and Associates blog article, The WebWorks Plug-ins for Visual Studio and Eclipse only support 2.0 SDK WebWorks and low.

    These tools plugin does not update to support the latest versions of the SDK WebWorks.  Use the versions the latest SDK you should not use the command-line for now, and when the ripple is upgraded you will be able to build and deploy from the emulator.

    You will be able to continue to use Eclipse and Visual Studio to build applications WebWorks in the same way as you would for the construction of a local Web site.  More details are in the above referenced blog post.

  • Problem with SDK WebWorks 2.0.0.4, get a compile error...

    Well, at a time given, I had a fully functional software development kit, but it seems that he fell in some way and I hope that someone here has seen it, so I don't have to track it down.

    This started after I installed my signature on this system keys, don't know if it of related or not, but it's the only thing that has changed.

    Here's what I mean:

    C:\Program Search SDK WebWorks Motion\BlackBerry to Tablet 2.0.0.4
    \bbwp>bbwp 'c:\Projects\tbs\Hello World\HelloWorld.zip '.
    [INFO]                  Parsing of the command line options
    [INFO]                  Bbwp.properties analysis
    [INFO]                  Validation of archive WebWorks
    [INFO]                  The analysis of config.xml
    [WARNING]               Cannot find an element of
    [WARNING]               Can't find the item of
    [INFO]                  The application of filling source
    [INFO]                  Compiling applications WebWorks
    C:\Users\User\AppData\Local\Temp\widgetGen.12789641381305276725670.tmp\
    webworks\loadingScreen\Transitions.as(70): col: error 13: access undefined
    property Tweener.

    Tweener.removeTweens (loadingScreen);
    ^

    I then quite a few mistakes more is to say everywhere where Tweener Vienna of is not included...

    Tried to uninstall and ensuring that all records have disappeared, twice, without success.

    Someone at - it a good idea to place to look?

    Found my problem!  When I installed it I was pointed at the 4.5 for the AIR SDK folder, I reinstalled it with the weapon at the level of the blackberry-tablets-sdk folder - 1.0.1 and live now!

    Now, I come to cross the failure 500, unsigned bar file error during the deployment with a token of debugging...

  • [10g] Best to fill and update multiple calendars work?

    I would like to create multiple calendars working and be able to update as needed. Each work schedule would be for 5 years at the most (right now), but it is possible that at some point in the future, I might want to extend that.

    A work schedule can be applied to a single resource or group of resources. Each individual belongs to a group of resources. What I think, is that if an individual resource has a calendar of work involved, this calendar is used, but if not, it uses the calendar of its resource group, and if the group does not have one, the default schedule is used. Theoretically, each resource can have its own schedule of work, and there would be probably 500 resources to the maximum. In practice, many resources will have the same or similar work schedules.

    Each calendar will be based on one of the 3 standards: all calendars days are working days, on a daily basis, but weekends are working days, or every day except weekends and holidays are working days. (Weeks begin on Sunday and Saturday and Sunday are weekends). The standard calendar would be then modified to create each unique timing as required. For example, if a resource has been used, their calendar is perhaps the standard of works not on weekends and holidays, but could also include a stay of one week in February and stay for a week in July. I'm not sure what the best approach is to define a calendar in the first place and then be able to update an employee decides to holiday (or any other situation that may affect the working days).

    In addition, I really want to be able to integrate the working hours, which can vary daily, but would probably would be pretty standard. I don't know if this information is part of the work table, or as something separate to be combined with work table.

    My ultimate goal in doing all this is to try to plan a project of great amongst the many resources.

    Some examples of data showing where I am 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 don't know if I should have a separate table to define a relationship between a resource or resource groups and a calendar id (each resource or group would be able to assign 1 calendar unique id, although several resources/groups could share the same schedule id), or if I have to add an additional column to each table above 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 the calendars table
    cal_date - the date of the current calendar
    cal_year - the actual year of calendar for the calendar date
    work_day - work in this year of work (resets every year, starting from 1 is 0 if this calendar date is not a working day)
    work_date - if a day of work, date calendar, otherwise, the date of the schedule for the last day of work (or the first week of the calendar, the next working day)
    work_week - the work date work week (numbered from 1, reset each year the first Sunday of the year, before the first Sunday will be the week last year, and the first year of the calendar will be every day before the Sunday included in the first week, until the first week of a calendar may be more than 7 days)
    work_year - year of the work date
    work_days - day of work shop (except in the first calendar week, before the first shop day is 0), starts at 1 (initially), cumulative (does not reset each year)
    calendar cal_days - day of the work date, starts at 1 (initially), cumulative (does not reset each year)

    Assuming that the calendar starts on 01/01/2010 (these values are less correct - I just do my best guess to provide the 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 tried Googling work calendars, and similar things, but I can't seem to find something that fits my situation. If someone could point me in the right direction, I would appreciate it.

    I work in 10g (XE).

    Published by: user11033437 on July 19, 2011 15:05

    Also, I do not know if it would be better to store just somehow days, each group of resources/doesn't work and generate a schedule on the fly as needed, rather than trying to eventually store thousands of dates in the database?

    Hello

    Interesting problem!

    I don't know exactly what you want, however. Are you are looking for a way to answer such questions "resource A001, what are the first 6 days of work or after January 4, 2010?" or "how many working days does have resource A001 between January 4 and January 12, 2010? Post a few examples of the questions that you might ask, as well as desired outcomes, given the sample data you posted.

    user11033437 wrote:


    I would like to create multiple calendars working and be able to update as needed. Each work schedule would be for 5 years at the most (right now), but it is possible that at some point in the future, I might want to extend that.

    A work schedule can be applied to a single resource or group of resources. Each individual belongs to a group of resources.

    Is a 'group resouce' identical to a 'working group '?
    If a resource moves from one group to another, you need to keep track of historical information? For example, if the resource is A001 not havfe its own calendar and is part of the work_group A Juanuary 1, 2010, but then moves to work_group B July 1, 2010, you will need to answer questions like "how many days have you A001 have in 2010", where it must be remembered that the work_group has apllied calendar during the first half of the year , but work_group Schedule B has been used for the second half?

    What I think, is that if an individual resource has a calendar of work involved, this calendar is used, but if not, it uses the calendar of its resource group, and if the group does not have one, the default schedule is used. Theoretically, each resource can have its own schedule of work, and there would be probably 500 resources to the maximum. In practice, many resources will have the same or similar work schedules.

    Each calendar will be based on one of the 3 standards: all calendars days are working days, on a daily basis, but weekends are working days, or every day except weekends and holidays are working days. (Weeks begin on Sunday and Saturday and Sunday are weekends). The standard calendar would be then modified to create each unique timing as required. For example, if a resource has been used, their calendar is perhaps the standard of works not on weekends and holidays, but could also include a stay of one week in February and stay for a week in July. I'm not sure what the best approach is to define a calendar in the first place and then be able to update an employee decides to holiday (or any other situation that may affect the working days).

    It seems that the easiest thing would be to save only the base calendar exceptions. In other words, because the employee normally respect the calendar ' no weekend or holidays ", simply enter 5 rows for that particular employee Mark 5 days of work, he will be missed in February. If the emplyoee will work Saturday in June (in addition to its regular schedule), then enter a line for each Saturday in June.
    >

    In addition, I really want to be able to integrate the working hours, which can vary daily, but would probably would be pretty standard. I don't know if this information is part of the work table, or as something separate to be combined with work table.

    It depends on what you want exactly. Post a couple opf examples of questions you do not want to answer and the real answers, given the sample data that you post.

    My ultimate goal in doing all this is to try to plan a project of great amongst the many resources.

    Some examples of data showing where I am 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 seems that all lines have the same description. If the description of the issues in this problem, would not better illustrate how this is important, having different descrioptions which appeared in different outputs? However, if the description plays no role in this problem, then why include in the sample data at all?

    I don't know if I should have a separate table to define a relationship between a resource or resource groups and a calendar id (each resource or group would be able to assign 1 calendar unique id, although several resources/groups could share the same schedule id), or if I have to add an additional column to each table above 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 cal_id = 1? How is it different 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 that there is a simpler way, especially if there is a regular order to types of day (e.g., people who take vacations outside normally get weekeneds, too).
    You may have a table like this, that was a line a 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 him work_sched) shows what resources are not working 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' is working normally on type 3 days only (i.e., weekends and public holidays):

    INSERT INTO work_sched (group_id, a_date, works_on) VALUES ('L', NULL, 3);
    

    (Assume that p_key is filled by a trigger).
    The NULL value in the column a_date indicates that it applies to every day, unless another line in the work_sched table. Instead of NULL, mabe some date impossible (for example, January 1, 1900) would be more convenient to specify default values.
    Exceptions to this schedule would be indicated by other lines in work_sched. For example, if "12345" is an employee who is 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 employee works Saturday 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');
    

    Where to find the number of days of work, we would join work_sched in days using these two conditions:

    ON   work_sched.date           = days.a_date
    AND  work_sched.works_on  <= days.day_type
    

    cal_id - refers to the calendars table
    cal_date - the date of the current calendar
    cal_year - the actual year of calendar for the calendar date
    work_day - work in this year of work (resets every year, starting from 1 is 0 if this calendar date is not a working day)
    work_date - if a day of work, date calendar, otherwise, the date of the schedule for the last day of work (or the first week of the calendar, the next working day)
    work_week - the work date work week (numbered from 1, reset each year the first Sunday of the year, before the first Sunday will be the week last year, and the first year of the calendar will be every day before the Sunday included in the first week, until the first week of a calendar may be more than 7 days)
    work_year - year of the work date
    work_days - day of work shop (except in the first calendar week, before the first shop day is 0), starts at 1 (initially), cumulative (does not reset each year)
    calendar cal_days - day of the work date, starts at 1 (initially), cumulative (does not reset each year)

    There is a large amount of denormalized data. in other words, you should be able to easily deduct cal_date cal_year, but sometimes it is convenient store denormalized data.

    Assuming that the calendar starts on 01/01/2010 (these values are less correct - I just do my best guess to provide the 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 tried Googling work calendars, and similar things, but I can't seem to find something that fits my situation. If someone could point me in the right direction, I would appreciate it.

    I work in 10g (XE).

    Published by: user11033437 on July 19, 2011 15:05

    Also, I do not know if it would be better to store just somehow days, each group of resources/doesn't work and generate a schedule on the fly as needed, rather than trying to eventually store thousands of dates in the database?

    That's what I thought, too.

    Post some sample data (if it is not what you have already posted), some examples of questions and the right answers you want from each question given that the sample data.

  • SDK WebWorks does not, apply a few lots

    Today, I downloaded the SDK of Web works, but it does not apply. Any lot, .js and records, etc. Am I missing something?

    I'm new to this too, but I was also initially puzzled.  If you are looking for an IDE, there is nothing in there.  Since you basically build a HTML5 with CSS and Javascript, you can use your IDE of choice for putting this together.   When you test your application by using the ripple through the chrome browser extension, it will be referece webworks framework when your application is running.

    See: http://developer.blackberry.com/html5/documentation/setting_up_your_tools.html for more information.

  • PlayBook Simulator included in the SDK WebWorks for Mac does not start

    Hi, I downloaded and installed the WebWorks BlackBerry SDK for Tablet OS for Mac from http://us.blackberry.com/developers/tablet/webworks.jsp . I have VMWare Fusion installed 3.1.2. I used the beta3 .iso Installer to create a virtual machine, and it worked very well. Open the bbwp/blackberry-tablet-sdk/BlackBerryPlayBookSimulator-1.0.1/BlackBerryPlayBookSimulator.vmx file load VMWare Fusion and adds a virtual machine named "BlackBerry PlayBook Simulator" in my VM library. When I try to 'turned on' virtual machine, nothing happens. The power seems to be on for two seconds and turns off the virtual machine. I can't find all the lines from log in Console.app. the 'Virtual Machine'-> 'Force Start Up' menu is no help either. I download the stand-alone "BlackBerry PlayBook Simulator for Mac", that is also marked v1.0.1 but I am not optimistic if it is delivered as a set of folders VMware. Please do not make me run the PlayBook Simulator in a virtual Windows XP machine!

    Hi jaschroe,

    Try to manually copy the folder BlackBerryPlayBookSimulator - 1.0.1 to another location on your Mac and then try to open this copy of the VMX file in VMware Fusion. (No need to re - install).

  • Strange problem of displays Web Works SDK (SDK detected Incorrect)

    I have no problem installing the sdk on another computer but at home on my XP machine after installing the AIR sdk, and then try to point to him when to install the web works package she complains an Incorrect SDK.

    I got the SDK in the same place as before http://www.adobe.com/products/air/sdk/

    and got the web works package to the: https://www.blackberry.com/Downloads/contactFormPreload.do?code=DC727151E5D55DDE1E950767CF861CA5&dl=...

    Anyone got any ideas as to whats going on?

    Ah... That's the problem...

    Adobe has changed its web page so that the AIR SDK 2.6 at this link.  If you follow the links on the page to donwload WebWorks SDK updated, you should get the link for the SDK 2.5

    http://us.BlackBerry.com/developers/Tablet/WebWorks.jsp

Maybe you are looking for

  • Portege M300 - question: How can I format the HARD drive?

    Hello I saw Toshiba Portege M300 and try to format my laptop. When I try to use the CD to boot (DVD release) at the start, but I have the "CD/DVD" option, it s not poster not options 'formatting of disks', instead it goes to the login window. I have

  • HP 15 Notebook: Mute light does not turn off!

    Hey so been having this problem with my light on the button mute. It does not turn off. I checked to see if the volume works and it makes. Mute works but the light just stays on. Help!

  • Error event ID: 10016

    Original title: cannot find the registry Announces: HKCR/CLsid/clsid value/local server 32. Hi, I am running xp pro svc pk3 ie8. Often, I receive the error message, id 10016 source DCOM. Research shows the majority to go to regedit, look to hkcr/clsi

  • Lost my Album Art

    I was organizing my music when the Album Art missing from certain screens. If I click on the artist, Album or Genre of the Art is there, but if I'm in the artist section or an individual album Art has disappeared, and the options to find Album Info a

  • Compiling a Java program with Package statement

    HelloI'm trying to demonstrate the use of the data member 'protected '. I wrote the following code, but its not not gives an error:Class A {}protected int num;}public class Accessprotected_A1 {}An objA;public Accessprotected_A1() {}objA = new A();obj