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 didn't find any thread related to my issue. I am working with Infoassist. I would like to create/define a field from a value in the filter section.
I know its working to display a filter for example in the report header (&variable). So tried the same as a define. The define:
Header referencedate / format DMYY
&referencedate
The thing is, when executing the report, in the filtersection the a new field (reference) date pops up asks for an entry. But whatever entry, it will not be reflected/written into the define (as the field is displayed in the report, but empty).
I would need this reference date to perform further calculations based on this very date (instead of e.g. "today").
many thanks for your support.This message has been edited. Last edited by: FP Mod Chuck,
The thing is, when executing the report, in the filtersection the a new field (reference) date pops up asks for an entry. But whatever entry, it will not be reflected/written into the define (as the field is displayed in the report, but empty).
Try this, Date format :- 30/11/2017 for the prompted variable
ENGINE INT CACHE SET ON
-*COMPONENT=Define_car
DEFINE FILE ibisamp/car
REFERENCEDATE/DMYY='&referencedate';
END
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE ibisamp/car
PRINT REFERENCEDATE
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, $
ENDSTYLE
END
-RUN
The issue is not with the defined format (DMYY, YYMD, ...) more than you need to be consistent between what you enter in the prompt and what is defined in the DEFINE format.
Below will also work while you enter a YYMD value when prompted. The entered data and format must match. Since you are using auto-prompting and trying to provide a date it's a little complicated because auto-prompting doesn't use a calendar (as far as I know). So, in this case I suggest the below to at least specify the input format.
REFERENCEDATE/YYMD='&ReferenceDateYYMD';
You can then enter the data as 2017-11-20 or 2017/11/20 or 20171120 with the same result while the components of the date are in the same order as the defined format and it's a valid date.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Thanks a lot for the hint. 30/11/2017 did not work. But 30112017 did in the end. Funny as usually 30.11.2017 as filter for other fields with the DMYY format works.