Too simple DbLookup and DbColumn question (answer: ACL issue)

Please tell me what is wrong with this @dblookup:

@DbLookup(“”:“nocache”; @DbName; “SDID”; “SRV50015”; 2)

It is used in a web page and keeps returning “Entry not found in index”.

However, I know that this view exists in this database and has a document (the only doc in the view) with this key.

When I try previewing this form in Notes, it returns the correct values.

Also, when I try the same @dblookup in the Notes client by putting it in a smarticon, it returns the correct value.

When I try it as an @dbcolumn (taking out the “SRV50015” parameter) on the web, it returns no values (like it can’t find any documents). But previewed in the Notes client, it works as expected.

The document has no reader or authors fields.

The ACL sets Anonymous to Depositor access (if I change that to Reader, then the user is forced to login – which I don’t want). I changed -Default- to Reader access, but still no luck.

I can’t think of why this lookup won’t work. Can anyone help?

Thanks.

-Jeff

Subject: must use “” for servername on web

Subject: RE: must use “” for servername on web

For that matter, for lookups within the same database, the server:database parameter should be “”. (@DbName should return “” for the servername portion on the web, though.)

Is the view available to the web?

Subject: RE: must use “” for servername on web

I tried replacing @DbName with this:

“”:@Subset(@DbName;-1)

But got the same mssage (Entry not found in index).

I also tried “” for the server:dbname parameter – same result.

The view is not hidden to the web; however, when I tried previewing it in the web browser, no documents were displayed (which is consistent with the problems I’m having – but why isn’t the document there?).

I even tried to create a new document from the action buttons on the web, but the new document also doesn’t appear in the view, on the web (but they do appear in the view in the Notes client).

Why would some documents appear in Notes but not on the web, using the same view?

Thanks for any new ideas.

-Jeff

Subject: Are there reader names fields on the documents?

If so, perhaps the web user isn’t logged in yet.

Subject: RE: Are there reader names fields on the documents?

There are no reader or authors fields on the document.

The user is definitely not logged in. I need to get it working without requiring them to logon.

The form is very simple. There are the regular fields you find on all forms: $UpdatedBy, Form.

There are the two fields I created: SurveyID and SurveyTitle – both are Text fields with the Summary flag set.

And there is one other strange field, called OriginalModTime.

Pretty simple. But still they don’t show on the web.

-Jeff

Subject: RE: Are there reader names fields on the documents?

Jeffrey,

You mentioned that you have Anonymous set to depositor in the db ACL. Change both Anonymous and Default to reader. This will not cause your users to log in unless the form you are trying to open automatically goes to edit mode.

HTH,

Mark

Subject: RE: Are there reader names fields on the documents?

The link that opens this form uses “?OpenForm” which apparently requires Author access.

Author was forcing users to login. The reason is that the ACL attribute “Create Documents” was not checked.

Seting Anonymous to Author and giving them “Create Documents” has solved the problem.

Thanks all!

-Jeff

Subject: RE: Are there reader names fields on the documents?

I am glad you solved your problem. If you are sure users should be able to create documents in this database then go for it. I would strongly recommend changing the link to use “?ReadForm” instead and give your users reader access tho.

Cheers,

Mark

Subject: RE: Are there reader names fields on the documents?

Of course you are right.

Silly me: the page only has Computed and CFD fields (it’s just a home page which directs people to other pages). No need for Author.

Reader access worked just fine. :slight_smile:

-Jeff

Subject: RE: Are there reader names fields on the documents?

Jeff, I noticed too that 6.5.4 appends a field named “OriginalModTime” to any form (and possibly any design note type, haven’t checked yet, but was why I searched the forum) saved by the 6.5.4 Designer Client. I tried recreating a form just to confirm whether the current client I was using was creating this into the form design note or whether it was from an older file, and it appears new and existing forms saved by the 6.5.4 Designer client appends the “OriginalModTime” item value to the design note.

Stephen