Scheduling/Event app

Hi
I will like to develop a scheduling/events application  i.e users will know the event available for each day of the month through
the year. I have prepared 365 events in text format located in my folder, i have also prepared the the date picker code already.
how can i bind each text file event for each day to the date picker. When the user picks date it will display the event available for each day.
see datepicker code below
xaml.cs
public partial class MainPage : PhoneApplicationPage
        Appointments appointments = new Appointments(); 
        // Constructor
        public MainPage()
            InitializeComponent();
            appointments.SearchCompleted += new EventHandler<AppointmentsSearchEventArgs>(appointments_SearchCompleted);
            SearchCalendar(); 
            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        private void SearchCalendar()
            appointments.SearchAsync(DateBox.Value.Value, DateBox.Value.Value.AddDays(1), null);
        private void DateBox_ValueChanged(object sender, DateTimeValueChangedEventArgs e)
            SearchCalendar();
        void appointments_SearchCompleted(object sender, AppointmentsSearchEventArgs e)
            if (e.Results.Count() == 0)
                MessageText.Text = "no events for the selected day";
            else
                MessageText.Text = e.Results.Count() + " events found";
                DateList.ItemsSource = e.Results;
Kindly help
Jayjay john

Hi Vineet24
I followed the method below, but whenever i select the date picker it only gives the data for the present day, instead of picker days ahead/before.  How can i make it to pick future/past data
See the code below
xaml
<toolkit:DatePicker x:Name="pickerdt" Margin="0,10,0,0" Header="Select date" VerticalAlignment="Top" ValueChanged="pickerdt_ValueChanged"/>
            <ScrollViewer Margin="0,105,0,10">
                <TextBlock x:Name="textblock" TextWrapping="Wrap" Foreground="White"/>
            </ScrollViewer>
xaml.cs
private List<Devotion> devotions;
        public CalendarPage()
            InitializeComponent();
            devotions = new List<Devotion>();
            AddDevotions();
        private void pickerdt_ValueChanged(object sender, DateTimeValueChangedEventArgs e)
            DateTime dt = DateTime.Now;
            int month = dt.Month;
            int year = dt.Year;
            int index;
            if (DateTime.IsLeapYear(year) || (month <= 2))
                index = dt.DayOfYear - 1; // list is indexed from 0
            else
                index = dt.DayOfYear; // add a day
            textblock.Text = devotions[index].ToString(); // or some other property
        private void AddDevotions()
            for (int i = 1; i <= 366; i++)
                string filePath = "MyDevotions/Devotion" + i.ToString() + ".json";
                Devotion d = ReadJsonFile(filePath);
                devotions.Add(d);
        public Devotion ReadJsonFile(string JsonfilePath)
            Devotion[] d = null;
            using (StreamReader r = new StreamReader(JsonfilePath))
                string json = r.ReadToEnd();
                d = JsonConvert.DeserializeObject<Devotion[]>(json);
            return d[0];
Reply soon
Jayjay john

