I'm trying to insert records using the esDataSource and a DetailsView which is nested within a Gridview.
The DetailsView only shows a single textbox and a commandbutton (insert). I've trapped the esDataSource_esPreInsert() event to add the rest of the values like so (values contain good values, just changed for readability):
Code:
Private Sub esDataSource1_esPreInsert(ByVal sender As Object, ByVal e As EntitySpaces.Web.esDataSourceInsertEventArgs) Handles esDataSource1.esPreInsert
e.Values("SiNumber") = value1
e.Values("PnmMain") = value2
e.Values("PnmAutoKey") = value3
e.Values("InspectionType") = value4
e.Values("Description") = value5
End SubHowever while inserting I get a nasty Oracle error message saying the Values keyword is missing. I'm guessing my approach to set values is not the right one?