IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    remove underline when sort field changes
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Master
Posted
hi,
I'm using UNDER-LINE when sort field changes. If I have only one value then I dont need underline. But it displays UNDER-LINE always.

example
TABLE FILE CAR
PRINT FIELD1
BY FIELD2 NOPRINT
ON FIELD2 UNDER-LINE
END

I need underline only when I have more than one record on FIELD2.

-Kamesh
 
Posts: 552 | Location: cincinnati | Registered: January 09, 2005Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
I'm at home so I can't try it, but you might add the word MULTILINES after your underline. I think Multilines only works with subtotals, etc, so it probably won't work, but off the top of my head it was all I could think of.
 
Posts: 67 | Registered: April 15, 2004Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Hi Stan, MULTILINES didn't work. -Kamesh
 
Posts: 552 | Location: cincinnati | Registered: January 09, 2005Reply With QuoteEdit or Delete MessageReport This Post
Guru
Posted Hide Post
Try using the WHEN as part of the ON statement. Hope this code works for you.



TABLE FILE CAR
SUM
RETAIL_COST
DEALER_COST

COMPUTE LINE/I2 = IF COUNTRY EQ LAST COUNTRY THEN LAST LINE + 1 ELSE 0;
BY
COUNTRY
BY
CAR

ON COUNTRY UNDER-LINE
WHEN LINE GE 1;
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.000000,
$
ENDSTYLE
END

This message has been edited. Last edited by: <Mabel>,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Reply With QuoteEdit or Delete MessageReport This Post
Guru
Posted Hide Post
Here is another option you could do:


TABLE FILE CAR
SUM
RETAIL_COST
DEALER_COST

COMPUTE LINE/I2 = IF COUNTRY EQ LAST COUNTRY THEN LAST LINE + 1 ELSE 0;
BY
COUNTRY
BY
CAR

ON COUNTRY SUBFOOT
" "
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.000000,
$
TYPE=SUBFOOT,
SIZE=1,
$
TYPE=SUBFOOT,
BORDER-TOP=LIGHT,
WHEN=N5 GE 1,
$
ENDSTYLE
END

This message has been edited. Last edited by: <Mabel>,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Reply With QuoteEdit or Delete MessageReport This Post
<Pietro De Santis>
Posted
DEFINE FILE CAR
CNT_MODEL/I4 = 1;
END
TABLE FILE CAR
SUM
MODEL
CNT_MODEL
BY COUNTRY NOPRINT
ON COUNTRY UNDER-LINE WHEN CNT_MODEL GT 1
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='VERDANA', SIZE=8, $
ENDSTYLE
END
 
Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
I tried the options you suggested but it didn't work properly. I can't do SUM, so, I'm using PRINT on my code.
 
Posts: 552 | Location: cincinnati | Registered: January 09, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I think so. Please try.

DEFINE FILE CAR
WCNT/I5 = 1;
END
TABLE FILE CAR
SUM WCNT NOPRINT
BY COUNTRY
PRINT CAR DCOST RCOST
BY COUNTRY
ON COUNTRY UNDER-LINE
WHEN WCNT GT 1;
ON TABLE SET STYLE *
GRID = OFF ,$
ENDSTYLE
END
 
Posts: 7 | Location: Japan | Registered: February 15, 2005Reply With QuoteEdit or Delete MessageReport This Post
Guru
Posted Hide Post
Kamesh, both of the options I gave you should work with a PRINT instead of the SUM since they are doing a COMPUTE. Give it a try and let me know if it works.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    remove underline when sort field changes

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.