Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Object and Web Forms
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01234209
Message ID:
01237161
Vues:
16
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform