For years we are working with the BOI's used with BCK 1.3 software, Create COM objects, register them on the server, etc. All working fine.
We have build on this technology an extranet, together with web services.
Now we want to stop using the Java Client and BOI COM dll's on the Windows server side (32 bits, registry setting) and go on with the Baan Automation (Baan Client on the server).
I saw some samples of Baan Automation, which are working fine, even with return variables in reference calls.
We can build off course our own library, and then return a separated string, containing the records, but most of the logic is already there in our BOI's.
So we still want to use the exisiting BOI libraries (baan side) to retrieve, update and delete the data. Therefore I call the class through ASP.NET by:
BaanObj = Server.CreateObject("Baan4.Application.default")
BaanObj.Timeout = 30
ccur.f.Text = "USD"
ccur.t.Text = "USD"
StructCurrency = 0 'Reference variable to the BaanObj call
StructError = 0 'Reference variable to the BaanObj call
ReqdFields = ""
CallId = 0
SetSize = 1000
SetComplete = "N"
Company As Integer = 100
BaanDLL = "occmcscurrrates"
baanFunction = "ccmcscurrrates.list(" & Chr(34) & ccur.f.Text & Chr(34) & ", " & Chr(34) & ccur.t.Text & Chr(34) & "," & StructCurrency & "," & Chr(34) & ReqdFields & Chr(34) & "," & SetSize & "," & CallID & "," & Chr(34) & SetComplete & Chr(34) & "," & Company & "," & StructError & ")"
If BaanObj.Error = 0 Then
--- more code to retrieve the integer values from this string
'StructCustomer's value is changed to 435488
'StructError's value is changed to 369856
BOI's are working with Containers in BaaN. The containers are represented by an integer (in StructCurrency and StructError).
The reference variables are indeed returned by the baan call, but what I really want is the underlying container data.
In the old way, this was retrieved through the ccmcscurrrates.dll in ASP.NET and then retrieve the records in the ASP.NET code.
Probably somewhere the records are retrieved in this DLL by receiving back an integer value from the BOI.
Is there a way to retrieve what I want?
Thanks in advance.