can´t save a BO to a sql table


Author
Message
Felix M Avendano
Felix M Avendano
StrataFrame Novice (62 reputation)StrataFrame Novice (62 reputation)StrataFrame Novice (62 reputation)StrataFrame Novice (62 reputation)StrataFrame Novice (62 reputation)StrataFrame Novice (62 reputation)StrataFrame Novice (62 reputation)StrataFrame Novice (62 reputation)StrataFrame Novice (62 reputation)
Group: Forum Members
Posts: 48, Visits: 1.5K
I did this in a button, and it doesn't save the data to the table, Ive double checked and after the save command both bo's are populated, ant the msgbox says localidades grabadas, but it's false, ir does nothing. Here is the script.

        Dim vventrianlocalidadesyzonas As New BOventrianlocalidadesyzonas
        Dim vlocalidadesyzonas As New BOLocalidadesyzonas
        vventrianlocalidadesyzonas.DataSourceKey = "Webconn"
        vlocalidadesyzonas.PrimaryKeyIsAutoIncremented = True
        vlocalidadesyzonas.PrimaryKeyIsUpdatable = True

        vventrianlocalidadesyzonas.FillAll()

        vlocalidadesyzonas.CopyDataFrom(vventrianlocalidadesyzonas, BusinessCloneDataType.ClearAndFillFromDefaultView)


        If vlocalidadesyzonas.Save() = MicroFour.StrataFrame.Data.SaveUndoResult.Success Then
            MsgBox("Localidades Grabadas!")
        Else
            MsgBox("Un error ocurrió durante la grabación...")
        End If
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search