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.
If you click NoData in this report does it take you to IB's home page?
SET NODATA = NoData
DEFINE FILE CAR
Define_1/A100 MISSING ON NEEDS SOME DATA=IF CAR.ORIGIN.COUNTRY EQ 'ENGLAND' THEN MISSING ELSE CAR.ORIGIN.COUNTRY;
END
TABLE FILE CAR
SUM
CAR.BODY.SALES
BY CAR.ORIGIN.Define_1
BY CAR.ORIGIN.COUNTRY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
LINES-PER-PAGE=20,
$
TYPE=DATA,
COLUMN=N1,
DRILLMENUITEM='DrillDown 1',
URL=http://informationbuilders.com,
TARGET='_blank',
$
ENDSTYLE
END
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
I think I figured out what is causing the issue, but I'm not sure how to resolve it.
I created two reports using the car file, sample code is below. You will have to update based on your folder structure.
ReportDrillTest1
DEFINE FILE CAR
NULLFIELD/A20 MISSING ON = IF COUNTRY EQ 'ITALY' THEN MISSING ELSE COUNTRY ;
END
TABLE FILE CAR
PRINT *
NULLFIELD
ON TABLE SET STYLE *
TYPE=DATA,
COLUMN=COUNTRY,
FOCEXEC=IBFS:/WFC/Repository/Utilities/SampleCodes/ReportDrillTest2.fex( \
NULLFIELD=NULLFIELD \
),
TARGET='_blank',
$
ENDSTYLE
END
ReportDrillTest2
DEFINE FILE CAR
NULLFIELD/A20 MISSING ON = IF COUNTRY EQ 'ITALY' THEN MISSING ELSE COUNTRY ;
END
TABLE FILE CAR
PRINT *
NULLFIELD
WHERE NULLFIELD EQ '&NULLFIELD' ;
END
When I drill on Italy, which passes the MISSING value, the parameter that is passed is the %20 character space value in 8203 and the drill report correctly filters for Italy. This is different than the period (.) that is being passed in my other report that is not working.
When I went to my other report and tried to drill on a value again, it is still passing a period for MISSING. When I swapped this period for the %20 character, I received the correct results in my report.
So it seems like there is some setting that is controlling what value for MISSING is being passed, but I don't know what it is or how to change it.
WF 8.2.0.3 Windows 10 64bit HTML, AHTML, PDF, Excel
ReportDrillTest2 needs a test for missing not '.', so you have to code it this way:
-SET &ECHO=ALL;
-SET &NULLFIELD=IF &NULLFIELD EQ . THEN _FOC_MISSING ELSE &NULLFIELD;
DEFINE FILE CAR
NULLFIELD/A20 MISSING ON = IF COUNTRY EQ 'ITALY' THEN MISSING ELSE COUNTRY ;
END
TABLE FILE CAR
PRINT *
NULLFIELD
WHERE NULLFIELD EQ '&NULLFIELD' ;
END
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
-SET &NULLFIELD=IF EQ . THEN _FOC_MISSING ELSE ;
DEFINE FILE CAR
NULLFIELD/A20 MISSING ON = IF COUNTRY EQ 'ITALY' THEN MISSING ELSE COUNTRY ;
END
TABLE FILE CAR
PRINT *
NULLFIELD
WHERE NULLFIELD EQ '_FOC_MISSING' ;
END
(FOC757) WARNING. YOU REQUESTED PRINT * OR COUNT * FOR A MULTIPATH FILE
0 NUMBER OF RECORDS IN TABLE= 4 LINES= 4
0 HOLDING HTML FILE ON PC DISK ...
I get the same results as I received before (showing Italy for instance), but I'm not sure what this tells me. I don't understand why one report would pass '.' in a parameter for MISSING and another would pass %20.
WF 8.2.0.3 Windows 10 64bit HTML, AHTML, PDF, Excel
The syntax for checking for null is WHERE FIELDNAME EQ MISSING;
In the example you provided the ECHO shows this: WHERE FIELSNAME EQ '.';
Since '.' means look for a dot, it can't find it in your data and you get a blank report. _FOC_MISSING is a reserved word and has a specific meaning to the language. So when WebFOCUS sees that, it actually looks for null values.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
I received a response from IBI support confirming the behavior I described. They said they would forward it on to support and notify me of any feedback.
I'm guessing I'll just have to go through all of our drill procedures and have checks for IF &PARAMETER EQ '.' THEN '_FOC_MISSING' ELSE &PARAMETER. This will be extremely time consuming if true.
WF 8.2.0.3 Windows 10 64bit HTML, AHTML, PDF, Excel
I still have not received a response from IBI on this issue and it is creating more problems with other reports.
Has anyone else experienced this issue with drilling on fields and passing null parameters in 8.203? These reports worked just fine in 8105 and now they are mess in 82
WF 8.2.0.3 Windows 10 64bit HTML, AHTML, PDF, Excel
If it solve the issue you will probably need to add it in a global server profile instead of having to add it everywhere. The actual default is possibly
SET NODATA =
And the above result of having MISSING data displayed as "."