Focal Point
how to id in style sheet ACROSS column RPCT.fieldname

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4941025771

July 24, 2006, 04:03 PM
susannah
how to id in style sheet ACROSS column RPCT.fieldname
TABLE FILE CAR
SUM SALES RPCT.SALES
BY CAR ACROSS COUNTRY
Does anyone know how to identify the RPCT field in a style sheet?
without C notation and multiple statements?
molto grazie.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 25, 2006, 03:57 AM
Tony A
Hi Susannah,

Go and have a lay down, you must be working too hard! I thought you would have known this one -

TABLE FILE CAR
SUM SALES RPCT.SALES
BY CAR
ACROSS COUNTRY
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
  TYPE=DATA, ACROSSCOLUMN=RPCT.SALES, COLOR=RED, $
ENDSTYLE
END


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 25, 2006, 04:05 PM
susannah
ROFL
bless your ever lovin' heart.

T, help me with another one,wouldyou?
TYPE=ACROSSVALUE,ACROSS=fieldname,WHEN=fieldname EQ whatever
..
The WHEN= just doesn't work.
I tried setting it up as a DEFMACRO
no cigar.

This message has been edited. Last edited by: susannah,




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 26, 2006, 02:48 AM
Pete
Hi susannah,

Shouldn't it be

TYPE=DATA,ACROSSCOLUMN=CAR,BACKCOLOR='RED', WHEN=CAR EQ 'ALFA ROMEO',$

*just a humble attempt*

P.


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

July 26, 2006, 03:31 AM
Tony A
Susannah,

In a wierd way I think Pete has highlighted when the WHEN might function, albeit, incorrectly (the WHEN not Pete Wink).

If you take my above example and add your requirement, say for CAR EQ 'PEUGEOT' you will see that the styling is not applied to COUNTRY. However, if you change the WHEN to compare for 'ALFA ROMEO', the styling is applied. I think this is because the style is applied to a heading value and because these are at the top, they have the style that is relevant to the first data row?

TABLE FILE CAR
SUM SALES RPCT.SALES
BY CAR
ACROSS COUNTRY
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
  TYPE=DATA, ACROSSCOLUMN=RPCT.SALES, COLOR=RED, $
  TYPE=ACROSSVALUE, ACROSS=COUNTRY, COLOR=BLUE, WHEN=CAR EQ 'PEUGEOT', $
ENDSTYLE
END

The styling is not applied

TABLE FILE CAR
SUM SALES RPCT.SALES
BY CAR
ACROSS COUNTRY
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
  TYPE=DATA, ACROSSCOLUMN=RPCT.SALES, COLOR=RED, $
  TYPE=ACROSSVALUE, ACROSS=COUNTRY, COLOR=BLUE, WHEN=CAR EQ 'ALFA ROMEO', $
ENDSTYLE
END

The styling is applied.

I can see a sort of logic to this but I'm stuck at seeing a real use for it? Unless you page break on the field in the WHEN clause (e.g. BY CAR PAGE-BREAK).

Of course, take away the WHEN and it works fine.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 26, 2006, 03:52 AM
Pete
Way over my belgian head on a wednesday morning , T. Confused


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

July 26, 2006, 07:18 AM
Tony A
Pete, Must be all that lovely Belgian chocolate for breakfast! Wink



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 26, 2006, 09:54 AM
susannah
i'm trying to put a drilldown on an across value when that value equals something.
i'm getting no cigar.
i think its a bug, but i'm only in 52 and my 71 dev server just bit the dust.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 26, 2006, 10:04 AM
Tony A
The across value seems to relate the column title and not the value. Is that what you want or do you want the tabular data?



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 26, 2006, 10:12 AM
susannah
Value, T.
If country is 'france' i want the cell to be hot, if country is anything else, then cold.
type=acrossvalue, across=country,when=country eq 'france', focexec= yada.
Conditional dd's like this work fine on regular table data cells, so i'm thinking they should work on acrossvals, as well.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 26, 2006, 10:29 AM
Tony A
Ahhh, the light comes on. Roll Eyes

Doesn't appear to work in 7.1.3 either.



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 26, 2006, 10:35 AM
susannah
bless you for checking.
i'll NFR it.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 26, 2006, 10:54 AM
Tony A
Just found in the manual (Creating reports vsn 7) page 24-7 that you can not specify a horizontal sort field (ACROSS) within the WHEN. Frowner

There had to be a reason



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10