StrataFrame Forum

Using DevExpress xtraScheduler with StrataFrame

http://forum.strataframe.net/Topic8003.aspx

By Scott - 4/9/2007

Is there any information on how to use the DevExpress controls (xtraScheduler is the one I am interested in) with SF BO?  I have put a businessBindingSource on my form at linked it to the SF BO.  The information is inserted into the BO's table but the values are put into the table.  If I change to using a .NET BindingSource,DataSet and TableAdapter everything works just fine.

Any pointer would be great,  Thanks.

Scott

By StrataFrame Team - 4/10/2007

Whenever you say
The information is inserted into the BO's table but the values are put into the table
what do you mean?  Is the data not being copied back into the business object?
By Scott - 4/10/2007

Sorry,

I meant a new row is being inserted into the table (a blank row) but the values from the "appointment" form are NOT showing in the newly created row.

By StrataFrame Team - 4/10/2007

Hrm... I'll have to check that.  Maybe they're expecting it to implement some different interfaces as well.  We'll see.
By Paul Chase - 4/11/2007

I was having an issue as well but I am just setting the data source of the scheduler to the bo's data table and everything works ok. Also handle some events to automagically save any changes back to the DB when an appoint is added changed or deleted.

Me.BoSchedule1.FillAll()

Me.BoSchedulerResources1.FillAll()

Me.SchedulerStorage1.Appointments.DataSource = Me.BoSchedule1.CurrentDataTable

Me.SchedulerStorage1.Resources.DataSource = Me.BoSchedulerResources1.CurrentDataTable

 

''' <summary>

''' Handle the Appointment Changed,Inserted and Deleted Events and Call the Business Object Save Event

''' </summary>

''' <param name="sender"></param>

''' <param name="e"></param>

''' <remarks></remarks>

Private Sub AppointmentsChanged(ByVal sender As Object, ByVal e As DevExpress.XtraScheduler.PersistentObjectsEventArgs) Handles SchedulerStorage1.AppointmentsChanged, SchedulerStorage1.AppointmentsInserted, SchedulerStorage1.AppointmentsDeleted

Me.BoSchedule1.Save()

End Sub

By Trent L. Taylor - 4/11/2007

Glad you got it working Smile
By Scott - 4/11/2007

Thanks for the information,  that seems to work.  Why did I think of that.

Scott