Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] AHTML Report conditional styling

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] AHTML Report conditional styling
 Login/Join
 
Silver Member
posted
Hi All,

Iam trying to do a conditional stylling for AHTML report.It is applying perfectly for HTML and Excel formats.AHTML it is not applying.Any help/Suggestions greatley appretiated.Please find the below code.The filter date conditions are dynamic.

TABLE FILE DAILYOS
SUM
RCTDSB_SMRY_A/P13.2CB AS 'Cash, OS'
STORE_STAT_C
BY GROUP AS 'Group'
BY DISTRICT AS 'District'
BY STORE_I AS 'Store, Number'
BY STORE_N AS 'Store Name'
BY ST_C AS 'State'
BY THRESH AS 'Store,Threshold'
BY REG_THRESH AS 'Register, Threshold'
BY AUDITOR
BY FYR AS 'Fiscal,Year'
BY FMO AS 'Fiscal,Month'
BY MTD_OS AS 'Month To, Date O/S'
ACROSS HIGHEST SLS_D AS 'Sales Date'
WHERE (SLS_D GT '&OLD_DT' AND SLS_D LT '&TODAY');
HEADING
"Total Cash O/S Report"
"Sales Date Range From &OLD_DT to &TODAY"
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET PAGE-NUM OFF
ON TABLE SET BYDISPLAY ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
TITLETEXT='Total Cash OS',
$
DEFMACRO=UNAUD,
MACTYPE=RULE,
WHEN=N13 EQ '01',
$
DEFMACRO=INPROC,
MACTYPE=RULE,
WHEN=N13 EQ '02',
$
DEFMACRO=AUD,
MACTYPE=RULE,
WHEN=N13 EQ '03',
$
DEFMACRO=SYS,
MACTYPE=RULE,
WHEN=N13 EQ '04',
$
DEFMACRO=NEGOS,
MACTYPE=RULE,
WHEN=N12 LT 0,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
HEADALIGN=BODY,
$
TYPE=TITLE,
FONT='ARIAL',
SIZE=8,
BORDER=LIGHT,
BORDER-COLOR=BLACK,
BACKCOLOR=RGB(153 153 153),
STYLE=-UNDERLINE+BOLD,
COLOR=BLACK,
JUSTIFY=CENTER,
$
TYPE=DATA,
FONT='ARIAL',
SIZE=8,
BACKCOLOR=( 'WHITE' RGB(240 240 240) ),
COLOR=BLACK,
BORDER=LIGHT,
BORDER-COLOR=BLACK,

$
TYPE=DATA,
ACROSSCOLUMN=N1,
BACKCOLOR=RGB(255 153 204),
MACRO=UNAUD,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
BACKCOLOR=RGB(255 153 204),
MACRO=INPROC,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
BACKCOLOR=RGB(255 255 153),
MACRO=AUD,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
BACKCOLOR=RGB(204 255 204),
MACRO=SYS,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
COLOR='RED',
MACRO=NEGOS,
$

TYPE=ACROSSTITLE,
FONT='ARIAL',
SIZE=8,
BORDER=LIGHT,
BORDER-COLOR=BLACK,
BACKCOLOR=RGB(153 153 153),
STYLE=-UNDERLINE+BOLD,
COLOR=BLACK,
JUSTIFY=CENTER,
$
ENDSTYLE
END
-RUN
-EXIT

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 7.1.4 xp html,excel,pdf
 
Posts: 44 | Registered: February 27, 2008Report This Post
Expert
posted Hide Post
Consider using the actual field name instead of the "N##" notation.
quote:
WHEN=N13 EQ '01',
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Silver Member
posted Hide Post
Hi Dough Thank you for your inputs.I have tried giving actual filed Name it will work fine in HTML format but not in AHTML.The across dates are not static filters.


WebFocus 7.1.4 xp html,excel,pdf
 
Posts: 44 | Registered: February 27, 2008Report This Post
Silver Member
posted Hide Post
TABLE FILE CAR
SUM SALES
ACROSS HIGHEST COUNTRY
BY MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
BORDER=LIGHT,
FONT='ARIAL',
SIZE=8,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
STYLE=NORMAL,
COLOR=RED,
WHEN=N2 GT 0,
$
END

how can we achieve the same styling in an AHTML report? I used the above code by just replacing HTML with AHTML and it completely removed the styling.


WebFocus 7.1.4 xp html,excel,pdf
 
Posts: 44 | Registered: February 27, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] AHTML Report conditional styling

Copyright © 1996-2020 Information Builders