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 question on a -PROMPT where the supplied variables are themselves amper variables. This is something I am transplanting from Windows (Desktop) Focus to WebFOCUS. Specifically this is the line of code in question: -PROMPT &FULLFY.(&THISFY.EVAL, &LASTFY.EVAL).VERIFY CURRENT FY.
Have been following this with -SET &ECHO=ALL; so I can review. What is happening is that I do get a prompt window. But what I am prompted for in the drop-down is &THISFY.EVAL &LASTFY.EVAL ...instead of their resolved values which should be in this case, 2005 2006 --- So to get the thing to just run so I can look at the echo'd commands I'll just select &THISFY.EVAL Immediately below the -PROMPT I have a -TYPE &FULLFY is &FULLFY.EVAL -EXIT
Okay, on the results I see that both &THISFY and &LASTFY are resolved just fine. When it gets to the -PROMPT is reads: -PROMPT &FULLFY.(2006, 2005).VERIFY CURRENT FY. In response to my -TYPE I get -TYPE &THISFY.EVAL IS 2006 ----- So, what is going on? Am I doing the impossible? Is it because the request has not yet gone to the WF Reporting Server when I get the prompt box, that it cannot resolve &THISFY and &LASTFY? Then finally the obvious question, "Is this doable?"
Thanks for your insight!This message has been edited. Last edited by: Kerry,
Posts: 22 | Location: Waterbury VT USA | Registered: November 15, 2005
I have tried running this without the .EVAL's and the result is the same...of course with the exception that the drop-down now displays &THISFY and &LASTFY. Also same as in above scenario, if I select &THISFY the run resolves okay and the &ECHO report clearly reveals &THISFY resolved as 2006. So the whole problem is relatively cosmetic except that we want to see 2006 not &THISFY in the drop-down.
Prarie - The 2005 and 2006 are coming from dialogue manager statements as follows: -SET &CURMN=EDIT(&YYMD, '$$$$99$$') ; -SET &THISYR=EDIT(&YYMD, '9999$$$$') ; -SET &THISFY=IF &CURMN GE 07 THEN &THISYR.EVAL + 1 ELSE &THISYR.EVAL ; -SET &LASTFY = &THISFY.EVAL - 1 ;
Incidentally I have also tried removing the .EVAL's here too without any success. Bill
Posts: 22 | Location: Waterbury VT USA | Registered: November 15, 2005
I think the important question here is in what context are you trying to use the prompt. This is especially relevant as (in version 5.3.2) there is no longer an equivalent of PROMPT in the manner you specify.
So, we know it's on windows. Is it a maintain app (alt to MODIFY), normal HTML front end, combo box on a report?
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Tony, The useage of the variables here is in the TABLE environment, or more specifically in MATCH. That is to determine which 2 filenames to look at (this FY and last FY). As an aside I know it may seem obvious but things get blurry around FY turnover time as to exactly what is what. Our FY closeout gets dragged into July each year. Bill
Posts: 22 | Location: Waterbury VT USA | Registered: November 15, 2005
It may be best if you explain your 'similar issue' in a bit more detailed fashion. If it is the same as this old one, then it will never work like this - the autoprompt parser is run BEFORE the reporting server ever gets to do something, so it can not possible know of the variable values, and hence it will never perform the variable replacements. What you could do in such a case is to present a self-made htmlform to the user where you ask the question as opposed to an automatically generated one which in these cases will just not work the way you want it to work.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
I would also be careful to pay attention to the dates on the posts. The versions in use at the time of this post (2006) were in the 4.3.6 to 5.3.X range and behavior in earlier versions could be (and are!) drastically different.
There are also many different ways to get what you're looking for, like dynamic calendar controls, instead of using -PROMPT. In my opinion, that is "old" syntax. (I'm not inferring that those who still use it are old. )
As GamP says, maybe if you explained your exact issue, we could help you out. Also, please refer to the sections in the documentation about using &variables and the .EVAL operator. Many informative posts on the forum as well.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
What platform and version are you running on now-a-days? (I think you were on Z/OS last time we comversed?), and where are you attempting the prompt - HTML form etc.
Regards
Tony
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Which would be a correct observation. See my previous post:
quote:
it will never work like this - the autoprompt parser is run BEFORE the reporting server ever gets to do something, so it can not possible know of the variable values, and hence it will never perform the variable replacements.
Autoprompt will only scan the fex searching for any unresolved (read: not initialized with -SET) variables. It won't run it to see if anything is unresolved....
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Just to add to Francis' advice, when a client "mandates" the autoprompter, I do the following to create a year database and do FIND to populate the listbox:
Hi Francis, Thanks for your comments however I tried what you suggested and the prompt doesn't appear as &DT1 has been resolved. The best way is I beleive to do the following workaround which is a follows:- Go into EDASPROF (ibi\srvnn\wfs\etc\edasprof.prf) and add: FILEDEF DEFAULT DISK DEFAULT.FEX -RUN -WRITE DEFAULT -DEFAULT &|DATE='&YYMD'
In the focexec add: -INCLUDE DEFAULT TABLE FILE CAR PRINT MODEL BY COUNTRY BY CAR WHERE CAR EQ '&DATE' ; END -RUN
This works well.
_______________________ *** WebFOCUS 8.1.05M ***
Posts: 196 | Location: London, UK | Registered: December 06, 2005
Hi Tom, Thanks for your suggestions too. Your idea is fine when it's the year only that is being prompted for as you only need to change this annually. If it's yymmdd that you need to change it daily !! See above for the best workaround (unless anyone has a better idea !!). Cheers.....
_______________________ *** WebFOCUS 8.1.05M ***
Posts: 196 | Location: London, UK | Registered: December 06, 2005