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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
olap error...
 Login/Join
 
<Shane>
posted
I'm not sure even where to begin on this one...We can initially run the report fine with OLAP enabled but when we click the Run button, it immediately shows the following error:

0 ERROR AT OR NEAR LINE     66  IN PROCEDURE ADHOCRQ FOCEXEC *
 (FOC303) CONTROL LINE NOT RECOGNIZED IN FOCEXEC:
 -BOTTOM-STYLE=OUTSET,BORDER-LEFT-STYLE=OUTSET,BORDER-RIGHT-STYLE=OUTSET,BORDER-


Here's the code...

-OLAP ON
-* File top20scrap.fex
-SET &ECHO=ALL;
-SET &PLANT = 'FLORA';
-SET &DEPT = 'FOC_NONE';
-SET &WORKCENTER = 'FOC_NONE';
-SET &PART_NUM = 'FOC_NONE';
-SET &START_DATE = '20070904';
-SET &END_DATE = '20070904';

DEFINE FILE ODS_HJ_TRANSACTIONS
DEFECT_COST/D12.2!D = DEFECT_QUANTITY * CURRENT_STD_COST;
TOTAL_SCRAP/D12.2!D = DEFECT_COST + COMPONENT_SCRAP_ADJ;
END

OLAP DIMENSIONS
-* DIMENSIONS FILE ODS_HJ_TRANSACTIONS
PLANT: PLANT, DEPARTMENT, WORK_CENTER;
END
TABLE FILE ODS_HJ_TRANSACTIONS
SUM
     TOTAL_PRODUCED/P18C
     DEFECT_QUANTITY/P17C
     COMPUTE DEFECT_PERCENT/D12.2% = IF TOTAL_PRODUCED NE 0 THEN ( DEFECT_QUANTITY / TOTAL_PRODUCED ) * 100 ELSE 0;
     DEFECT_COST
     COMPONENT_SCRAP_ADJ/D20.2C
     TOTAL_SCRAP
BY TOTAL HIGHEST 20 TOTAL_SCRAP NOPRINT
BY PART_NUMBER
BY ITEM_DESCRIPTION
WHERE PLANT EQ 'FLORA';
WHERE EFFECTIVE_DATE GE DT(20070904) AND EFFECTIVE_DATE LE DT(20070904);
WHERE ( PLANT NE 'N/A' ) AND ( DEPARTMENT NE 'N/A' ) AND ( WORK_CENTER NE 'N/A' ) AND ( PART_NUMBER NE 'N/A' ) AND ( MACHINE_GROUP NE 'N/A' );
ON TABLE SET PAGE-NUM OFF
ON TABLE SUMMARIZE AS 'Report Totals'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET OLAPPANE TOP
ON TABLE SET STYLE *
     UNITS=CM,
     PAGESIZE='A4',
     LEFTMARGIN=0.000000,
     RIGHTMARGIN=0.000000,
     TOPMARGIN=0.000000,
     BOTTOMMARGIN=0.000000,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
     PAGECOLOR='WHITE',
$
TYPE=REPORT,
     FONT='TAHOMA',
     SIZE=10,
     COLOR=RGB(50 50 50),
     STYLE=NORMAL,
$
TYPE=DATA,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=MEDIUM,
     BORDER-RIGHT=LIGHT,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=DOUBLE,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-BOTTOM-COLOR=RGB(200 200 220),
     BORDER-LEFT-COLOR=RGB(33 66 99),
     BORDER-RIGHT-COLOR=RGB(33 66 99),
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=DATA,
     COLUMN=N1,
     BORDER-LEFT=LIGHT,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-LEFT-COLOR=RGB(33 66 99),
     FONT='TAHOMA',
     SIZE=10,
     COLOR=RGB(33 66 99),
     BACKCOLOR=RGB(200 200 220),
     STYLE=BOLD,
$
TYPE=DATA,
     COLUMN=N2,
     BORDER-LEFT=HEAVY,
     BORDER-LEFT-STYLE=DOUBLE,
     BORDER-LEFT-COLOR=RGB(33 66 99),
     FONT='TAHOMA',
     SIZE=10,
     COLOR=RGB(33 66 99),
     BACKCOLOR=RGB(210 210 230),
     STYLE=BOLD,
     TARGET='_self',
     FOCEXEC=top20scrapd(DEPARTMENT='&DEPT.EVAL' PART_NUMBER=N2 WORK_CENTER='&WORKCENTER.EVAL' PLANT='&PLANT.EVAL' START_DATE='&START_DATE.EVAL' END_DATE='&END_DATE.EVAL'),
