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     [RESOLVED] Hiding prompts

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[RESOLVED] Hiding prompts
 Login/Join
 
Platinum Member
posted
The user has agreed to separate reports for each country as each country is coded in different ways, so this will no longer be needed.



I have an HTML page that initially displays a list box to select the country you want to run the report for (COUNTRY1 or COUNTRY2). But when I select a country and hit RUN, the report then displays the prompts for both countries. Is there any way I can 'hide' the prompt for COUNTRY2 if I select COUNTRY1 and vice versa?

Here is the code:

-PROMPT &MKT.(COUNTRY1, COUNTRY2).Select country.;

-IF &MKT EQ 'COUNTRY1' THEN GOTO RUN_COUNTRY1 ELSE IF &MKT EQ 'COUNTRY2' THEN GOTO RUN_COUNTRY2
END
-RUN

-RUN_COUNTRY1
-SET &COUNTRY1PROMPT = &COUNTRY1PROMPT
TABLE FILE XXXXX
SUM
XXXXXX
WHERE XXX.COUNTRY = EQ &CONTRY1PROMPT;
ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS HOLDTBL4 FORMAT FOCUS
END
-RUN

-GOTO END_RUN

-RUN_COUNTRY2
-SET &COUNTRY2PROMPT = &COUNTRY2PROMPT
TABLE FILE XXXXX
SUM
XXXXXX
WHERE XXX.COUNTRY = EQ &CONTRY2PROMPT;
ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS HOLDTBL4 FORMAT FOCUS
END
-RUN

-END_RUN
-EXIT

This message has been edited. Last edited by: Ted Michalski,


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Virtuoso
posted Hide Post
Both reports seem to be the same, is that just because of the expample or is that the real issue.

If so you just can do this

-PROMPT &MKT.(COUNTRY1, COUNTRY2).Select country.;

TABLE FILE XXXXX
SUM
XXXXXX
WHERE COUNTRY EQ '&MKT';
ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS HOLDTBL4 FORMAT FOCUS
END


This should do it

BTW, some strange other codes in your example

....WHERE XXX.COUNTRY = EQ &CONTRY2PROMPT;

the &contry2prompt is nowhere defined
the '= EQ' is not a supported way to do this




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
The EQ shouldn't be there in the second Where.
The reports are similar but the issue is that if I select COUNTRY1 in the &MKT prompt, I just want prompt &COUNTRY1PROMPT to appear, not both &COUNTRY1PROMPT and &COUNTRY2PROMPT and vice versa.


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Virtuoso
posted Hide Post
Then I just do not understand the issue

you have created an autoprompt by the command

-SET &COUNTRY1PROMPT = &COUNTRY1PROMPT

-SET &COUNTRY2PROMPT = &COUNTRY2PROMPT

But I just do not understand why you use these different prompt variables and names..

Can they not be the same?

Does it not work as I suggested and if not ...why not...




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
The example I gave may be to dimplified.

Each country runs differently with different prompts.

COUNTRY1 needs PromptA, PromptB and PromptC.

COUNTRY2 needs PromptD and PromptE.

The prompts between the countries are different and are not related.

What I want is to only display PromptA, PromptB and PromptC if the initial selection is COUNTRY1, and only display PromptD and PromptE when COUNTRY2 is selected.

The report code will be different and unique for each country.


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Platinum Member
posted Hide Post
Sorry, that should have been "simplified".


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report 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     [RESOLVED] Hiding prompts

Copyright © 1996-2020 Information Builders