Comments
Posted by Rok RC Cvahte on 09/07/2005 06:43:01 AMSupport for other than IE browsers
Hello,
I'm trying to make this xmlview work with Mozilla Firefox. So far I've noticed the ViewXML.js uses certain IE-only features and that's why the view isn't displayed when opened in Mozilla Firefox.
I'd appreciate any respose regarding this issue.
Thank you,
Rok
Posted by Curtis Avery on 09/11/2005 12:24:01 PMFirefox
Hi Rok,
My dev environment is IE only, so unfortunately, I don't have any experience with Firefox. I'll see what I can do though. If you are able to figure out how to get it to work before I do, please let me know and I'll update the code.
Thanks,
Curtis
Posted by Tim Dawg on 09/15/2005 05:07:55 PMR5 Convert
Are there any issue with converting this to R5 db format? Moving the R6 specific stuff to pages for the javascript and css elements?
Posted by Tony Jones on 02/14/2006 10:18:23 AMIs there a fairly simple way to disable the selection margin?
I've tried everything from the view properties to actually changing the xsl without any luck. Am I missing something?
Posted by Boyzl Sand on 03/07/2006 03:10:38 AMProblems displaying on some domino servers in IE?
If you experience problems of this code not working on some Domino servers read this!
Code was written for Domino servers with "DominoCompleteDoctype" bug (bugID: Bug ID: ONTF-6HPAT4, read: http://www.notestips.com/80256B3A007F2692/1/TAIO-65QG97 and http://www.bofrede.com/en/articles/tips-doctype-fix ).
If you want it to work on server versions with that bug fixed (or "workarounded" with set con DominoCompleteDoctype=1 in server console) some changes to css and 'webviews/resizePage.js'.
Have nice& bugless times,
Boyzl
Posted by Curtis Avery on 03/08/2006 10:39:33 AMDominoCompleteDoctype
Boyzl is correct. This code was developed on Domino 6.3 without the DominoCompleteDoctype=1 parameter added to the notes.ini file. I added the parameter on our test server and the XML View failed to render properly. So it would appear that some css and js changes will be needed to get this to work if you are using DominoCompleteDoctype. Thanks for the catch Boyzl!
Posted by Curtis Avery on 03/08/2006 10:43:11 AMServer version
Oops! Make that server version 6.5.3 in the above post.
Posted by Ben Rass on 08/02/2006 05:01:36 PMTotals in categorized views
Hi. great tool, but have problems with total colums.
The sum of the category is not displayed. Instead the result is shown 1 or 2 columns shifted right.
The total of the whole column is correct.
Do you know this? Have you solved this yet?
Thanks, Ben
Posted by Curtis Avery on 08/02/2006 05:28:40 PMre: Totals
Hmmm... The categorized view of the demo has totals that line up for me. Which Domino server and browser versions are you using?
Posted by Ben Rass on 08/03/2006 06:09:50 AMre2: Totals
Using IE 6.0.28 with "Local Preview" on Notes 6.5
Domino server will be 6.5.13, but not tested, because admin is not happy about the ?readviewentries.
The total columns in the demo working well. Maybe because they are before the category columns.
Try to add 3 total columns in the "category view" behind the categorie columns. The first 2 new columns show nothing on the category row. The 3th column shows the value from the first.
For direct contact you can use email: benrasi (at) gmx.de
Thanks.
Posted by Dietrich Willing on 10/08/2006 09:49:13 PMGetting the Views to work in Mozilla Firefox
Three things need changing to have the views show up in Firefox.
In the script library 'webviews/ViewXML.js'
1. Add a new javascript function, get_firstchild()
//check if the first node is an element node
function get_firstchild(n)
{
var x=n.firstChild;
while (x.nodeType!=1)
{
x=x.nextSibling;
}
return x;
}
Thank you to w3schools.com for providing the function
Next, go to the function loadDominoView(sId, sViewSource) and look for the comment
// store position values for use with navigation functions
Add a new variable, xNodeFirstChild = "";
Within the if block, if (iDominoViewPageEntries > 0) {
add
xNodeFirstChild = get_firstchild(oRoot);
and replace
sDominoViewFirstPosition = oRoot.firstChild.attributes.getNamedItem("position").nodeValue;
sDominoViewLastPosition = oRoot.firstChild.attributes.getNamedItem("position").nodeValue;
with
sDominoViewFirstPosition = xNodeFirstChild.attributes.getNamedItem("position").nodeValue;
sDominoViewLastPosition = xNodeFirstChild.attributes.getNamedItem("position").nodeValue;
2. find function viewRowFocus(iTableRow)
replace it with this version
function viewRowFocus(iTableRow) {
if (oViewDataTable) {
if (oViewDataTable.rows.length == 0) return;
if (oViewDataTable.rows[iTableRow].id == "RowTotals") return;
if (bFocusDocument && oViewDataTable.rows[0] != null) {
// clear old focus row
row = oViewDataTable.rows[iFocusRow];
if (row) {
for (c=1; c < row.cells.length; c++) {
row.cells[c].style.borderTop = "";
row.cells[c].style.borderBottom = "";
}
}
// set new focus row
row = oViewDataTable.rows[iTableRow];
if (row) {
sFocusDocument = row.id;
for (c=1; c < row.cells.length; c++) {
row.cells[c].style.borderTop = "1px solid black";
row.cells[c].style.borderBottom = "1px solid black";
}
}
iFocusRow = iTableRow;
} else {
bFocusDocument = true;
}
}
}
notice the round brackets have been replaced by square brackets.
In the Stylesheets section
3. Open the view.css file and make these changes
a. delete references to z-index
b. within the .dwtViewSMBg class, delete the reference to width
This should make it viewable in Firefox
regards
Dietrich
Posted by Ulrich Krause on 11/01/2006 08:25:53 AMProblems with firefox
First of all thank you for sharing the code. And thanks to Dietrich for making it viewable in firfox. But I have some more problems with firefox
1. Categories do not open when clicking the twistie ( Expand All and collapse all button do work )
2. Document does not open when double clicked.
Any idea ?
Posted by Dietrich Willing on 11/03/2006 12:54:44 AMre :Problems with Firefox
I found those problems but didn't post them! I'll try to get around to posting them in a readable format in the next few days.
cheers
Dietrich
Posted by Boyzl Sand on 11/04/2006 04:45:13 AMre: Problems with FF
As much as i know twisties and expandable/collapsable sections from Notes do NOT work at all in FF (not even rom siple documents with sections) so it's hard to expect they would work in views. Or does anyone know some workaround to make twisties/collapsable sections work?
Posted by Jason T Johnston on 11/10/2006 04:54:16 PMHide Grand Totals
Hello everyone. I have downloaded and in the process of implementing this code. So far I love it. I do have one thing that I would like to change on the display. I have a total column to show my users how many documents are in each category, but this database has security so they only see their documents. So, they see the grand total at the bottom, which is an incorrect number, since some of the documents are hidden from them. Since this code some how builds the views from XML. I see the below XML when I do "&ReadViewEntries", which shows me a total number of 140. It also has categorytotal="true", which is some key to this entry showing. So, is there any way to NOT write this line in all my views? Thanks.
Jason Johnston
- <viewentry position="66" noteid="C0000000" siblings="65" categorytotal="true">
- <entrydata columnnumber="0" name="$121">
<number>140</number>
</entrydata>
- <entrydata columnnumber="2" name="$115">
<text />
</entrydata>
- <entrydata columnnumber="3" name="ViewType">
<text />
</entrydata>
- <entrydata columnnumber="4" name="Area">
<text />
</entrydata>
- <entrydata columnnumber="5" name="$110">
<text />
</entrydata>
- <entrydata columnnumber="6" name="$111">
<text />
</entrydata>
- <entrydata columnnumber="7" name="TotalClientCost">
<text />
</entrydata>
</viewentry>
Posted by Smita Lohkare on 12/15/2008 01:41:12 AMEmbedded view in document
I tried out the above and it works fine where I have to just display views. But, if I have a document (existing document and not form) which displays embedded view, then on opening the document it then it gives alert "error loading xsl. dwt/webViews/formatView6.xsl" and a javascript error message " The stylesheet does not contain a document element. The stylesheet maybe empty, or it may not be a well-formed XML document". If the same form is previewed then it loads fine and displays the view.
Does it mean we cannot display embedded views in document ? Is there any way to do so?
Posted by nuno lucio on 04/20/2010 04:42:50 PMSearch not working
Hello.
I tried the above and is brilliant... but i must be missing something about the search because its not working