$
TYPE=DATA,
     COLUMN=N3,
     BORDER-LEFT=HEAVY,
     BORDER-LEFT-STYLE=DOUBLE,
     BORDER-LEFT-COLOR=RGB(33 66 99),
     FONT='TAHOMA',
     SIZE=10,
     COLOR=RGB(33 66 99),
     BACKCOLOR=RGB(220 220 240),
     STYLE=BOLD,
$
TYPE=DATA,
     ACROSSCOLUMN=N1,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(220 220 240),
     BORDER-BOTTOM-COLOR=RGB(220 220 240),
     BORDER-LEFT-COLOR=RGB(220 220 240),
     BORDER-RIGHT-COLOR=RGB(220 220 240),
     FONT='TAHOMA',
     SIZE=10,
     COLOR=RGB(220 220 240),
     BACKCOLOR=RGB(33 66 99),
     STYLE=BOLD,
$
TYPE=TITLE,
     COLUMN=N1,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     COLUMN=N2,
     FONT='TAHOMA',
     SIZE=10,
     TARGET='_self',
$
TYPE=TITLE,
     COLUMN=N3,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     COLUMN=N5,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     COLUMN=N9,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     COLUMN=N8,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     COLUMN=N7,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     COLUMN=N6,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     COLUMN=N4,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TITLE,
     ACROSSCOLUMN=N1,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=TABHEADING,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(200 200 220),
     BORDER-BOTTOM-COLOR=RGB(200 200 220),
     BORDER-LEFT-COLOR=RGB(200 200 220),
     BORDER-RIGHT-COLOR=RGB(200 200 220),
     SIZE=12,
     BACKCOLOR=RGB(220 220 240),
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(200 200 220),
     BORDER-BOTTOM-COLOR=RGB(200 200 220),
     BORDER-LEFT-COLOR=RGB(200 200 220),
     BORDER-RIGHT-COLOR=RGB(200 200 220),
     BACKCOLOR=RGB(220 220 240),
     STYLE=ITALIC,
$
TYPE=HEADING,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(200 200 220),
     BORDER-BOTTOM-COLOR=RGB(200 200 220),
     BORDER-LEFT-COLOR=RGB(200 200 220),
     BORDER-RIGHT-COLOR=RGB(200 200 220),
     SIZE=12,
     BACKCOLOR=RGB(220 220 240),
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     COLOR=RGB(200 200 220),
     BACKCOLOR=RGB(33 66 99),
     JUSTIFY=CENTER,
$
TYPE=FOOTING,
     SIZE=9,
     STYLE=ITALIC,
$
TYPE=FOOTING,
     LINE=1,
     COLOR=RGB(200 200 220),
     BACKCOLOR=RGB(33 66 99),
     STYLE=NORMAL,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR=RGB(33 66 99),
     BORDER-BOTTOM-COLOR=RGB(33 66 99),
     BORDER-LEFT-COLOR=RGB(33 66 99),
     BORDER-RIGHT-COLOR=RGB(33 66 99),
     SIZE=12,
     COLOR=RGB(33 66 99),
     BACKCOLOR=RGB(220 220 240),
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     LINE=1,
     COLOR=RGB(220 220 240),
     BACKCOLOR=RGB(33 66 99),
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     LINE=2,
     BACKCOLOR=RGB(200 200 220),
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     LINE=3,
     BACKCOLOR=RGB(210 210 230),
     JUSTIFY=CENTER,
$
TYPE=SUBFOOT,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR=RGB(33 66 99),
     BORDER-BOTTOM-COLOR=RGB(33 66 99),
     BORDER-LEFT-COLOR=RGB(33 66 99),
     BORDER-RIGHT-COLOR=RGB(33 66 99),
     SIZE=12,
     COLOR=RGB(33 66 99),
     BACKCOLOR=RGB(220 220 240),
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     LINE=1,
     COLOR=RGB(220 220 240),
     BACKCOLOR=RGB(33 66 99),
     JUSTIFY=RIGHT,
