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     [SOLVED] Limiting a Dynamic Dropdown in a Fex with HTML

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Limiting a Dynamic Dropdown in a Fex with HTML
 Login/Join
 
Platinum Member
posted
Before I posted this, I searched on the forum for some answers, and I was reminded of my own post from Nov-Dec. 2016 called [SOLVED]Limiting a Dynamic Dropdown Box in a FEX and HTML.

Near the end of the discussion, Squatch and Dave mentioned some debugging options. I tried them this morning, and I've discovered my issue is with the sales year parameter. It does not seem to be sending anything to the parameter when I place the two fexes in a html frame using DevStudio 8.0.09. (We're in the process of upgrading, hence, my signature below).

My challenge is similar to the one in my previous post albeit a little different. My html form does not work as expected. The fex works itself, but when placed in the iframe in the html frame, it does not work. I get either blank space or the report heading following by blank space. If I try to use the reset button, the pie chart sometimes returns to the default' however, it appears extremely tiny on the screen. Sometimes it does not appear at all, and then the dropdown lists stop functioning.

I have four pie charts. All four charts have data for all years from 2000-2016 with the exception of one store. For three charts, it has data beginning in 2008. One chart has data beginning in 2007.

Just like in my previous post, I added my customized html form to the end.
Then, I created a separate fex to limit the drop down list of years to 2006 or later.

Here is my code for the fex which drives the years:
 SET EMGSRV=OFF
SET MESSAGE = OFF
SET ERROROUT = OFF
SET WARNING = OFF
SET TRMOUT = OFF
SET MSG = OFF
SET ASNAMES = ON
SET HOLDATTR = ON
SET EMPTYREPORT = ON

TABLE FILE MV_SALES
BY MV_SALES.MV_SALES.YEAR
WHERE MV_SALES.MV_SALES.YEAR GE '2006';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END
-RUN 


Here is my code for a pie chart with the html form at the end:
 SET EMGSRV=OFF
SET MESSAGE = OFF
SET ERROROUT = OFF
SET WARNING = OFF
SET TRMOUT = OFF
SET MSG = OFF
SET ASNAMES = ON
SET HOLDATTR = ON
SET EMPTYREPORT = ON

-SET &RPT_HEAD = ('Sales Year')||(' ' | &YEAR);
-SET &STORE_HEAD = &STORE_NAME;

-*IA_GRAPH_BEGIN
DEFINE FILE MV_SALES
SORT_TYPE/A35 = IF PRODUCT_TYPE EQ 'Arts and Crafts'  THEN '          Arts and Crafts' ELSE
	           IF PRODUCT_TYPE EQ 'Scrapbooking' THEN '         Scrapbooking' ELSE
			   IF PRODUCT_TYPE EQ 'Wedding' THEN '        Wedding' ELSE
			  PRODUCT_TYPE ;
END

GRAPH FILE MV_SALES

