How to realize the effect of interlacing and discoloration by JS in V5 report filling
V5 fill report how to achieve the effect of interlaced color through JS, for this problem, this article describes the corresponding analysis and solution in detail, hoping to help more friends who want to solve this problem find a simpler and easier way.
In V5 version, the foreground background color of the cell in the report filling does not provide the expression attribute setting of browsing report, so the effect of interlaced color cannot be realized through conditional expression. If the effect of interlaced color needs to be realized in the report filling, JS can be used.
The following is the original effect of filling in the report example 2.1sht under the designer:
Take this report as an example, so that single and double rows display different background colors.
Add the following JS to the page displayed in the report, such as showInput.jsp:
vartable=document.getElementById(sgid+"0");
for(vari=2;i