$
TYPE=SUBFOOT,
     LINE=2,
     BACKCOLOR=RGB(200 200 220),
$
TYPE=SUBFOOT,
     LINE=3,
     BACKCOLOR=RGB(210 210 230),
$
TYPE=SUBTOTAL,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(220 220 240),
     BORDER-BOTTOM-COLOR=RGB(220 220 240),
     BORDER-LEFT-COLOR=RGB(220 220 240),
     BORDER-RIGHT-COLOR=RGB(220 220 240),
     SIZE=11,
     COLOR=RGB(220 220 240),
     BACKCOLOR=RGB(33 66 99),
     STYLE=BOLD,
$
TYPE=ACROSSVALUE,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(220 220 240),
     BORDER-BOTTOM-COLOR=RGB(220 220 240),
     BORDER-LEFT-COLOR=RGB(220 220 240),
     BORDER-RIGHT-COLOR=RGB(220 220 240),
     FONT='TAHOMA',
     SIZE=14,
     COLOR=RGB(33 66 99),
     BACKCOLOR=RGB(200 200 220),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=ACROSSVALUE,
     ACROSS=1,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=ACROSSTITLE,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(220 220 240),
     BORDER-BOTTOM-COLOR=RGB(220 220 240),
     BORDER-LEFT-COLOR=RGB(220 220 240),
     BORDER-RIGHT-COLOR=RGB(220 220 240),
     FONT='TAHOMA',
     SIZE=14,
     COLOR=RGB(220 220 240),
     BACKCOLOR=RGB(33 66 99),
     STYLE=BOLD,
     JUSTIFY=CENTER,
$
TYPE=ACROSSTITLE,
     ACROSS=1,
     FONT='TAHOMA',
     SIZE=10,
$
TYPE=GRANDTOTAL,
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(220 220 240),
     BORDER-BOTTOM-COLOR=RGB(220 220 240),
     BORDER-LEFT-COLOR=RGB(220 220 240),
     BORDER-RIGHT-COLOR=RGB(220 220 240),
     FONT='TAHOMA',
     SIZE=10,
     COLOR=RGB(220 220 240),
     BACKCOLOR=RGB(33 66 99),
     STYLE=BOLD,
$
ENDSTYLE
END


What else do I need to do to get this report working?

Shane
 
Report This Post
Expert
posted Hide Post
Shane, you say "I'm not sure even where to begin on this one" and then you say "What else do I need to do to get this report working?" Did you try anything?

The error suggests (though it may not be) that a WebFOCUS Style Sheet declaration is the problem, so I would start by commenting out all the styling, and then start re-adding them, one declaration at a time until the error reappears. That's a beginning.

Regards,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<Shane>
posted
Thanks Francis, I'll give that a shot...Maybe I'm just not up to speed on what all has to be done for OLAP to work...Do we have to tweak our master file definition for this to work too?

Shane
 
Report This Post
Expert
posted Hide Post
Shane,

This works in 7.6.4:

  
TABLE FILE GGSALES
SUM BUDUNITS UNITS BUDDOLLARS DOLLARS
BY CATEGORY
ON TABLE SUBHEAD
"</1 Sales Report"
"**CONFIDENTIAL**"
"December 2002 </1"
ON TABLE SET PAGE-NUM OFF
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, $ 
TYPE=TABHEADING, 
     JUSTIFY=CENTER, 
     BORDER-TOP=HEAVY,
     BORDER-BOTTOM=HEAVY,
     BORDER-LEFT=HEAVY,
     BORDER-RIGHT=HEAVY,
     BORDER-TOP-STYLE=OUTSET,
     BORDER-BOTTOM-STYLE=OUTSET,
     BORDER-LEFT-STYLE=OUTSET,
     BORDER-RIGHT-STYLE=OUTSET,
     BORDER-TOP-COLOR=RGB(200 200 220),
     BORDER-BOTTOM-COLOR=RGB(200 200 220),
     BORDER-LEFT-COLOR=RGB(200 200 220),
     BORDER-RIGHT-COLOR=RGB(200 200 220),
     SIZE=12,
     BACKCOLOR=RGB(220 220 240),
     STYLE=BOLD,
 $ 
