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] Passing parameter value of parent report to a drill report as parameter

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Passing parameter value of parent report to a drill report as parameter
 Login/Join
 
Member
posted
Hi,
I have a bar graph which runs on two parameters and a drill report for the bars of the graph.
I am not using the parameter values inthe graph but i need that on the drill report.
Since the graph does not use those parameters on while plotting i dont't have the parameter value available to me while drilling down to the next report.
Can anyone suggest me a work around which will allow me to use one set of parameter values of the graph to the next report aswell asa parameter.



GRAPH FILE MASTERFILE
SUM COMPUTE C_Actual/D12.2=WA_MASTERFILE.FACT_CONS_MONTH.ACT_CONS / 1000000; AS 'Cons'
ACROSS WA_MASTERFILE.DIM_YEAR.YEAR AS 'Year'
BY MASTERFILE.DIM_TRAN_TYPE.TRAN_TYPE_DESC
HEADING
"Year over Year Cons"
" "
" "
WHERE ( MASTERFILE.DIM_YEAR.YEAR GE &FromYear.().Year. ) AND ( WA_MASTERFILE.DIM_YEAR.YEAR LE &ToYear.().Year. );
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET VAXIS 280
ON GRAPH SET HAXIS 410
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *

ENDSTYLE
ON GRAPH SET STYLE *
$
TYPE=DATA,
ACROSSCOLUMN=N1,
TARGET='_BLANK',
FOCEXEC=yearoveryearconscompar( \
YEAR=A1 \
),
$
TYPE=HEADING,
LINE=1,
JUSTIFY=CENTER,
$
TYPE=HEADING,
LINE=1,
OBJECT=TEXT,
ITEM=1,
FONT='VERDANA',
SIZE=9,
COLOR='BLACK',
STYLE=BOLD,
$
ENDSTYLE
END

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


WebFocus 7.7.02
Windows, All Outputs
 
Posts: 14 | Registered: August 29, 2011Report This Post
Virtuoso
posted Hide Post
I'm fairly certain that you can SUM them with NOPRINT and they will not show up in the GRAPH.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Member
posted Hide Post
I did as below but still no luck.. this errored out.


GRAPH FILE MASTERFILE
SUM COMPUTE C_Actual/D12.2=WA_MASTERFILE.FACT_CONS_MONTH.ACT_CONS / 1000000; AS 'Cons'
SUM '&FromYear' NOPRINT
SUM '&ToYear' NOPRINT
ACROSS WA_MASTERFILE.DIM_YEAR.YEAR AS 'Year'
BY MASTERFILE.DIM_TRAN_TYPE.TRAN_TYPE_DESC
HEADING
"Year over Year Cons"
" "
" "
WHERE ( MASTERFILE.DIM_YEAR.YEAR GE &FromYear.().Year. ) AND ( WA_MASTERFILE.DIM_YEAR.YEAR LE &ToYear.().Year. );
ON GRAPH SET LOOKGRAPH VBRSTK1



Error:-
0 ERROR AT OR NEAR LINE 4 IN PROCEDURE yearoveryearconsum
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: 2009
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT


WebFocus 7.7.02
Windows, All Outputs
 
Posts: 14 | Registered: August 29, 2011Report This Post
Master
posted Hide Post
Yes, this will error out...

Your parameters &FromYear and &ToYear probably only contain a year.

hence you code gives an error:

GRAPH ...
SUM '&FromYear' NOPRINT
SUM '&ToYear' NOPRINT
...


Will translate to
GRAPH ...
SUM '2009' NOPRINT
SUM '2010' NOPRINT
...


You need:
SUM COMPUTE THISYEAR/I4 = &ThisYear

or something like that.


By the way

GRAPH...
SUM ...
SUM ...
SUM ...
ACROSS ...
BY ...


Are you sure?
Shouldn't that be:
GRAPH...
SUM ...
    ...
    ...
ACROSS ...
BY ...

( only 1 SUM verb )

G'luck
Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Member
posted Hide Post
This errored as well...

GRAPH FILE MASTERFILE
SUM COMPUTE C_Actual/D12.2=WA_MASTERFILE.FACT_CONS_MONTH.ACT_CONS / 1000000; AS 'Cons'
COMPUTE FROMYEAR/I4='&FromYear' NOPRINT
COMPUTE TOYEAR/I4='&ToYear' NOPRINT
ACROSS WA_MASTERFILE.DIM_YEAR.YEAR AS 'Year'
BY MASTERFILE.DIM_TRAN_TYPE.TRAN_TYPE_DESC
HEADING
"Year over Year Cons"
" "
" "
WHERE ( MASTERFILE.DIM_YEAR.YEAR GE &FromYear.().Year. ) AND ( WA_MASTERFILE.DIM_YEAR.YEAR LE &ToYear.().Year. );
ON GRAPH SET LOOKGRAPH VBRSTK1



Error:-
0 ERROR AT OR NEAR LINE 9 IN PROCEDURE yearoveryearconsum
(FOC224) SYNTAX ERROR: NOPRINT
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT


WebFocus 7.7.02
Windows, All Outputs
 
Posts: 14 | Registered: August 29, 2011Report This Post
Master
posted Hide Post
First fix your compute's.

The format is I4 and you try to put in something between '' ( which a format An )



( and this forum isn't a helpdesk, we're just fellow-users... )


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Virtuoso
posted Hide Post
quote:
First fix your compute's.

by ending them correctly ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Master
posted Hide Post
Yes, that too...


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report 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] Passing parameter value of parent report to a drill report as parameter

Copyright © 1996-2020 Information Builders