CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Limit label displayed size...

Print topic Send  topic

Author Message
Ricardo Silva
Posted: 01/22/2004, 8:30 AM

Is it possible to limit the size of the label that is going to be displayed?

I want to display the memo field "DESCRIPTION" but I want to limit the grid
row to 2 lines. If the user wants to see the rest, he must click on the link
in order to be directed to a new page with the complete data...

Is it possible?

Thanks in advance.

Bets regards,
Ricardo

Edd


Posts: 547
Posted: 01/22/2004, 1:52 PM

1 Change the label to be HTML

On the BeforeShowEvent create a variable to accept the value of the field

Dim aField

aField = Gridname.FieldName.value
aField = Left(aFiled, 100) & "<a href=""wherever.asp?Parm=" & SomeReference & """>..more </a>
Gridname.FieldName.value = aField

You can get more sphisticated and scan for Line Returns and substitute "<BR>" - but it up to you.


_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.