Gossamer Forum
Home : Products : DBMan : Customization :

Long Form Display - Description

Quote Reply
Long Form Display - Description
I am using the long / short display mod - Is it possible to display the first few words of a field? For example, my short display shows - NAME, COMPANY, DESCRIPTION - the DESCRIPTION is quite long - my client wants to see just the first few words or characters to jog his memory before clicking to entire record.

Thanks,

Jim
Quote Reply
Re: [jimogrady] Long Form Display - Description In reply to
After

Code:
my (%rec) = @_;




add

Code:
$shortdesc = substr($rec{'DESCRIPTION'},0,10);




Change the 10 to the number of characters you want to display. Then, where you want the description to print out, use $shortdesc instead of $rec{'DESCRIPTION'}.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.

Last edited by:

JPDeni: Jan 20, 2006, 6:23 PM
Quote Reply
Re: [JPDeni] Long Form Display - Description In reply to
Thanks! I appreciate your time,

Jim