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     Passing the BY column value to second graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Passing the BY column value to second graph
 Login/Join
 
Member
posted
Hi,
I am unable to pass BY column value(key in this code) to the second graph using drilled down. I have searched for the same problem in the forum, also used the ideas from the forum but couldn't suceed.please can any one suggest me the same.

TABLE FILE HGRP3
SUM
YEAR
MONTH
VOLUME
KC_LEV_ID AS KEY
FST.DEF
PROCESS_SUPPORT_TEAM
BY KC_LEV_ID
ON TABLE HOLD AS GRP1
END
GRAPH FILE GRP1
SUM VOLUME
ACROSS DEF
BY KEY NOPRINT
HEADING
"Key Code"
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET GRMERGE ON
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setGridStep(getY1MajorGrid(),1.0);
setGridStep(getY1MinorGrid(),0.5);
setY1TitleString("Volume");
setDisplay(getY1Title(),true);
setBorderColor(getX1MinorGrid(),new Color(133,133,133));
setBorderColor(getY1MinorGrid(),new Color(133,133,133));
setFillType(getColorByHeight(),2);
setGradientDirection(getColorByHeight(),1);
setGradientNumPins(getColorByHeight(),2);
setGradientPinPosition(getColorByHeight(),0.0,0);
setGradientPinLeftColor(getColorByHeight(),new Color(255,255,255),0);
setGradientPinRightColor(getColorByHeight(),new Color(0,0,255),0);
setGradientPinPosition(getColorByHeight(),1.0,1);
setGradientPinLeftColor(getColorByHeight(),new Color(255,0,0),1);
setGradientPinRightColor(getColorByHeight(),new Color(255,255,255),1);
setAxisAssignment(getSeries(5),0);
setAxisAssignment(getSeries(6),0);
setAxisAssignment(getSeries(7),0);
setAxisAssignment(getSeries(8),0);
setAxisAssignment(getSeries(9),0);
setAxisAssignment(getSeries(10),0);
setAxisAssignment(getSeries(11),0);
setAxisAssignment(getSeries(12),0);
setAxisAssignment(getSeries(13),0);
setAxisAssignment(getSeries(14),0);
setAxisAssignment(5,0);
setAxisAssignment(1,1);
setAxisAssignment(2,0);
setAxisAssignment(3,0);
setAxisAssignment(4,0);
setY2LabelDisplay(true);
setY2AxisSide(0);
setY2MajorGridDisplay(true);
setY2MinorGridDisplay(false);
setTextFormatPreset(getY2Label(),-1);
setTextFormatPattern(getY2Label(),"#.##");
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1TitleString("Definition");
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,1);
setAxisAssignment(1,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1LogScale(true);
setY1ZeroLineDisplay(true);
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setTextJustHoriz(getO1Title(),1);
setFontSizeAbsolute(getO1Title(),true);
setFontSize(getO1Title(),12);
setTextRotation(getO1Title(),0);
setTextWrap(getO1Title(),false);
setTextJustHoriz(getO1Label(),1);
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),12);
setTextRotation(getO1Label(),2);
setTextWrap(getO1Label(),false);
setPlaceResize(getO1Title(),0);
setPlaceRotate(getO1Title(),0);
setPlaceAlign(getO1Title(),0);
setPlaceWordWrap(getO1Title(),0);
setPlaceResize(getO1Label(),0);
setPlaceRotate(getO1Label(),0);
setPlaceAlign(getO1Label(),0);
setPlaceWordWrap(getO1Label(),0);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRAPHCOLOR='WHITE',
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
FOCEXEC=src_rep3-graph2.fex(KEY1=DEF\
GRP='&GRP' Y='&Y' M='&M'),
TARGET='_BLANK',
$
TYPE=HEADING,
LINE=1,
ITEM=1,
STYLE=BOLD,
JUSTIFY=CENTER,
COLOR='BLACK',
$
ENDSTYLE
END
-EXIT

thank you
Basavareddy
Webfocus 7.1.4
 
Posts: 9 | Registered: June 16, 2008Report This Post
Virtuoso
posted Hide Post
Basavareddy,

I would add SET ASNAMES=ON.

