473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

hide empty fields

1 New Member
Hi,
I have a a custom report trying to hide empty fields and shift the next field up.
It still shows and empty space.

Example:

company1
company2
company3

If when empty don't show and move company2 up or the cell of teh company2 up and not show the cell of company1 if empty.

Thank you for your help in advance.
Feb 23 '07 #1
1 1593
jhardman
3,406 Recognized Expert Specialist
Hi,
I have a a custom report trying to hide empty fields and shift the next field up.
It still shows and empty space.

Example:

company1
company2
company3

If when empty don't show and move company2 up or the cell of teh company2 up and not show the cell of company1 if empty.

Thank you for your help in advance.
Your english is not very clear, but I think I see what you are asking. You are pulling up info from a database or some such source. Some of the table cells at any given time may be populated, and some not. Rather than the following:
<html>
<table>
<tr><td>company 1</td><td>Ho-Chuck</td></tr>
<tr><td>company 2</td><td></td></tr>
<tr><td>company 3</td><td>Ben and Jerry's</td></tr>
</table>
</html>
you would like this:
<html>
<table>
<tr><td>company 1</td><td>Ho-Chuck</td></tr>
<tr><td>company 3</td><td>Ben and Jerry's</td></tr>
</table>
</html>
Do I understand you right?
If so, you should test for the presense of data before drawing the table row:
Expand|Select|Wrap|Line Numbers
  1. if compName <> "" then 
  2.    'draw the row with the company
  3. end if
  4.  
If this is a problem with the custom report you are using, I would consider abandoning the custom report or seeking help from the maker of the custom report.

Jared
Feb 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: | last post by:
I'm using the DataList and GridView controls, and I am trying to wrap my head around the problem of conditionally showing or hiding cells/cell content based on the presence or absence of DB data. I...
1
by: Heinz K | last post by:
Hi all, using asp.net 2.0 I have some fields which should only be displayed under some circumstances, otherwise I hide them. This works fine. But the data is displayed in a table with 5 rows,...
3
by: toodi4 | last post by:
I'm using a javascript that hides and unhides text based on a button click. It works great across static fields on a form. The problem I have is that I'm trying to hide and unhide various fields...
7
chunk1978
by: chunk1978 | last post by:
hello, i would like to know if it's possible to hide PHP values that come back empty (text fields) or have a specific value (select menus)... on my form, there are input fields that are...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.