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.
When I try to open the Chart component in GUI; I receive a text box saying:
Unrecoverable Error
An unrecoverable error has occurred.
We are sorry for the inconvenience.
[Exit] [More information...]
It is worth noting that I have other charts that execute just fine with this same condition.
The code for this fex:
-DEFAULT &Property_AD_DM_Prop_BU_Unit_Property = '10 Hanover Square - 12200'
-SET &CURYM =(&YYMD / 100);
-SET &CURYM5M = AYM ( &CURYM, -5, 'I6YYM');
-SET &CURYP6M = AYM ( &CURYM, 6, 'I6YYM');
-TYPE Property_AD_DM_Prop_BU_Unit_Property: &Property_AD_DM_Prop_BU_Unit_Property
-TYPE From Date: &CURYM5M
-TYPE To Date: &CURYP6M
-TYPE Selected Date: &CURYM
SET CENT-ZERO = ON
SET ACROSSPRT = COMPRESS
TABLE FILE DM
SUM
COMPUTE OCCUPIED_PCT_MTD/D12.2% = IF Date_Date_Calculation EQ 'MTD' THEN Occupied__ ELSE 0;
COMPUTE OCCUPIED_TARGET_PCT_MTD/D12.2% = IF Date_Date_Calculation EQ 'MTD' THEN Occupied_Target__ ELSE 0;
COMPUTE OCCUPIED_PCT_MTD_LY/D12.2% = IF Date_Date_Calculation EQ 'MTD LY' THEN Occupied__ ELSE 0;
BY LOWEST Date_Calendar_Month
BY LOWEST Date_Calendar_Month_YYYYMM
BY Property_AD_DM_Prop_BU_Unit_Property
BY LOWEST Date_Date_Calculation
HEADING
"Occupancy"
"OCCHOLD"
WHERE Date_Calendar_Month_YYYYMM FROM &CURYM5M TO &CURYP6M;
WHERE Property_AD_DM_Prop_BU_Unit_Property EQ '&Property_AD_DM_Prop_BU_Unit_Property.Property_AD_DM_Prop_BU_Unit_Property:.';
WHERE Date_Date_Calculation EQ 'MTD' OR 'MTD LY';
ON TABLE SET HTMLENCODE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET GRWIDTH 1
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS OCCHOLD FORMAT ALPHA
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/WFC/Repository/Branding/UDRgreen.sty,
$
SUMMARY='Summary',
TITLETEXT='WebFOCUS Report',
$
TYPE=REPORT,
LINES-PER-PAGE=UNLIMITED,
ARGRAPHENGINE=JSCHART,
$
ENDSTYLE
END
TABLE FILE OCCHOLD
SUM
OCCUPIED_PCT_MTD
OCCUPIED_TARGET_PCT_MTD
OCCUPIED_PCT_MTD_LY
OCCUPIED_TARGET_PCT_MTD_LY
BY LOWEST Date_Calendar_Month_YYYYMM NOPRINT
BY Date_Calendar_Month
BY Property_AD_DM_Prop_BU_Unit_Property
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
-DEFAULTH &WF_TITLE='WebFOCUS Report';
-*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+DQo8Um9vdCB2ZXJzaW9uPSIxLjAiPg0KICAgIDxPY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NCiAgICA8L09iamVjdD4NCjwvUm9vdD4NCg==
-*Do not delete or modify the comments above
ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE OCCHOLD
-* Created by Info Assist for Graph
SUM OCCUPIED_PCT_MTD
OCCUPIED_PCT_MTD_LY
OCCUPIED_TARGET_PCT_MTD
BY LOWEST Date_Calendar_Month_YYYYMM NOPRINT
BY Date_Calendar_Month
WHERE Date_Calendar_Month_YYYYMM FROM &CURYM5M TO &CURYP6M;
WHERE Property_AD_DM_Prop_BU_Unit_Property EQ &Property_AD_DM_Prop_BU_Unit_Property. (|FORMAT=A46).Property.QUOTEDSTRING;
-*HEADING
-*"Occupancy"
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET PAGE-NUM NOLEAD
ON GRAPH SET EMPTYREPORT ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
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 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH VAREA
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setSeriesType(3,2);
*END
INCLUDE=IBFS:/WFC/Repository/Branding/UDRgreen.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, ARGRAPHENGINE=JSCHART, $
TYPE=HEADING, JUSTIFY=LEFT, FONT='Trebuchet MS', SIZE=12, COLOR=RGB(66 70 73), STYLE=BOLD, $
*GRAPH_SCRIPT
setPieFeelerTextDisplay(1);
setUseSeriesShapes(true);
setScaleMustIncludeZero(getX1Axis(), false);
setScaleMustIncludeZero(getY1Axis(), false);
setScaleMustIncludeZero(getY2Axis(), false);
setMarkerSizeDefault(60);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setSeriesType(0,1);
setSeriesType(1,1);
setSeriesType(2,1);
setSeriesType(3,1);
setSeriesType(4,1);
setSeriesType(5,1);
setDisplay(getAnnotation(0),true);
setTextWrap(getAnnotation(0),true);
setRect(getAnnotation(0),new Rectangle(-16000.0,9600.0,32000.0,6400.0));
setTextString(getAnnotation(0),"");
setScaleMinAuto(getY1Axis(),false);
setScaleMin(getY1Axis(),0.8);
setScaleMaxAuto(getY1Axis(),false);
setScaleMax(getY1Axis(),1.0);
*END
ENDSTYLE
END
-RUN
-*IA_GRAPH_FINISH
-RUN
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
I was told by one of the support team that when you modified the code manually you may not be able to open it in InfoAssist since it doesn't like the change.
Is there anything more you can tell us? I feel like some things I am forced to write in the code.
It isn't related to the content, but rather just the fact that code was changed manually, is that correct?
Even if I delete the component that is broken I cannot start the component via GUI without error. If I remade the entire fex all in the gui would it work?
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
@WebFocusDiver, that's isn't 100% accurate. When editing the code directly from the web instead of infoAssist, it will let you know when you hit Save, it's it's good with InfoAssist or not. That prompt, can be canceled, then it doesn't save and screw up InfoAssist. Another way to get around things is, if it's a chart, open the same report up in DevStudio, which launches it into InfoAssist without the same issue. That is of course, if you have DevStudio.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
after removing &var and -DEFAULT we were able to recreate a working chart component. Might be just related to -DEFAULT. will continue exploring and see if I can recover Chart as is, rather than creating anew.
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
No change in AppStudio. Is there a conflict with having both AS and DS on the same box? We chalked some weird behavior up to this in the past and I removed DS, .
Will explore removing -DEFAULT first.
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
I have both AS and DS on my box, though I never use AS. I tried it, hated it because of the bugs, limitations, and the overwhelming amount of clicks I have to do, for the simplest things.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
Ok, I had both and worked in DS, but after the issues I was having and DS not being supported in the future I thought I would switch over. Maybe I should bring DS back.
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
We determined that the issue is not with the -DEFAULT. gui broke when I added an &var in WHERE statement from within the code. I went back and tried to add the WHERE from within the gui, but it comes up with an error message failing to cast something to apache.
But using &var has to be one of the most common things to do in charts right? Can someone please post their WEHRE statement from a chart with a working gui using a &var.
This is just making less and less sense to me, or am I just going crazy?
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
-* File: IBFS:/localhost/EDA/EDASERVE/APPPATH/ibisamp/se/Chart1.fex Created by WebFOCUS AppStudio -*IA_GRAPH_BEGIN -*Do not delete or modify the comments below *-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+PFJvb3QgdmVyc2lvbj0iMS4wIj4NCiAgICA8T2JqZWN0IG9iamVjdElkPSJDaGFydF8xIj4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9IkxpbmtlZFNvcnRzIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIi8+DQogICAgPC9PYmplY3Q+DQogICAgPE9iamVjdCBvYmplY3RJZD0iR0xPQkFMIj4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9IlNhbXBsZURhdGEiIHR5cGU9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RPT08L1Byb3BlcnR5Pg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iU0xJQ0VSX0lORk9STUFUSU9OIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIj5QRDk0Yld3Z2RtVnljMmx2YmowaU1TNHdJaUJsYm1OdlpHbHVaejBpVlZSR0xUZ2lJSE4wWVc1a1lXeHZibVU5SW01dklqOCtQQ0V0TFVOUFRWQk1SVlJGWDFOTVNVTkZVbDlIVWs5VlVDMHRQanhUVEVsRFJWSmZSMUpQVlZBK1BFZFNUMVZRSUdkeWIzVndUblZ0WW1WeVBTSXdJaUJ6YkdsalpYSkhjbTkxY0V4aFltVnNQU0pIY25Wd2J5QXhJaUJ6YkdsalpYSkhjbTkxY0U5eVpHVnlQU0l3SWlCemJHbGpaWEpIY205MWNGTnBlbVU5SWpBaUlITnNhV05sY2tkeWIzVndhR2xrWlQwaVptRnNjMlVpTHo0OEwxTk1TVU5GVWw5SFVrOVZVRDQ9PC9Qcm9wZXJ0eT4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9ImVuYWJsZVByZXZpZXciIHR5cGU9ImphdmEubGFuZy5Cb29sZWFuIj50cnVlPC9Qcm9wZXJ0eT4NCiAgICA8L09iamVjdD4NCjwvUm9vdD4NCg== -*Do not delete or modify the comments above ENGINE INT CACHE SET ON -DEFAULTH &WF_STYLE_UNITS='PIXELS'; -DEFAULTH &WF_STYLE_HEIGHT='405.0'; -DEFAULTH &WF_STYLE_WIDTH='770.0'; -DEFAULTH &WF_TITLE='WebFOCUS Report'; GRAPH FILE car -* Created by Info Assist for Graph SUM CAR.BODY.SALES BY CAR.COMP.CAR WHERE CAR.ORIGIN.COUNTRY EQ &COUNTRY. (|FORMAT=A10).COUNTRY.QUOTEDSTRING; ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET VZERO OFF ON GRAPH SET HTMLENCODE ON ON GRAPH SET GRAPHDEFAULT OFF ON GRAPH SET GRWIDTH 1 ON GRAPH SET UNITS &WF_STYLE_UNITS 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 0 ON GRAPH SET GRXAXIS 1 ON GRAPH SET LOOKGRAPH VBAR ON GRAPH SET AUTOFIT ON ON GRAPH SET STYLE * *GRAPH_SCRIPT setPieDepth(0); setPieTilt(0); setDepthRadius(0); setCurveFitEquationDisplay(false); setPlace(true); *END INCLUDE=endeflt.sty,$ TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $ *GRAPH_SCRIPT setReportParsingErrors(false); setSelectionEnableMove(false); *END ENDSTYLE END -RUN
-*IA_GRAPH_FINISH
WebFOCUS 8.1.05 / APP Studio
Posts: 272 | Location: Brazil | Registered: October 31, 2006
I am trying desperately to stay away from having to use hold files. looking at your where did give me an idea though.
I was trying to use: WHERE Date_Calendar_Month_YYYYMM FROM &YM_START TO &YM_END;
I now have the following working with gui in tact: WHERE DM.DM.Date_Calendar_Month_YYYYMM GE &YM_START. (|FORMAT=I6).QUOTEDSTRING; WHERE DM.DM.Date_Calendar_Month_YYYYMM LE &YM_END. (|FORMAT=I6).QUOTEDSTRING;
Odd to me why the gui wouldn't change or not accept the normal syntax.
Thanks for your help!
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
If you use HOLD file correctly, you are preparing the data for reporting, so the report part becomes pretty simple, and you can concentrate on styling, etc.
Some data sources are in a state that you can report of directly, but many are not and some level of manipulation is required.
Increases complexity, maintenance, and reduces readability and consistency (SET and attributes, etc) don't you think?
I use the heck out of hold files. Makes my life 100% easier. I'd suggest playing more with them, because they can make the difference between spending hours trying to make something work over a one liner to create a hold file. We also use the heck out of FOCCACHE to speed up the user experience, which is session based and is written just like HOLD files, but sticks around across FEX files. WF will delete the FOCCACHE as soon as the user logs out.
Then again, we do more application development than reporting in WF than most, I'm sure.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
So FOCCACHE isn't going to help much if users log in to go through a couple portal pages then? Do you have an simple example of FOCCACHE that you could post for me to see the usage?
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
We use FOCCACHE, because we have HIVE/HBASE behind the scenes, which isn't very fast, even with the use of phoenix. Though we had to remove phoenix, because it's not compatible with Protegrity. So what we do, it call the synonym like normal, but instead of just putting in a hold file, we put it in FOCCACHE so that on the next search, we don't have to go back to HIVE, we pull it from local. Each search they do, stores information into this same FOCCACHE as an inserted record.
This is an example of our backend FEX that builds the FOCCACHE and insert records based on if it already exists or not. I had to do some serious modifications to it, because of legal reasons, so I hope you get the idea.
-DEFAULTH &SEARCH_FOR = 'Gavin';
-DEFAULTH &ASOFDATE = '2015-05-15';
-DEFAULTH &FCEXISTS = 0;
-TYPE SEARCH_FOR = &SEARCH_FOR;
-IF &SEARCH_FOR EQ _FOC_NULL THEN GOTO THEEND;
SET ASNAMES=ON
SET HOLDLIST=PRINTONLY
CHECK FILE FOCCACHE/CUSTOMER_INFO
-RUN
-IF &RETCODE EQ 0 THEN GOTO CHECKRECEXIST;
-CALLSERVICE
-TYPE 'CALL SERVICE'
TABLE FILE MYDOM/MY_SYNONYM
PRINT
COMPUTE ASOFDATE/A10 = '&ASOFDATE';
COMPUTE SEARCHCOL/A25V = '&SEARCH_FOR';
COMPUTE CUSTNAME/A200V = IF ARGLEN(255, MY_SYNONYM.RESPONSE.MIDDLENAME, 'I4') GT 0 THEN MY_SYNONYM.RESPONSE.FIRSTNAME || ' ' | MY_SYNONYM.RESPONSE.MIDDLENAME || ' ' | MY_SYNONYM.RESPONSE.LASTNAME ELSE MY_SYNONYM.RESPONSE.FIRSTNAME || ' ' | MY_SYNONYM.RESPONSE.LASTNAME;
COMPUTE ADDRESS/A1000V = IF ARGLEN(255, MY_SYNONYM.RESPONSE.NAME, 'I4') GT 0 THEN MY_SYNONYM.RESPONSE.ADDRESSLINE4 || ', ' | MY_SYNONYM.RESPONSE.CITYNAME || ', ' | MY_SYNONYM.RESPONSE.STATE || ' ' | EDIT(MY_SYNONYM.RESPONSE.ZIPCODE, '99999') ELSE '';
MY_SYNONYM.RESPONSE.BIRTHDATE
COMPUTE TELEPHONENUMBERfmt/A50V = IF ARGLEN(255, MY_SYNONYM.RESPONSE.TELEPHONENUMBER, 'I4') EQ 10 THEN EDIT(MY_SYNONYM.RESPONSE.TELEPHONENUMBER, '(999) 999-9999') ELSE MY_SYNONYM.RESPONSE.TELEPHONENUMBER;
MY_SYNONYM.RESPONSE.EMAILADDRESS
WHERE MY_SYNONYM.M6ILO.SEARCH_FOR EQ '&SEARCH_FOR';
WHERE MY_SYNONYM.M6ILO.DATE EQ '&ASOFDATE';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS HOLDCUSTOMER FORMAT INTERNAL
END
-RUN
-TYPE FCEXISTS = &FCEXISTS
-IF &FCEXISTS EQ 0 GOTO CREATEFILE ELSE INSERTREC;
-CHECKRECEXIST
-TYPE 'FocDB exists, checking if record exists'
-SET &FCEXISTS = 1;
TABLE FILE FOCCACHE/CUSTOMER_INFO
BY SEARCHCOL
WHERE SEARCHCOL EQ '&SEARCH_FOR' AND ASOFDATE EQ '&ASOFDATE';
ON TABLE HOLD FORMAT INTERNAL
END
-RUN
-IF &LINES GT 0 GOTO THEEND ELSE GOTO CALLSERVICE;
-CREATEFILE
-TYPE 'CREATE FILE'
TABLE FILE HOLDCUSTOMER
PRINT *
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS FOCCACHE/CUSTOMER_INFO FORMAT XFOCUS INDEX SEARCHCOL
END
-RUN
-GOTO THEEND
-INSERTREC
-TYPE 'INSERT RECORD'
MODIFY FILE FOCCACHE/CUSTOMER_INFO
FIXFORM FROM HOLDCUSTOMER
MATCH SEARCHCOL ASOFDATE
-* ON MATCH UPDATE *
ON NOMATCH INCLUDE
DATA ON HOLDCUSTOMER
END
-RUN
-THEEND
-TYPE 'THE END'
TABLE FILE FOCCACHE/CUSTOMER_INFO
PRINT *
WHERE SEARCHCOL EQ '&SEARCH_FOR';
WHERE ASOFDATE EQ '&ASOFDATE';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
END
-RUN
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server