I tried your program converting it to the CAR file. In your drill-down procedure I just coded -? & to see if the parameters were passed and they were.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Member
posted Hide Post
Hi Danny,

Can u please post your code. so that i can verify.
 
Posts: 9 | Registered: June 16, 2008Report This Post
Virtuoso
posted Hide Post
Here you are:

  
-* File basavareddy1.fex
-SET &GRP=GRP;
-SET &Y='Y';
-SET &M='M';

SET ASNAMES=ON
TABLE FILE CAR
SUM
SALES
RETAIL
DEALER
CAR AS KEY
FST.COUNTRY
BY CAR
ON TABLE HOLD AS GRP1
END
GRAPH FILE GRP1
SUM SALES
ACROSS COUNTRY
BY KEY NOPRINT
HEADING
"Key Code"
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET GRMERGE ON
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setGridStep(getY1MajorGrid(),1.0);
setGridStep(getY1MinorGrid(),0.5);
setY1TitleString("Volume");
setDisplay(getY1Title(),true);
setBorderColor(getX1MinorGrid(),new Color(133,133,133));
setBorderColor(getY1MinorGrid(),new Color(133,133,133));
setFillType(getColorByHeight(),2);
setGradientDirection(getColorByHeight(),1);
setGradientNumPins(getColorByHeight(),2);
setGradientPinPosition(getColorByHeight(),0.0,0);
setGradientPinLeftColor(getColorByHeight(),new Color(255,255,255),0);
setGradientPinRightColor(getColorByHeight(),new Color(0,0,255),0);
setGradientPinPosition(getColorByHeight(),1.0,1);
setGradientPinLeftColor(getColorByHeight(),new Color(255,0,0),1);
setGradientPinRightColor(getColorByHeight(),new Color(255,255,255),1);
setAxisAssignment(getSeries(5),0);
setAxisAssignment(getSeries(6),0);
setAxisAssignment(getSeries(7),0);
setAxisAssignment(getSeries(8),0);
setAxisAssignment(getSeries(9),0);
setAxisAssignment(getSeries(10),0);
setAxisAssignment(getSeries(11),0);
setAxisAssignment(getSeries(12),0);
setAxisAssignment(getSeries(13),0);
setAxisAssignment(getSeries(14),0);
setAxisAssignment(5,0);
setAxisAssignment(1,1);
setAxisAssignment(2,0);
setAxisAssignment(3,0);
setAxisAssignment(4,0);
setY2LabelDisplay(true);
setY2AxisSide(0);
setY2MajorGridDisplay(true);
setY2MinorGridDisplay(false);
setTextFormatPreset(getY2Label(),-1);
setTextFormatPattern(getY2Label(),"#.##");
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1TitleString("Definition");
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,1);
setAxisAssignment(1,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1LogScale(true);
setY1ZeroLineDisplay(true);
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setTextJustHoriz(getO1Title(),1);
setFontSizeAbsolute(getO1Title(),true);
setFontSize(getO1Title(),12);
setTextRotation(getO1Title(),0);
setTextWrap(getO1Title(),false);
setTextJustHoriz(getO1Label(),1);
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),12);
setTextRotation(getO1Label(),2);
setTextWrap(getO1Label(),false);
setPlaceResize(getO1Title(),0);
setPlaceRotate(getO1Title(),0);
setPlaceAlign(getO1Title(),0);
setPlaceWordWrap(getO1Title(),0);
setPlaceResize(getO1Label(),0);
setPlaceRotate(getO1Label(),0);
setPlaceAlign(getO1Label(),0);
setPlaceWordWrap(getO1Label(),0);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRAPHCOLOR='WHITE',
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
FOCEXEC=src_rep3-graph2.fex(KEY1=COUNTRY \
GRP='&GRP' Y='&Y' M='&M'),
TARGET='_BLANK',
$
TYPE=HEADING,
LINE=1,
ITEM=1,
STYLE=BOLD,
JUSTIFY=CENTER,
COLOR='BLACK',
$
ENDSTYLE
END


  
-* File src_rep3-graph2.fex
-? &


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     Passing the BY column value to second graph

Copyright © 1996-2020 Information Builders