All,
I have a view with each document having a picture and a brief description about it. I have to show this picture and its description on the web in multiples of 2. I mean i need to have 4 columns in each row, the first column showing the pic of the first document, the second column its description, the third column the picture of the second document and the 4th column its decription. The 5 document goes to the new row and so on. Any idea how to accomplish this. I can do it by using a web query open agent and then populating the field on my form with html but Im sure there must be an easier way using @dblookup/@dbcolumn. Any suggestions?
TIA
Ki
Subject: @dblookup on the web
Use a view, plain and simple. Some variation on this will do:
http://www-10.lotus.com/ldd/nd6forum.nsf/0/e1222e80ce1e5f5f45256da400428008
Subject: RE: @dblookup on the web
Thanks for the help Stan. Thats exactly what I was looking for.
Ki
Subject: @dblookup on the web
What it sounds like you are describing is having a view with two documents on each row. The other posting is not related to your request to put two on the same row. This cannot be done directly in a Notes view. A single row in a view is always one document.
Having said that, you might find some way of suppressing certain tags (such as every other /TR and TR) with JavaScript comments or CSS or black magic. The trick would be figuring how to make it reliably combine exactly two rows together. I would be more inclined to write an agent to generate the HTML.
Subject: RE: @dblookup on the web
Doug, my linked post uses a “Treat as HTML” view, so the table rows/table cells are entirely under the developer’s control. When a view is set to “treat as HTML”, domino does not generate any HTML of its own unless the infamous
No Documents Found
rears its ugly head. In this case, the JavaScript in the view determines when to write the table row tags, the table cells tags are written as a matter of course in the column formulas.
The original post dealt with a photo gallery (or, rather, a painting gallery) where four documents would be shown on each row. It can easily be modified to generate two table cells for each document rather than one, giving two documents per row – a picture and a text blurb for each document.