Show Single Category, View Templates & @DbCommands

0 pts.
Tags:
Lotus Domino
I'm having a bit of trouble with navigation & embedded views on the web and need a way to get round it. I'd also be interested to know if anyone else is seeing this. Here's the scenario: I have a $$ViewTemplateDefault form containing an embedded view (html not java). This view contains documents categorized by company name. On the form, there is a field which uses @NameLookup to pull the Company name from the user's Person document. This value is then used in the Show Single Category formula to restrict the view to only documents belonging to the company of the currently logged in user. However, if I am logged on, the single category formula evaluates to "*" so I can view all categories. I also have buttons containing @DbCommand("Domino";"ViewNextPage") @DbCommand("Domino";"ViewPreviousPage") When I log in as me (viewing all categories) these buttons work fine. If I log in as one of our users from another company, or if I change the company field in my own Person document, the ViewNextPage button seems to simply reload the page. It does not move onto the next page of documents. I tried doing the @NameLookup within the Show Single Category formula but this didn't work. I tried hardcoding the company name into the Show Single Category formula - instead of just reloading the page, this came back with No Documents Found. I also tried setting the 'Lines to Display' property of the embedded view to see if this made a difference, but it is not. I'm seeing this behaviour in both Firefox and IE. Domino server is 6.5.1 and is doing the same thing on both a Windows 2000 and a Linux (not sure which flavour) box. I've searched this forum and IBM Support and there has been some issues with single categories & embedded views but most of the ones I found seemed to have been fixed pre-6.5.1 and I didn't manage to find anything which explains the problem I'm having. Does anyone know if there are alternatives to the @DbCommands for navigation of single category embedded views on the web which might get round this problem? Also, has anyone else come across this? Thanks for reading! Emily. P.S. Also posted on LDD
ASKED: August 25, 2004  11:00 AM
UPDATED: October 1, 2004  4:37 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can set the number of lines in the Embedded View properties on the form to, I think, 3000 lines. Or, if you used $$ViewTemplate for MyView, the reverse is true: you can call the URL to open the view w a count:

http://folder/db.nsf/Myview?openview&count=3000

The viewtemplate associated with it will bring in all the formatting, Javascript, etc that you want in the form.

Regarding substitutes for @Command([NavigatePrev]) etc : Just use that on your form, and then look at the source. You will see that it references a UNID for the next or previous in a list of docs. In this case it sounds like the restricted category is foiling the expected list of UNIDs, so you could build a view that delivers all the UNIDs that a particular category would yield. Put the list into a computed for display field, and referernce that. That should take care of it.

Have fun!!

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sabinb
    I found this on LDD, hope be helpfully http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/a03365c10b196c9f85256e4d0058d600?OpenDocument&Highlight=0,%40right(query_string_decoded%3B
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following