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.
I have a dashboard report. I have a number of parameter that need to be passed in for the report to run. In my HTML I have a list box that I populate with static text. This will determine which date (field) to use in the report.
Pickup Scheduled Date will use the PUSCHEDULEDDATE field Pickup Actual Date will use the PUACTUALDATE field and so on.
When I run my dashboard and fill in all my parameters it is ignoring my "Which Date" Dialog. This was working before the conversion to App Studio. (was using dev studio 8005)
The &DATEPRINT is coming back as Null.
-SET &ECHO=ALL;
-DEFAULTH &PUCUSTOMERNAME = '_FOC_NULL';
-DEFAULTH &DELCUSTOMERNAME = '_FOC_NULL';
-DEFAULTH &WHICHDATE = '_FOC_NULL';
-SET &DATEPRINT = IF &WHICHDATE EQ 'Pickup Scheduled Date' THEN PUSCHEDULEDDATE ELSE IF &WHICHDATE EQ 'Pickup Actual Date' THEN PUACTUALDATE ELSE IF &WHICHDATE EQ 'Pickup Released Date' THEN PURELEASEDDATE ELSE IF &WHICHDATE EQ 'Delivery Scheduled Date' THEN DELSCHEDULEDDATE ELSE IF &WHICHDATE EQ 'Delivery Actual Date' THEN DELACTUALDATE ELSE IF &WHICHDATE EQ 'Delivery Released Date' THEN DELRELEASEDDATE ELSE '_FOC_NULL';
-SET &S_PUCUSTOMERNAME = IF &PUCUSTOMERNAME EQ '_FOC_NULL' THEN 'NULL' ELSE &PUCUSTOMERNAME;
-SET &S_DELCUSTOMERNAME = IF &DELCUSTOMERNAME EQ '_FOC_NULL' THEN 'NULL' ELSE &DELCUSTOMERNAME;
SET EMPTYREPORT = ON
SET TITLE = ON
TABLE FILE TESTLOADREPORT
PRINT
&FieldList.(AND(<PRONUMBER,PRONUMBER>,<SHIPPERCODE,SHIPPERCODE>,<NAME,NAME>,<PUSCHEDULEDDATE,PUSCHEDULEDDATE>,<PUACTUALDATE,PUACTUALDATE>,<PURELEASEDDATE,PURELEASEDDATE>)).FieldList.
ON TABLE SUBHEAD
"Load Report Data"
"&DATEtrMDYY <+0> "
WHERE SHIPPERCODE EQ &SHIPPERCODE.(OR(FIND SHIPPERCODE,NAME IN loadreport)).Shipper.;
WHERE (( &DATEPRINT GE '&BeginDate.Enter Begin Date.' ) AND ( &DATEPRINT LE '&EndDate.Enter End Date.' ));
WHERE SALESREPORTINGYEAR EQ &SALESREPORTINGYEAR.(OR(FIND SALESREPORTINGYEAR IN loadreport)).SALESREPORTINGYEAR.;
WHERE SALESREPORTINGWEEK EQ &SALESREPORTINGWEEK.(OR(FIND SALESREPORTINGWEEK IN loadreport)).SALESREPORTINGWEEK.;
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(<HTML,HTML>,<PDF,PDF>,<Excel 2007,XLSX>).Select type of display output.
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
This message has been edited. Last edited by: KellyT,
Prod: WebFOCUS 8.2.0.4 OS: Windows Outputs: HTML, PDF, Excel, PPT In Focus since 2005
Good idea MartinY, Also, is that -SET ... ELSE '_FOC_NULL'; all on one line? Please paste your code in the red "< / >" above to ensure that we're seeing what you're seeing... Thanks, Doug
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
-SET &DATEPRINT = IF _FOC_NULL EQ 'Pickup Scheduled Date' THEN PUSCHEDULEDATE ELSE IF _FOC_NULL EQ 'Pickup Actual Date' THEN PUACTUALDATE ELSE '_FOC_NULL';
The &WHICHDATE is being replaced with the _FOC_NULL.
Doug it is all one line. I shortened it now so it was easier to read.This message has been edited. Last edited by: KellyT,
Prod: WebFOCUS 8.2.0.4 OS: Windows Outputs: HTML, PDF, Excel, PPT In Focus since 2005