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     Converting variables to uppercase using AutoPrompt

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Converting variables to uppercase using AutoPrompt
 Login/Join
 
<Joe Filtz>
posted
Greetings:

WebFocus 5.2.3 with Oracle as a backend database.

Simple report using procedure viewer and autoprompt.

Prompt for variable '&state'. All values in the Oracle database are stored in uppercase (e..g, PA, OH, NY).

When user enters the state, regardless of how many times we tell them to enter it in uppercase, they enter it in lowercase and result set returned is 0.

Is there a way to convert the data entered by the user into uppercase automatically without having to do a separate html launch form and javascript?

I know that there are the 'screening' variable commands. Is there anything like that in AutoPrompt that will do the conversion for me?

TIA

Joe Filtz
 
Report This Post
Expert
posted Hide Post
joe, how about just taking the variable and letting your fex uppercase it?
NEWSTATE/A2=UPCASE(2,OLDSTATE,'A2');
there is a javascript way to upper case your variable before it gets passed to your fex,
but just do it in the fex; Work??

yes, do what Carolyn says below.
make OLDSTATE your &VAR
DEFINE FILE whatever
NEWSTATE/A2=UPCASE(2,&STATE,'A2');
END
..then in your heading
"STATE = [NEWSTATE"
(that [ mark is really left pointed bracket, but this board wont accept them. ok?)
see, that lpbracket means get the value from the data.
sometimes you need to make the variable a byfield with noprint (BY NEWSTATE NOPRINT)
but in this case since its the state value in your extract, you might not need to make it a BY field.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Joe Filtz>
posted
Susannah:

Thanks for the response. That can work but I don't know how the code works (see below for actual code snippet). For example, it appears that the where command and the input prompt are contained in the same where command. How could I modify the code to put the 'newstate' code in?
NEWSTATE/A2=UPCASE(2,OLDSTATE,'A2');

Thanks...joe
*************************************************

HEADING
"Service Contact - search results by State"
"State=&State"
" "
WHERE ( STATE EQ
'&State.State (2 letter abbreviation - uppercase).'
);
 
Report This Post
<Carolyn>
posted
Joe,
Try adding this DEFINE to your EXEC:

DEFINE
UPSTATE/A2=UPCASE(2,OLDSTATE,'A2');
END

then use UPSTATE in your test.
 
Report 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     Converting variables to uppercase using AutoPrompt

Copyright © 1996-2020 Information Builders