ENDSTYLE
END
-EXIT


So, I know that OUTSET (3D in HTML only) is working.

As Francis suggests, comment out (-*) each API and see what happens.

Looking through the code, don't see any missing comma's or $ sign's.


The only difference is:

ON TABLE SET STYLESHEET *
vs. your
ON TABLE SET STYLE *

which shouldn't make any difference...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
<Shane>
posted
All,

I've commented out every piece of styling and now when I run it, I get:

Unknown error occurred. Agent on reporting server EDASERVE may have crashed. Please investigate reporting server log.


So, I go to check the reporting server log...and none of it makes any sense to me...

Sorry if I seem a little frustrated but I've just been fighting this tool for the past 7 weeks.

Shane
 
Report This Post
Expert
posted Hide Post
Try turning OLAP off (comment out or remove -OLAP ON) just to see if it's that.

I do believe you need to set up a Master for OLAP, but I'm a complete beginner with OLAP...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<Shane>
posted
good to hear I'm not the only one...I'll try taking out that statement to see if that's the issue.

Shane
 
Report This Post
<Shane>
posted
If I take out -OLAP ON, I don't get the dimensions at the top of the page...

I got OLAP to work with the CAR file...but it refuses to work with our production files...

-OLAP ON
-* File carolap.fex
OLAP DIMENSIONS
-* DIMENSIONS FILE CAR
COUNTRY: COUNTRY, CAR, MODEL, BODYTYPE;
END
TABLE FILE CAR
SUM
     DEALER_COST
     RETAIL_COST
     SALES
BY BODYTYPE
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET OLAPPANE TOP
END


So, I suppose I'll step line by line through both programs to see what the difference is...

Shane
 
Report This Post
<Shane>
posted
Ok, I figured out what was making the Agent crash...BY TOTAL HIGHEST

Apparently OLAP doesn't play well with that combination of commands...

Shane
 
Report This Post
Expert
posted Hide Post
quote:
D12.2!D


What does the !D in this do?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<Shane>
posted
Floating $ sign...

Shane
 
Report This Post
<Shane>
posted
Ok, get this...wow...

In my fex, i have the following statements:

BY PART_NUMBER AS 'Part Number'
BY ITEM_DESCRIPTION AS 'Description'
WHERE PLANT EQ '&PLANT';
WHERE DEPARTMENT EQ '&DEPT';
WHERE WORK_CENTER EQ '&WORKCENTER';
WHERE EFFECTIVE_DATE GE DT(20070904) AND EFFECTIVE_DATE LE DT(20070904);
WHERE ( PLANT NE 'N/A' ) AND ( DEPARTMENT NE 'N/A' ) AND ( WORK_CENTER NE 'N/A' ) AND ( PART_NUMBER NE 'N/A' ) AND ( MACHINE_GROUP NE 'N/A' );

Now, here's the weird part...in the source of the resulting page, OLAP apparently translates some WHERE clauses to IFs...as in the code below:

BY PART_NUMBER AS 'Part Number'
BY ITEM_DESCRIPTION AS 'Description'
IF PLANT EQ 'FLORA'
WHERE EFFECTIVE_DATE GE DT(20070904) AND EFFECTIVE_DATE LE DT(20070904)
WHERE (PLANT NE 'N/A') AND (DEPARTMENT NE 'N/A') AND (WORK_CENTER NE 'N/A') AND (PART_NUMBER NE 'N/A') AND (MACHINE_GROUP NE 'N/A')

Is this normal or am I on some good crack?

Shane

Edit: F.Y.I.: &DEPT and &WORKCENTER = FOC_NONE
 
Report This Post
Expert
posted Hide Post
Don't know what's going on.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Shane

What I tend to do is to try and remove complexity out of the OLAP phase by

APP HOLDDATA USERTEMP
APP HOLDMETA USERTEMP
-* complex code 
ON TABLE HOLD AS RESULTSET FORMAT XFOCUS 
END
-RUN
APP HOLDDATA 
APP HOLDMETA 
-RUN
-OLAP ON
TABLE FILE RESULTSET
-* simple query 


I think the reason wf has translated your wheres to ifs is that it has parsed and deparsed your query and when it deparses it has used the older IF syntax instead of the WHERE syntax.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders