Trying to Clarify Flags on Business and Collection Objects
When building custom Collection Item object or Business Logic object how and when do the Delete, Change and Insert flags need to be set?
I fully understand how these work in the iSave scenario.
I realize that in having properties you should call NotifyPropertyChanged and this will set the change flag and creating a new object or clearing one should turn on the insert flag but what about the Read function?
Also with a collection item it doesn't appear that it sets the flags on the collection itself, should it?
What I am trying to achieve is say you have a maintenance form that has a business login object that has a property that is a a Jiwa Collection similar to the the scenario of a sales order with lines in other words a header object and a collection of lines how to best control the save, cancel and delete buttons on the form as I want to have a SetButtons function that will be have appropriately using the Business Logic object that the form is using and looking at the flags?
I fully understand how these work in the iSave scenario.
I realize that in having properties you should call NotifyPropertyChanged and this will set the change flag and creating a new object or clearing one should turn on the insert flag but what about the Read function?
Also with a collection item it doesn't appear that it sets the flags on the collection itself, should it?
What I am trying to achieve is say you have a maintenance form that has a business login object that has a property that is a a Jiwa Collection similar to the the scenario of a sales order with lines in other words a header object and a collection of lines how to best control the save, cancel and delete buttons on the form as I want to have a SetButtons function that will be have appropriately using the Business Logic object that the form is using and looking at the flags?