The project I’m working on has both a notes and web front end. On the notes side, I have the standard views which work fine. However on the webside, I have embedded views. The problem I am having is if I am expanding selections in my view online, the table doesn’t stay the same width, it grows and shrinks to fit the content. I want to be able to expand my views while keeping a fixed width on all the columns.
Subject: embedded view as html - fixed table width?
I had to do the same exact thing as you, and as I paged through it, the column widths would expand to fit the largest value on that page. The solution that I did, which is not fun, is that I clicked on the advanced tab, and selected ‘treat view content as html’ on the web access section. Which means, that you have to create the html for each row/cell (width in % is what I did). I put the table html tags above the embedded view and after. Looks horrible in the client, and a pain to find issues in each of the column values. But anyways, that is what I did, and you can definately do. I will keep an eye on this post to see if anyone else has any other ideas.
Also forgot to add, you can create a web version of the same view alias, and hide the web one from client, and the client from the web. I don’t know of any way that you can get by using the same view.
Subject: RE: embedded view as html - fixed table width?
Ok, so I’ve managed to figure this out quite well. Thanks btw. Now the only problem I’m having with it is determining the correct url for the links to documents once I am at the bottom of a particular tree. Meaning I’ve expanded to the bottom of a category and now have the name of a document. I need to have that name be an html link to the corresponding document.
Subject: RE: embedded view as html - fixed table width?
“<a href="” + @ViewTitle + “/” + @Text(@DocumentUniqueId) + “">” + DocumentTitleField + “”
Subject: RE: embedded view as html - fixed table width?
This worked just fine, however I now see the entries twice in my table. When I hover over the link I noticed one link has the actual view title where as the second link uses the alias assigned to that view as the title. I got rid of all the aliases I had even went as far as clearing my cache and starting over, but I still see two occurances of the same document and one still points through the alias.
Subject: RE: embedded view as html - fixed table width?
Well, you could try @Subset(@ViewTitle;1), but @ViewTitle should only be returning one value in the first place.
Subject: RE: embedded view as html - fixed table width?
Actually I just figured it out. I changed the first code you gave me by omitting the @viewtitle and simply entering it in manually. Obviously the only downfall is if I ever change the view name, I have to change it in my code too. But I don’t forsee that as being too much of a problem.
Thanks for your help