Subject: RE: Does Passthru HTML work in a Standard Section?
Martin, I’m having problems with this solution. Following is what I have. Notice I added two DIV statements, one of which contains the image and text Revision history. The second, which should start off hidden, contains the Computed Value table.
The Images exists in the database, but still do not display on the page. When I click where the images should be, nothing happens. I think I did everything correctly, but am having no luck and do not know where to turn to next.
Thanks,
-Jeff
Passthru HTML:
![]()
Revision History
Computed Value:
count := @Elements(editDate);
@If(count <= 0 | @Trim(editDate) = “”; @Return(“”); “”);
@For(i := 1; i <= count; i := i + 1;
HTML := HTML + "<TR ><TD VALIGN=TOP >" + editDate[i] + "</TD>";
HTML := HTML + "<TD VALIGN=TOP >" + editName[i] + "</TD>";
HTML := HTML + "<TD VALIGN=TOP>" + action[i] + "</TD>";
HTML := HTML + "<TD VALIGN=TOP>" + oldVal[i] + "</TD>";
HTML := HTML + "<TD VALIGN=TOP>" + newVal[i] + "</TD>";
HTML := HTML + "</TR>" + @NewLine);
“<table style="bgcolor:white; border-style:solid; border-width: .06em; border-color:rgb(0,0,0); font-family: arial; font-size: 10px;" width=100%><tr style="background-color: rgb(0,0,0); color:white; font-weight: bold;">DateEditorActionOld ValueNew Value” + @NewLine + HTML + “”
JSHeader (Client, Common Javascript):
function expandCollapseSection(obj,div) {
if(obj.src.indexOf('collapse.gif')!=-1) {
obj.src='/icons/expand.gif';
document.getElementById(div).style.display='none';
} else {
obj.src='/icons/collapse.gif';
document.getElementById(div).style.display='';
}
}
Note: The only reason I’m using Passthru HTML in a Computed Text field is a workaround. I have to do it this way because creating dynamic tables on the fly in a Notes RichText field does not work correctly.