SUM PCT.MV_SALES.MV_SALES.TYPE_TOTAL/P8.1 AS " "
BY MV_SALES.MV_SALES.SORT_TYPE
WHERE MV_SALES.MV_SALES.STORE_NAME EQ '&STORE_NAME.(FIND MV_SALES.MV_SALES.STORE_NAME IN MV_SALES).Store:.';
WHERE MV_SALES.MV_SALES.YEAR EQ '&YEAR.(FIND MV_SALES.MV_SALES.YEAR IN MV_SALES).Sales Year:.';
WHERE ( MV_SALES.MV_SALES.REGION_CODE EQ 4 ) AND  MV_SALES.MV_SALES.DISTRICT EQ '&DISTRICT.(<Ohio>).District:.';
HEADING
"Julie's Arts and Crafts Stores"
"Sales by Type"
"&RPT_HEAD"
"&STORE_HEAD"
FOOTING
"Source: Individual stores' sales reports          "
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS PIXELS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(1);
*END
$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', ORIENTATION=LANDSCAPE, $
TYPE=HEADING, JUSTIFY=LEFT, FONT='Calibri', SIZE=10, COLOR=RGB(0 0 0), STYLE=BOLD, $
TYPE=FOOTING, JUSTIFY=RIGHT, FONT='Calibri', SIZE=8, COLOR=RGB(0 0 0), STYLE=NORMAL, $
*GRAPH_SCRIPT
setUseSeriesShapes(true);
setMarkerSizeDefault(50);
setPlace(false);
setPieRotate(0);
setToolTipDisplay(true);
setTextFormatPreset(getPieSliceFeelerPercent(),3);
setTextFormatPreset(getPieSliceFeelerValue(),-1);
setFontName(getPieLabel(),"Calibri");
setFontName(getPieBarLabel(),"Calibri");
setFontName(getPieRingLabel(),"Calibri");
setFontName(getPieSliceLabel(),"Calibri");
setFontName(getLegendText(),"Calibri");
setFontName(getO1Title(),"Calibri");
setFontName(getX1Title(),"Calibri");
setFontName(getY1Title(),"Calibri");
setFontName(getO2Title(),"Calibri");
setFontName(getY2Title(),"Calibri");
setFontName(getY3Title(),"Calibri");
setFontName(getY4Title(),"Calibri");
setFontName(getY5Title(),"Calibri");
setFontName(getTitle(),"Calibri");
setFontName(getSubtitle(),"Calibri");
setFontName(getAllText(),"Calibri");
setFontSizeAbsolute(getPieSliceLabel(), true);
setPlaceResize(getPieSliceLabel(), 0);
setFontSizeAbsolute(getPieLabel(), true);
setFontSizeInPoints(getPieLabel(), 8);
setPlaceResize(getPieLabel(), 0);
setTextWrap(getPieLabel(),true);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setTextFormatPattern(getPieSliceLabel(),"");
setTextJustHoriz(getPieLabel(),0);
setTextString(getAnnotation(0),"Unknown 0%");
setDisplay(getAnnotation(0),true);
setTextWrap(getAnnotation(0),true);
setRect(getPieFrame(),new Rectangle(-15000,-10000,30000,22000));
setLegendPosition(1);
setFillColor(getLegendText(),new Color(0,0,0));
setFontSizeAbsolute(getPieSliceLabelInside(),true);
setAutofit(getPieSliceLabelInside(),false);
setFontSizeInPoints(getPieSliceLabelInside(),10);
setFontSizeInPoints(getPieSliceLabel(),10);
setBorderColor(getChartBackground(),new Color(32,0,32));
setFillColor(getChartBackground(),new Color(255,255,255));
setDisplay(getLegendArea(),true);
setTransparentBorderColor(getChartBackground(),true);
setTextJustHoriz(getPieSliceLabelInside(),1);
setTextJustHoriz(getPieSliceLabel(0),1);
setSelectionEnableMove(false);
setPieFeelerTextDisplay(4);
setTextFormatPreset(getPieSliceLabel(),29);
setPieLabelDisplay(0);
setLegendReverse(true);
setReverseSeries(true);
setUserToolTip ('[SL]: [YV]' );
*END
ENDSTYLE
END
-*IA_GRAPH_FINISH
-RUN
-IF &RECORDS GT 0 GOTO NEXT;
-HTMLFORM BEGIN
<p style="color: #000000; font-size:13px; font-family: Calibri;">
	[b]
		Julie's Arts and Crafts Store

		<br>Sales by Type
		<br>
		&RPT_HEAD
		<br>
		&STORE_HEAD
		<br>
	[/b]
		<br>Sales data is available after 2012 as the store opened in late 2012.
</p>

-HTMLFORM END
-#NEXT 

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


WebFocus 8.2.04
WebFocus 8.2.04

 
Posts: 191 | Registered: September 18, 2015Report This Post
Virtuoso
posted Hide Post
Hi Julie

I think your code for populating the parameter should have ON TABLE PCHOLD FORMAT XML instead of HTML.

As for your parameter references in the actual html form I think those should be !IBI.AMP.RPT_HEAD; and !IBI.AMP.STORE_HEAD; instead of &RPT_HEAD and &STORE_HEAD


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
Thank you for the suggestions. I will try those in the next few days and see what happens.


WebFocus 8.2.04
WebFocus 8.2.04

 
Posts: 191 | Registered: September 18, 2015Report This Post
Platinum Member
posted Hide Post
Let me preface this by saying although my signature says 8.1.05, I'm currently working with that version in two environments and 8.0.09 for another environment.

My customized error messages stopped functioning in 8.0.09, and I needed to discover the fix in 8.1.05M, too.

I finally found the fix. SET EMPTYREPORT needs to be set to OFF for both versions, and my customized error messages work just fine in 8.1.05 and 8.0.09. Earlier the messages worked without changing this setting, so I'm not sure what changed although we surmise it might be due to a non-BI issue or change.

At any rate, thanks again to everyone for the suggestions. I so appreciate the help.


WebFocus 8.2.04
WebFocus 8.2.04

 
Posts: 191 | Registered: September 18, 2015Report 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     [SOLVED] Limiting a Dynamic Dropdown in a Fex with HTML

Copyright © 1996-2020 Information Builders