I have searched this forum for this solution with no luck. I have a form that has computed HTML text with the following formula:
@If(@IsError(@DbLookup(“”;“”:“Imagestore.nsf”;“embedded”;Item_number;3));“”;@DbLookup(“”;“”:“Imagestore.nsf”;“embedded”;Item_number;3))
This formula works great locally! I cannot get it to work on the web server?
ACL is set to allow access. View is sorted. The lookup key is computed before this formula.
What am I missing??
Your help is GREATLY appreciated
Subject: @dblookup problem on the web
I’m pretty sure you need to specify the name of the web database name (@WebDbName) in your DbLookup formula. Using just “imagestore.nsf” won’t find the database if being accessed from the web.
Subject: Solution = Path problem
I didnt realize that I had the path wrong. Even though the imagestore.nsf database is in the same directory as the database that is calling this formula, I still had to put the entire path in the formula.
“foldername/imagestore.nsf” Works fine.
Thank you for your quick and helpful responses!
Subject: @dblookup problem on the web
I’m not sure but test using the “NoCache” parameter
You could also simplify the formula
@IfError(@DbLookup(“”:“NoCache”;“”:“Imagestore.nsf”;“embedded”;Item_number;3);“”)
Since you’re opening the database locally the ACL shouldn’t cause you any problem, unless you have a consistent ACL.
You could try to use this formula for debugging to see if you get any error messages.
@Text(@DbLookup(“”:“NoCache”;“”:“Imagestore.nsf”;“embedded”;Item_number;3))
If you get an error like "No entry found in index it will return the message instead of just and failure.