General information
Category:
The Mere Mortals .NET Framework
Environment versions
Network:
Windows 2003 Server
Hi Kevin
1.Why do you need .NewEntity()?
Since my webform doesn't base from MMWebform, I am manually creating the business object
i.e
I am registering the object manually
When I do a new Insert I call the following code
Dim oOSPCHECKBOOKSETUP As New OSPCHECKBOOKSETUP
oOSPCHECKBOOKSETUP.NewEntity
oOSPCHECKBOOKSETUP.Entity.INTERID = Me.BvinField.Value
oOSPCHECKBOOKSETUP.Entity.CHEKBKID = Me.CheckBookList.SelectedValue
oOSPCHECKBOOKSETUP.Entity.MODIFIDT = Now.Date
Dim save1 As OakLeaf.MM.Main.Business.mmSaveDataResult =
oOSPCHECKBOOKSETUP.SaveEntity
>2.Also how do you update the entity? object.SaveEntity
When I try to do an update I try to call the following
oOSPCHECKBOOKSETUP.Entity.INTERID = Me.BvinField.Value
oOSPCHECKBOOKSETUP.Entity.CHEKBKID = Me.CheckBookList.SelectedValue
oOSPCHECKBOOKSETUP.Entity.MODIFIDT = Now.Date
Dim save1 As OakLeaf.MM.Main.Business.mmSaveDataResult =
oOSPCHECKBOOKSETUP.SaveEntity
But it comes back with SaveCanceled.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only