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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Alternate Variable Assignment Syntax Issue (PROMPT)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Alternate Variable Assignment Syntax Issue (PROMPT)
 Login/Join
 
Master
posted
I'm not exactly sure about the whys, but it was called to my attention that a style of variable prompt/assignment that previously worked in 7.6.8 does not work in 7.6.11 (Client/Server). I am trying to determine if this is expected or an issue.

The primary user of this style of assignment/declaration is an old school mainframe Focus user who has been doing WF in later years. I find a lot of FOCUS syntax in his programs, so this may be the cause.

-PROMPT THE_DATE FROM &BEG1.Start Date (yyyymmdd). TO &END1.End Date (yyyymmdd).;


On 7.6.8, you get 2 prompts: &BEG1 and END1 with the labels 'Start Date (yyyymmdd)' and 'End Date (yyyymmdd)', respectively.

On 7.6.11, you also get the 2 prompts above and a third, 'THE_DATE'.

I was thinking the syntax might be part of a DM facility to error check that the 'start' date is less than/equal the 'End' date. My tests don't support that. I was also thinking that the third variable ('THE_DATE' in this case) might be used elsewhere in the program, it is not.

It seems to me like it is a way to make one prompt statement and collect 2 values for 2 variables. Is this a coding style that has been deprecated or have I found a bug?

- ABT

This message has been edited. Last edited by: ABT,


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Expert
posted Hide Post
quote:
-PROMPT THE_DATE FROM &BEG1.Start Date (yyyymmdd). TO &END1.End Date (yyyymmdd).;


Also does it in 7.6.9

I would suggest, as it is a change in functionality, that you put in a case with IBI.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
Thanks Waz, I'll do that and report back the findings for all to share.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Expert
posted Hide Post
I think it's a bug. There's no ampersand so it shouldn't be prompted for. I can't wait to hear the answer.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<JJI>
posted
ABT,

Maybe you could use this piece code as a workaround.

 
-DEFAULT &BEG1 = '';
-DEFAULT &END1 = '';
-**************************************************************
-* Dummy parameters used to create a title in the prompt page 
-**************************************************************
-SET &P_BEG1  = &BEG1.Start Date (yyyymmdd). ;
-SET &P_&END1 = &END1.End Date (yyyymmdd).;
 


I don't think that the -PROMPT syntax is very usefull in a Win. evironment where you use the default prompting page unless you want to use it because it makes your fex more readable.

The code above does not undermine the performance even if you need to prompt the user for 10 or more varialbles and the result is the same.

Hope this helps.
 
Report This Post
Master
posted Hide Post
IBI solution is to code prompts for 2 variables. :-( :-( :-(

Unfortunately I can't find a way to fix this problem.
The best for you is probably to use a editor tool to locate all the 'THE_DATE'
strings and try to change them all, but before you have to stop the server.


- ABT

P.S. :-( :-( :-(


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Alternate Variable Assignment Syntax Issue (PROMPT)

Copyright © 1996-2020 Information Builders