I have trouble with my web-based domino script if I put it in the server.
It turned out that the line that gives error is:
Set Connect = CreateObject(“ADODB.Connection”)
Now, I don’t understand this since it works in local environment. Is there any setting in the server I shoud set ? or is there any properties that I need to set ?
Unfortunately since it is web based, I don’t get error message, the data is simply not displayed in the web page.
Is there anyway to see the error message ?
For debugging purpose, I created a field which print a message if everything is all right. But not if I put the string after the CreateObject statement.
edit -
I created a simple form to be previewed in Lotus Notes and I got this error:
Object variable not set
But this error is on different line, CreateObject doesn’t give error in Notes. It errored when it attempted to get the value from the database:
Object variable not set indicates the recordset was not created. If you say that the creatobject statement works in other databases, then the fault is with the next lines of your code. It may create the object, but either the qry or result is failing.
Try pasting the code from a database that works in this database… if that code works, then you can assume that the fault lies with whatever is different in this database… i.e. the queried table may be locked for reading, or locked to read permissions, any number of things.
I fixed the Object variable set error. It works now in Lotus Notes, but still doesn’t work in web.
If I only have something like this:
doc.TempField1 = “Before Create Object”
Connect = CreateObject(“ADODB.Connection”)
doc.TempField2 = “After Create Object”
“Before Create Objet” is displayed in the field while “After Create Object” is not. Clearly, there is an error in the CreateObject statement, while that statement is working properly in the server if I open it with lotus notes. And it also works properly in local machine both in lotus notes and web.
The thing is that when I display it on the web, I don’t know what the error message is.
Thank you very much Marilyn. But I was wondering why the old script worked with security #1 though, is it because it was developed in Lotus 5 instead of 6.5 ?