Problem with Evaluate statement

Hi

I tried using @dblookup in my Lotusscript. It worked fine for views within the same Db but seem to return nothing when pointed to another DB. I recalled using it in the past and I can’t seem to figure out what’s wrong. Can anyone point out where I went wrong

This is the working code:-

vTeamList=Evaluate(|@Trim(@Unique( @DbLookup( “” : “NoCache” ; “” : “”; “TeamByClass”;“|+classinfo+|”; 6) ))|)

This is not working:-

vDocumentList=Evaluate(|@Trim(@Unique( @DbLookup( “” : “NoCache” ; “|+serverName+|” : “|+LookupDb+|”; “StudentDocumentsbyType’”;“Team”; 1) ))|)

Thanks in advance

Subject: Problem with Evaluate statement

You can not make lookups to other servers from background agents. Those agents are scheduled agents on server and agents triggered from web browser. In Notes client this should not be a problem.

Also make sure that serverName and LookupDb are computed correctly. Does it work if you hardcode those values directly in the formula?

Make sure the first column in StudentDocumentsbyType view is sorted.

Subject: RE: Problem with Evaluate statement

Andrei

Thanks, I think that was the problem The dbs are on the same server but its triggered off from a web client.

Transversing the documents using view are ok, I tot it would have been quicker using the eval statement

Subject: RE: Problem with Evaluate statement

If they are on the same server, simply change the lookup to local, as the code is running local to the server

vDocumentList=Evaluate(|@Trim(@Unique( @DbLookup( “” : “NoCache” ; “” : “|+LookupDb+|”; “StudentDocumentsbyType’”;“Team”; 1) ))|)