Web Development

Hi

I am creating an application for the web, which I have never attemted before. Is there any way to make my Views look good in the web, I have enabled the Java applet but to be truthfull they still dont look very good.

Any help is appreciated.

Regards

Djbell

Subject: Web Development

Yeah, there are several ways. What you see, is just views produced by domino. I agree, the view applet is not that good, but it gives you quite some good things. Anyway, if you look at the source of a view (html source), you will see that it is pure html and table tags. So, infact, you can just set your view to be treated as HTML and put HTML in your columns your self. This way, you can produce every single line and character of html code yourself, and make the view look exactly the way you want yourself.

Regards,

Rune Carlsen

Founder Dominozone

http://www.dominozone.net

Subject: Web Development

I feel your pain. One thing that I have done that works sometime is to create
a form with a table with fields in each column for each column in the view.
Make the fields text with multiple values and separate multivalues with a new
line. Then use an @dblookup in the fields to get the view contents. This
doesn’t work so well with views with one or more categories. You also need to
code the first column with some html so the entries for each row open the
document you want. i.e “A TARGET=_NEW
HREF=/dbname/viewname/key/?opendocument…”]"

Check the syntax on that url to open a document by key. In cases where I have
a category, I have a separate form with one column for the category and then
open another form and pass it the category as a parameter in the url and then
lookup the data for that category the same way as described above. It’s a fair
amount of extra work, but you can get them to look much nicer and they usually
open faster than a view. Good luck.

Subject: RE: Web Development

Oh, my goodness, please don’t follow this advice. Apart from a couple of implementations I’ve seen that used an agent to print view information to the web, this is the most expensive and least efficient way of doing what you want.

For ultimate control, you can use views set to “Treat view contents as HTML”. When you select that option, the HTML created by the view is exactly what you define in the view columns. The option is really misleading – while the normal outcome is HTML in most implementations, the view’s output is actually treated as literal text. The view would have to be displayed on a form or a page (normally something specially named as “$$ViewTemplate for ”. You can get as whacky as you want, and there’s no reason to believe that a web view needs to look like a table of values. (Most of the Domino-based blogs out there are actually using views to display their information.)

A couple of sites to check out for more information:

http://www.codestore.net

http://www.notestips.com

Subject: RE: Web Development

Maybe we should create a FAQ of code example not to follow in here. I am sure some of mine would make the post:-).

Subject: RE: Web Development

I’ve dropped a cow pie or two here myself. But (and this is the important thing), we’re getting better.