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.
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?
-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 -EXITThis message has been edited. Last edited by: Ted Michalski,
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, 2006
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.
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.