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] Default value to a parameter in Ad hoc

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Default value to a parameter in Ad hoc
 Login/Join
 
Member
posted
I need to set a default value for a parameter in adhoc.

Basically i need to filter the nulls from the user input.

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


WebFOCUS 7.6.8
Windows
HTML
 
Posts: 5 | Registered: March 18, 2010Report This Post
Platinum Member
posted Hide Post
Hi,

Use
  
-DEFAULTS &[variablename] = '[someValue]';


Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
 
Posts: 117 | Location: Toronto, Ontario, Canada | Registered: February 29, 2008Report This Post
Member
posted Hide Post
Hi jim,

Thanks for your reply.But I'm working on ad hoc.
Where exactly should i use the key word -DEFAULTS ?

Thanks


WebFOCUS 7.6.8
Windows
HTML
 
Posts: 5 | Registered: March 18, 2010Report This Post
Platinum Member
posted Hide Post
Hi,

Do you write the Adhoc program code?
If so, you just write it at the top of your program.
I do all my programs in code (Adhoc as well), so I don't know how it's done with the interface.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
 
Posts: 117 | Location: Toronto, Ontario, Canada | Registered: February 29, 2008Report This Post
Expert
posted Hide Post
If you are just typing something in, it should look like this:
-DEFAULTS &COUNTRY='JAPAN'
TABLE FILE CAR
PRINT SALES DEALER_COST RETAIL_COST
BY COUNTRY
BY CAR
BY MODEL
WHERE COUNTRY EQ '&COUNTRY'
END

This won't prompt though.

When you say adhoc, are you talking about the auto-prompt screen? If yes, and you need to do something fancy with what the user enters, then I suggest that you do away with the default and parse the input. I'd also recommend a custom launch page.


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
  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] Default value to a parameter in Ad hoc

Copyright © 1996-2020 Information Builders