IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Case Conversion
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
RB
Gold member
Posted
Hi,

I have a text input box in my html page and the users enter either lowercase or the uppercase. I need to pass this parameter in to WHERE statement in my FEX.


I am having trouble doing that. UPCASE is not working.
 
Posts: 76 | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
Can you post the upcase code and the error message? That will help us figure it out.
 
Posts: 77 | Location: Chicago, IL | Registered: May 06, 2004Reply With QuoteEdit or Delete MessageReport This Post
RB
Gold member
Posted Hide Post
Here you go...

DEFINE FILE CAR
COUNTRY1/A8 = UPCASE(8, &COUNTRY, COUNTRY1);
END

TABLE FILE CAR
....
.....
...
...
WHERE COUNTRY EQ COUNTRY1
END

when I enter country value as "england" for the amper variable, it takes the value in define, but gives me an error telling that
"field name or computational element not recognised:england"
 
Posts: 76 | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
Didn't run this but try putting quote marks around the & variable.
DEFINE FILE CAR
COUNTRY1/A8 = UPCASE(8, '&COUNTRY', COUNTRY1);
END

TABLE FILE CAR
....
.....
...
...
WHERE COUNTRY EQ COUNTRY1
END
Leah C.
 
Posts: 1307 | Location: Council Bluffs, IA | Registered: May 24, 2004Reply With QuoteEdit or Delete MessageReport This Post
RB
Gold member
Posted Hide Post
Hi Leah,

The report does not work if we give the quotes.
It gives the same error as before.

I figured out anyways!

-SET &COUNTRY1 = UPCASE(&COUNTRY.LENGTH, &COUNTRY, 'A8');

-*THIS WOULD CONVERT &COUNTRY PARAMETER TO UPPERCASE AND PASS IT TO &COUNTRY1.
this way we could use it in the where statement

TABLE FILE ..

...
..
WHERE COUNTRY EQ '&COUNTRY1'
END
 
Posts: 76 | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
Silver Member
Posted Hide Post
RB, thanks for the post. What you did worked fine for my FEX. Appreciate it :-)
 
Posts: 41 | Location: Midwest, USA | Registered: October 28, 2004Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
You can also force the case conversion at the HTML level. Assuming you are using TEXT INPUT ...

name="TEXT1"
size="6"
maxlength="6"
onChange="javascript:this.value=this.value.toUpperCase();">[/code]

This message has been edited. Last edited by: <Mabel>,
 
Posts: 26 | Location: Mercy College | Registered: May 06, 2003Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
ooooohhhhh. I LIKE IT! Smiler
THANKS TOM.
 
Posts: 2634 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Case Conversion

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.