When does the editing state get changed to editing state adding?


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (592 reputation)Advanced StrataFrame User (592 reputation)Advanced StrataFrame User (592 reputation)Advanced StrataFrame User (592 reputation)Advanced StrataFrame User (592 reputation)Advanced StrataFrame User (592 reputation)Advanced StrataFrame User (592 reputation)Advanced StrataFrame User (592 reputation)Advanced StrataFrame User (592 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
When adding a record when should the editing state change to adding?

I am handling the set default values event of a business object however the editing state is idle.. I would think that is should be adding??

Anyways for now I am can set my own property so I know that values that are set from the set default value event. below

Private Sub BoWoLineItem1_SetDefaultValues() Handles BoWoLineItem1.SetDefaultValues

With BoWoLineItem1

.woi_PayRate = Me.BoWorkOrderHeader1.woh_PayRate

.End With

End Sub

Private Sub BOWoLineItem_FieldPropertyChanged(ByVal sender As Object, ByVal e As BOWoLineItemFieldChangedEventArgs) Handles Me.FieldPropertyChanged

Select Case e.FieldChanged

Case BOWoLineItemFieldNames.woi_PayRate

'-----------------------------------------------

'

'--- Update Check Item Details Reg and OT Hours

'

'-----------------------------------------------

'Check to see if this value was changed due to the set defaul values

If Me.EditingState = MicroFour.StrataFrame.Business.BusinessEditingState.Adding Then

 -> doesnt work replace with custom property?

'bail

Exit Select

End If


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search