Tuesday, July 20, 2010

Modifying Web Interface Builder - Part 4 - Hiding Cell Contents

BW-BPS Layouts presented through the Web Interface Builder may attempt to present cells that are expected to contain a zero value or are not relevant. This scrip allows you to “blank-out” or hide any specific cells of a layout’s output.
Example code:
<script language=JavaScript type=text/javascript>
….
document.getElementById("LAYOUT_LAY002-12-2-cell").innerHTML = "";
document.getElementById("LAYOUT_LAY002-13-2-cell").innerHTML = "";
document.getElementById("LAYOUT_LAY002-14-2-cell").innerHTML = "";
….
</script>
This sample script "blanks-out" or hides cells in rows 12, 13, and 14, all associated with column 2 of layout "LAYOUT_LAY002".

No comments:

Post a Comment