Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the effect of interlacing and discoloration by JS in V5 report filling

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report