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     [SOLVED] Using same report for internal and external

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Using same report for internal and external
 Login/Join
 
Member
posted
I have been trying to use 1 report for both internal and external. Internal version accepts value from text box, external is populated by global parameter. I have used multiple ways to get this to work, but the externally always asks for the parameter. Below are 2 examples of what I have tried:

1st-
-SET &CODE = &&USER;
-SET &CODE1 = IF &CODE EQ _FOC_NULL THEN '' ELSE
- IF &CODE EQ '00000' THEN 'AND CMP.CODE = ''&PARAM_ENTRY''' ELSE
- 'AND CMP.CODE = ''&CODE''';

2nd-
-SET &CODE = &&USER.EVAL;
-SET &CODE_ENTRY = IF &CODE.EVAL EQ '00000' THEN &CODE_ENTRY ELSE &CODE;
-SET &CMPCODE = IF &CODE EQ _FOC_NULL THEN '' ELSE
- IF &CODE EQ '00000' THEN 'AND CMP.CODE = ''&CODE_ENTRY''' ELSE
- 'AND CMP.CODE = ''&CODE''';

Not sure what I am missing. Any help is appreciated. Thank you.

This message has been edited. Last edited by: FP Mod Chuck,


Webfocus 8.2, Linux OS, Oracle DB
 
Posts: 5 | Location: Tampa, FL | Registered: June 01, 2017Report This Post
Virtuoso
posted Hide Post
It appears all you're trying to do is populate a variable using IF THEN ELSE. Could you just describe what you'd like to put in the variable? Internal and external doesn't seem to be the issue at this level.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Member
posted Hide Post
BabakNYC - I would like to put in global &&USER into the variable if their id code does not equal 00000. If it does equal 00000, then I want it to use value from text box on html page that user enters.


Webfocus 8.2, Linux OS, Oracle DB
 
Posts: 5 | Location: Tampa, FL | Registered: June 01, 2017Report This Post
Member
posted Hide Post
And if &&USER does not equal 00000, they must not be prompted for input.
Thank you.


Webfocus 8.2, Linux OS, Oracle DB
 
Posts: 5 | Location: Tampa, FL | Registered: June 01, 2017Report This Post
Virtuoso
posted Hide Post
Do you use WF Autoprompting or have built an HTML page from where the parameters are selected ?


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, 2013Report This Post
Member
posted Hide Post
Yes, using WF Autoprompting. Thank you.


Webfocus 8.2, Linux OS, Oracle DB
 
Posts: 5 | Location: Tampa, FL | Registered: June 01, 2017Report This Post
Member
posted Hide Post
Added -DEFAULTH to report to stop the auto prompt for external. Report is working for internal and external now. Thank you.


Webfocus 8.2, Linux OS, Oracle DB
 
Posts: 5 | Location: Tampa, FL | Registered: June 01, 2017Report This Post
Virtuoso
posted Hide Post
Really? Then what's triggering the Autoprompt?
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     [SOLVED] Using same report for internal and external

Copyright © 1996-2020 Information Builders