Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:57:57+00:00 2026-06-06T04:57:57+00:00

I’m currently using a scheduler control to save and restore scheduled appointment data from

  • 0

I’m currently using a scheduler control to save and restore scheduled appointment data from a SQL database within my application. The scheduler control itself is configured to use a couple of custom fields, like so:

private DevExpress.XtraScheduler.SchedulerControl _SchedulerControl;
private DevExpress.XtraScheduler.SchedulerControl StandingSchedulerControl
{
    get
    {
        if (_SchedulerControl == null)
        {
            _SchedulerControl = new DevExpress.XtraScheduler.SchedulerControl();

            BindingSource bs = new BindingSource();
            bs.DataSource = StandingOrderList;

            _SchedulerControl.Storage = new SchedulerStorage(this.components);
            _SchedulerControl.Storage.Appointments.AutoReload = true;
            _SchedulerControl.Storage.Appointments.Mappings.Subject = "Description";
            _SchedulerControl.Storage.Appointments.Mappings.RecurrenceInfo = "RecurrenceInfo";
            _SchedulerControl.Storage.Appointments.Mappings.Type = "Type";

            _SchedulerControl.Storage.Appointments.CustomFieldMappings.Add(new DevExpress.XtraScheduler.AppointmentCustomFieldMapping("Inactive", "Inactive"));
            _SchedulerControl.Storage.Appointments.CustomFieldMappings.Add(new DevExpress.XtraScheduler.AppointmentCustomFieldMapping("StandingOrderKEY", "StandingOrderKEY"));
            _SchedulerControl.Storage.Appointments.DataSource = bs;
            _SchedulerControl.EditRecurrentAppointmentFormShowing += new EditRecurrentAppointmentFormEventHandler(_SchedulerControl_EditRecurrentAppointmentFormShowing);
        }
        return _SchedulerControl;
    }
}

Where “StandingOrderList” is defined as a list of StandingOrder business objects. This saves and restores correctly, but it is possible within the application to only have a value of “StandingOrderKEY,” and need to obtain the Appointment object within the storage from this value. Until now, my solution was this:

private Appointment GetAppointmentByStandingOrderKEY(Guid standingOrderKEY)
{
    Appointment findAppointment = StandingSchedulerControl.Storage.Appointments.Items.Find(appointment => (Guid)appointment.CustomFields["StandingOrderKEY"] == standingOrderKEY);
    return findAppointment;
}

However, it appears that StandingSchedulerControl.Storage.Appointments.Items only contains Appointments that have types of Normal or Pattern, which means if the StandingOrderKEY is associated with a saved ChangedOccurrence or a DeletedOccurrence, the related appointment won’t be found.

I’ve verified that the BindingSource created from the list does, in fact, contain the exceptions for all Appointments. It seems that when it is set as the DataSource for the AppointmentStorage, exceptions are housed “within” their Pattern appointment, and are only obtainable by first getting a reference to the parent appointment and then calling GetExceptions() on that appointment, and searching the resulting collection for the StandingOrderKEY. This is a problem, however, as currently we don’t have the “parent” appointment’s identifying information, only the one for the exception.

And so, my question(s) are as follows (roughly in order of preferability):

  • Is there a way to obtain an Appointment object from the Appointment storage by Custom Field value, ignoring the type of the appointment? Is there a collection that contains both exceptions AND normal/pattern Appointments?
  • We know that the Appointment is going to be an Exception up front, because the Type of the appointment is already stored. Is there a way to search ALL exceptions for this particular custom field value?
  • Is there a way to obtain an Appointment object from the Appointment storage by a datasource reference? The BindingSource used as the DataSource contains the exception appointments. Is there a way, given an item in the BindingSource collection, to associated it with the item in the Storage?

Any other suggestions are welcome. Thanks for your attention!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:57:58+00:00Added an answer on June 6, 2026 at 4:57 am

    The eventual solution that I came to was maintaining my own mapping of standing order objects to appointments, as seen in this DevExpress solution here: http://www.devexpress.com/Support/Center/p/E3143.aspx

    This allowed me to obtain the appointment object from the source object, as in question 3 above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
Thanks in advance for your help. I have a need within an application to
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.