BallpointPenguin
Programmer
I am trying to get information written to the ARCUSO fields as we migrate our system from 5.2 to 5.4. I am trying to store information retrieved elsewhere, and here is what I'm trying to do:
Session.Open(ACCPACuid, ACCPACpwd, ACCPACcomp, Now, 0, "")
dblink = Session.OpenDBLink(tagDBLinkTypeEnum.DBLINK_COMPANY, tagDBLinkFlagsEnum.DBLINK_FLG_READWRITE)
llngSuccess = dblink.OpenView("AR0400", ovARCUSO)
'... get strCustomerID, strFieldName, strFieldValue...
ovARCUSO.Init()
ovARCUSO.Fields.FieldByName("IDCUST").Value = strCustomerID
ovARCUSO.Fields.FieldByName("OPTFIELD").Value = strFieldName
ovARCUSO.Fields.FieldByName("VALUE").Value = strFieldValue
ovARCUSO.Verify()
ovARCUSO.Process()
ovARCUSO.Insert()
If ovARCUSO.LastReturnCode <> VC_SUCCESS Then
'... Log error
End If
The problem is that, all of this works properly, but I check the database, and nothing gets written there. What am I missing?
Session.Open(ACCPACuid, ACCPACpwd, ACCPACcomp, Now, 0, "")
dblink = Session.OpenDBLink(tagDBLinkTypeEnum.DBLINK_COMPANY, tagDBLinkFlagsEnum.DBLINK_FLG_READWRITE)
llngSuccess = dblink.OpenView("AR0400", ovARCUSO)
'... get strCustomerID, strFieldName, strFieldValue...
ovARCUSO.Init()
ovARCUSO.Fields.FieldByName("IDCUST").Value = strCustomerID
ovARCUSO.Fields.FieldByName("OPTFIELD").Value = strFieldName
ovARCUSO.Fields.FieldByName("VALUE").Value = strFieldValue
ovARCUSO.Verify()
ovARCUSO.Process()
ovARCUSO.Insert()
If ovARCUSO.LastReturnCode <> VC_SUCCESS Then
'... Log error
End If
The problem is that, all of this works properly, but I check the database, and nothing gets written there. What am I missing?