csla objects in multipane windows form

csla objects in multipane windows form

Old forum URL: forums.lhotka.net/forums/t/11292.aspx


arquisoft posted on Tuesday, April 10, 2012

I'm working with csla 3.8.

I'm passing the objects by Ref from a usercontrol in one pane to other usercontrol in other

pane. I have problems with applyEdit give me a error :

Edit level mismatch in AcceptChanges.

the first  usercontrol have un object Sale. This object has  a Client object and the Client

I edit in the other usercontrol and then I pass the object Sale to the other usercontrol .

My goal is show both usercontrol at same time to the user.

thanks

 

JonnyBee replied on Wednesday, April 11, 2012

You must Bind/Unbind in a proper way before you can call save on the object. 

Look at the BindingSourceExtension in CslaContrib.

Also read my blog post here:
http://jonnybekkum.wordpress.com/2009/10/20/forms-databinding-the-magic-sequence-of-binduiunbindui/

arquisoft replied on Friday, April 13, 2012

thanks very much.

I will use pattern MVC to my multipane UI . Of Course model is my csla Objects.

I am right?.

JonnyBee replied on Friday, April 13, 2012

Which UI platform is your application using?

arquisoft replied on Friday, April 13, 2012

winforms.

 I coud use :

 

Me.CslaActionExtender1.ResetActionBehaviors(mIngreso)  ?

arquisoft replied on Friday, April 13, 2012

i downloaded cslacontrib but only has OBJECT CACHING??

Thanks

 

JonnyBee replied on Saturday, April 14, 2012

Goto Source Code tab and download latest source.

http://cslacontrib.codeplex.com/SourceControl/list/changesets

 

 

 

arquisoft replied on Saturday, April 21, 2012

Thanks very much ( I am chilean and I dont speak english very well, my native language is spanish) .

I `d like  use mvc in my projects (winform) . I could user your contribute but I want read some document yours to understand the model.

thanks

 

 

JonnyBee replied on Sunday, April 22, 2012

Recommended reading is

DataBinding FAQ   : http://windowsclient.net/downloads/folders/applications/entry1302.aspx
DataGridView FAQ : http://windowsclient.net/downloads/folders/applications/entry1304.aspx
Designer FAQ         : http://windowsclient.net/downloads/folders/applications/entry1332.aspx

I can also recommend the Data Binding book from Brian Noyes:
http://www.amazon.com/Data-Binding-Windows-Forms-2-0/dp/032126892X

Plus the samples in CslaContrib and Csla.

I have never used MVC for a Windows Forms application so I have no references for that.

shrikant44 replied on Wednesday, April 11, 2012

I'm passing the objects by Ref from a usercontrol in one pane to other usercontrol in other.

 

 

 

 

las vegas property management companies

Copyright (c) Marimer LLC