Similar Messages

  • Deleting a Scheduled Event in iCal ?

    Okay, I scheduled a few things and, alas, life being what it is, I had to make some changes. However, I found I was unable to delete the initialed scheduled event--I finally resorted to just "cutting" it. Is this the only way to delete an event?
    <Edited by Moderator>

    Make sure you select/highlight the actual item, not just the day or time, and then hit delete.
    Cheers
    Rod
    Message was edited by: Rod Hagen

  • Job not getting triggered for Multiple Scheduler Events

    hi,
    I would like a job to be triggered for multiple scheduler events, subscribing to a single event works fine. But, when I set multiple event condition, nothing works.
    My objective is to run a job, whenever job starts or restarts or exceeds max run duration.
    Note : Is it possible to trigger a job, when a job RESTARTS by subscribing to JOB_START ????????
    procedure sniffer_proc(p_message in sys.scheduler$_event_info)
    is
    --Code
    end sniffer_proc
    dbms_scheduler.create_program(program_name => 'PROG',
    program_action => 'sniffer_proc',
    program_type => 'stored_procedure',
    number_of_arguments => 1,
    enabled => false);
    -- Define the meta data on scheduler event to be passed.
    dbms_scheduler.define_metadata_argument('PROG',
    'event_message',1);
    dbms_scheduler.enable('PROG');
    dbms_scheduler.create_job
    ('JOB',
    program_name => 'PROG',
    * event_condition => 'tab.user_data.event_type = ''JOB_OVER_MAX_DUR''' ||*
    *' or tab.user_data.event_type = ''JOB_START''',*
    queue_spec => 'sys.scheduler$_event_queue,auagent',
    enabled => true);
    I tried this too...
    dbms_scheduler.create_job
    ('JOB',
    program_name => 'PROG',
    * event_condition => 'tab.user_data.event_type = ''JOB_OVER_MAX_DUR''' ||*
    *' and tab.user_data.event_type = ''JOB_START''',*
    queue_spec => 'sys.scheduler$_event_queue,auagent',
    enabled => true);
    Need help
    Thanks...
    Edited by: user602200 on Dec 28, 2009 3:00 AM
    Edited by: user602200 on Dec 28, 2009 3:03 AM

    Hi,
    Here is complete code which I tested on 10.2.0.4 which shows a second job that runs after a first job starts and also when it has exceeded its max run duration. It doesn't have the condition but just runs on every event raised, but the job only raises the 2 events.
    Hope this helps,
    Ravi.
    -- run a job when another starts and exceeds its max_run_duration
    set pagesize 200
    -- create a user just for this test
    drop user test_user cascade;
    grant connect, create job, create session, resource,
      create table to test_user identified by test_user ;
    connect test_user/test_user
    -- create a table for output
    create table job_output (log_date timestamp with time zone,
            output varchar2(4000));
    -- add an event queue subscriber for this user's messages
    exec dbms_scheduler.add_event_queue_subscriber('myagent')
    -- create the first job and have it raise an event whenever it completes
    -- (succeeds, fails or stops)
    begin
    dbms_scheduler.create_job
       ( 'first_job', job_action =>
         'insert into job_output values(systimestamp, ''first job runs'');'||
         'commit; dbms_lock.sleep(70);',
        job_type => 'plsql_block',
        enabled => false, repeat_interval=>'freq=secondly;interval=90' ) ;
    dbms_scheduler.set_attribute ( 'first_job' , 'max_runs' , 2);
    dbms_scheduler.set_attribute
        ( 'first_job' , 'raise_events' , dbms_scheduler.job_started);
    dbms_scheduler.set_attribute ( 'first_job' , 'max_run_duration' ,
        interval '60' second);
    end;
    -- create a simple second job that runs when the first starts and after
    -- it has exceeded its max_run_duration
    begin
      dbms_scheduler.create_job('second_job',
                                job_type=>'plsql_block',
                                job_action=>
        'insert into job_output values(systimestamp, ''second job runs'');',
                                event_condition =>
       'tab.user_data.object_name = ''FIRST_JOB''',
                                queue_spec =>'sys.scheduler$_event_queue,myagent',
                                enabled=>true);
    end;
    -- this allows multiple simultaneous runs of the second job on 11g and up
    begin
      $IF DBMS_DB_VERSION.VER_LE_10 $THEN
        null;
      $ELSE
        dbms_scheduler.set_attribute('second_job', 'parallel_instances',true);
      $END
    end;
    -- enable the first job so it starts running
    exec dbms_scheduler.enable('first_job')
    -- wait until the first job has run twice
    exec dbms_lock.sleep(180)
    select * from job_output;

  • Schedule an App to run, or a delayed notification.

    How can I notify the user of something on a long time scale. The user may not have run the app for weeks or months, but I want a notification to pop up. It doesn't need to be a full instance of the app, a small helper app or even a growl notification would do. How can I schedule an app to run, or register a delayed notification?

    http://developer.apple.com/MacOsX/launchd.html

  • Scheduled delivery apps

    How to delete all scheduled delivery apps from Photosmart 5520

    HI gababop,
    Log on to eprintcenter and scroll down to "my print apps" and you can select your schedule delivery apps there and make changes accordingly.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • Call GET_SEARCH_REASULT service from scheduler event filter Iin UCM

    Hi,
    In our application, the mail should get sent to the content author on content revised date. For that, we have written a scheduler event filter component which will get invoked after every five minutes. In filter class I want to call GET_SEARCH_REASULTS service to get the list of contents and its authors to send mail.
    Can anybody please tell me how to call GET_SEARCH_REASULTS service from scheduler event filter?
    Thanks in advance.

    Hi Nitin
    Why cant you try writing custom query and custom service ?
    Please refer idoc script reference guide for getting the parametrs to be passed when using Get_search_results.

  • TS3999 There is no Europe/Minsk timezone in iCloud calendar interface. All scheduled events are displayed with 1 hour error.

    There is no Europe/Minsk timezone in iCloud calendar interface. All scheduled events are displayed with 1 hour error.
    Is there any workaround?

    Hello again, Kirik17.
    The concept still holds true. When clicking to select your time zone, you will need to select another city within your same Time Zone so that that one becomes your default.
    If you are still unable to select your Time Zone, you may find more information by using another one of Apple's Support Resources at: https://getsupport.apple.com/GetproductgroupList.action.
    Cheers,
    Pedro.

  • How to schedule an app (sudoku)?

    New to HPePrint apps and have scheduled an app for crosswords already with good success, however, I can not find a way to schedule my sudoku app?? There does not seem to be a "start up box" as was the case with the crossword app. Can you assist?

    Hi,
    Not any Print App is a Scheduled Delivery App, only specific apps support this feature.
    If you use the Web Sudoku app, the specific app does not support scheduled delivery, there are several different Sudoku apps which support this feature.
    Check both the Daily Sudoku or the Games & Puzzles Daily for its compatibility with your printer model, both of them provide a scheduled delivery for it.
    Hope it helps,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • I've just upgraded from Snow Leopard to Lion. Installation seemed to go OK but on rebooting it is asking where the System Events app is.  What is it and where is it located?

    I've just upgraded from Snow Leopard to Lion. The installation seemed to go OK but on rebooting it is asking where the System Events app is.  What is it and where is it located?
    Thanks

    If the dialogue appeared once, and you cancelled once, the dialogue may reappear when you next log in. For more certainty I suggest a restart of the operating system, then a log in.
    If you like: immediately after the problem is worked around, open the Console utility to see whether — amongst its view of all messages — there is an obvious sign of what caused the dialogue to appear. (If you see nothing obvious, don't waste too much time looking.)

  • How do I remove the tempature readings on my calendar? They fill up each day crowding out the view of scheduled events for the most part.

    How do I remove the tempature readings on my calendar? They fill up each day crowding out the view of scheduled events for the most part.
    Thank you
    Terry

    Disable or remoce the Calendar, that is creating these events, Terry.
    To find out, which calendar is creating these events, ctrl-click on one of the events and select "Get Info".
    In the Info panel click the color icon in the upper right corner to find out the calendar, that created this event.
    Then reveal the "Calendars" Sidebar (press the "Calendars" button in the toolbar) and select the Calendar, ctrl-click it and delete the calendar or disable it.
    -- Léonie

  • Scheduler - Event Based Jobs

    Hi,
    I've been trying to create an event based job dependent on multiple jobs. I tried queuing, but it seems like it can only hand one Job at a time. Also, chains were recommended to me, but I want the Job to run on the dependence on the Job that ran on specific program at the specific time. I currently know that chains can only handle, programs, other chains and/or events.
    In my mind chains wouldn't work, because If I wanted to run Job3 dependent on the outcome of Job1 running Program1 and Job2 running Program2, chains wouldn't be able to accomdate that. For it to happen in chains I would have to attach Program1 and Program2 to the new chain Job and that is not exactly what I would want.
    Can anyone help/clarify this situation for me. Thank you.
    Tony

    Hi Tony,
    So the requirement is to run a job after 2 prior jobs have completed.
    There are two ways I can think of to do this, both using events. In both cases you need to set job A and job B to raise events on completion (succeeded, failed or stopped) and setup an agent for the Scheduler event queue in the schema in which you are working
    dbms_scheduler.add_event_queue_subscriber('myagent')
    In order to get Job C to start after jobs A and B have completed there are 2 options.
    1) Let job C point to a chain and start running whenever job A has completed. The chain will have 2 steps, one event step waiting on B and one that runs your task C. An event step does nothing but wait for a particular event and complete successfully when the event is received. The second step will run when the event step waiting on job B has completed.
    So your chain would look something like
    begin
    dbms_scheduler.create_chain('chain1');
    dbms_scheduler.define_chain_event_step('chain1','stepB',
    'tab.user_data.object_name = ''JOB_B'' and
    tab.user_data.event_type IN(''JOB_SUCCEEDED'',''JOB_FAILED'',''JOB_STOPPED''',
    'sys.scheduler$_event_queue,myagent');
    dbms_scheduler.define_chain_step('chain1','stepC','finalTaskProg');
    dbms_scheduler.define_chain_rule('chain1','true','start stepB');
    dbms_scheduler.define_chain_rule('chain1', 'stepB completed', 'start stepC');
    dbms_scheduler.define_chain_rule('chain1', 'stepC completed', 'end');
    dbms_scheduler.enable('chain1');
    end;
    And your job would point to the chain and run whenever job_A completes (similar condition and queue_spec). It would keep waiting till job_B runs and then the final task would run and it would complete.
    2) The second way is to require job_A to insert a row into a table somewhere. Rule conditions can access table data so you could have job_C have an event condition which checks for a completion event for job_B and checks the table to see whether job_A has completed. Then the code you run should then remove the row in the table
    e.g.
    queue_spec=>'sys.scheduler$_event_queue,myagent'
    event_condition=>'tab.user_data.object_name = ''JOB_B'' and
    tab.user_data.event_type IN(''JOB_SUCCEEDED'',''JOB_FAILED'',''JOB_STOPPED''' and
    (select count(*) from mytab where col='job_A')>0'
    Then when running C do - delete from mytab where col='job_a';
    Both of these assume that job_A always completes before job_B but both of these will then run job_C after job_B completes. Modifying either of these so that either job A or B runs first is also possible by having another job that waits on A rather than B.
    Hope this helps, if you have any more questions, let me know.
    -Ravi

  • Scheduled Events

    Hi All. Firstly forgive me, but where is the forum search feature? If I enter criteria in the Search field next to the Support button, it seems to search the entire Apple site, not the forum.
    Now, to the question at hand. Since Day 1 I have had scheduled event dots beneath every single day of every month in my calendar. Why is this and how do I go about removing them? I do not have scheduled events every day in outlook, so why would they appear on the phone?
    TAI

    I finally understood how to execute java code every 5 minutes and 2 hours! But I still doesn´t know how to launch the "hello world" message in Content Server. I know how to show it by console with System.out.print("HELLO WORLD! \n"); but I would like to show it in the web browser in the content server.
    Thankss

  • POA Scheduled event question

    I am running GW7.03HP1 on NetWare 6.5 server. On the POA Scheduled event, I have setup a job that runs every night at 12:00a.m. Action=Analyze/Fix Databases, checked on Structure, Index check and Fix problems boxes.
    Is it true that I should not check on "Contents" box when I am running the Structure check?
    I want to get the user disk space total every night. When I check on "Update user disk space totals" box, it auto check on the "Contents" box.
    On the GUI, I can check on all boxes (I know that would take longer to complete). Any I going to get more trouble if I check boxes on Structure and Contents at the same time.
    Regars
    Andy

    On 6/3/2010 2:06 PM, andyj2009 wrote:
    >
    > I am running GW7.03HP1 on NetWare 6.5 server. On the POA Scheduled
    > event, I have setup a job that runs every night at 12:00a.m.
    > Action=Analyze/Fix Databases, checked on Structure, Index check and Fix
    > problems boxes.
    >
    > Is it true that I should not check on "Contents" box when I am running
    > the Structure check?
    >
    > I want to get the user disk space total every night. When I check on
    > "Update user disk space totals" box, it auto check on the "Contents"
    > box.
    >
    > On the GUI, I can check on all boxes (I know that would take longer to
    > complete). Any I going to get more trouble if I check boxes on Structure
    > and Contents at the same time.
    >
    > Regars
    > Andy
    >
    >
    10 years ago yes. Now, no.

  • Apple Events App/Channel pulled from Apple TV?

    My Apple events app is no longer in my ATV's dashboard, has the app been pulled or is there something that I am missing. I really enjoy watching apples keynotes and like to go over them now and then. Can anyone help me with this?
    Thanks

    Hi Sebastian, yes, you're correct, that particulate app/channel was removed from Apple TV. It's customery that Apple, Inc. leaves its Apple Events app on Apple TV for about 3 weeks from its event's last day. In this case, the WWDC 2013 Keynote was from 10-14 June, and yesterday marked its 3rd week.
    I hope that helps.

  • Stopping Scheduled Delivery Apps.

    Try the steps below to stop scheduled delivery Apps from printing. 
     Sign into your account at www.eprintcenter.com
    Scroll down the page to locate the app in the My Print Apps section.
    Click on Setup (under the icon for the app)
    Scroll to the bottom of the page and click on “Cancel scheduled delivery”
    Click “Cancel Subscription”
    This question was solved.
    View Solution.

    Hope this helps the community!

Maybe you are looking for

  • A fatal error when attempting to access the SSL server credential private key. Error code 0x8009030d. Windows 8.1.

    Hi, We develop a server-side application which receives incoming https connections using self-signed certificate. It was all ok while we were using Windows 7 or Windows 2008 as OS, but when our clients started installing Windows 8 as server OS they e

  • Need Help With An Application That Produces Live Images Within Tilelists

    At the moment I have an application which is meant to produce live thumbnail images of websites. Currently how it does this is a html component (myhtml) loads websites via it's location property changing from website to website and upon fully loading

  • Print problem of TO form

    Hi All, I hit a problem for the printout of Transfer order form, for the TO printout settings, i have set the print code and form(LVSTAEINZEL) for the warehouse in OMLV, the settings were fine, but the TO printout was an abap list instead of Script f

  • Disable EDIT in Maintenance View - How ?

    I coded this function in PBO. There are 2 screens. 0100 - all records listing 0200 - double click on the record in 0100 screen and then, go into specific record details. i allow modification in  this screen. MODULE disable_inputs OUTPUT. If SY-DYNNR

  • Safari 5 too Slow

    Hi, Im using Safari 5 and I have to problems, one I a Web developer so Im trying with <video> tag (html5) and when I play a movie it spends like 50 minutes to load I used a extenseion on Safari to convert You tube flash player into html5 but it spend