Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uppercasing parameters

Status
Not open for further replies.

cjaye

Programmer
Joined
Nov 9, 2005
Messages
2
Location
US
I would like to know how to uppercase a parameter in a Browser Scripting Control on a Request Page. Please be as specific as you can, as I am a new user to Actuate 7. Thank you.
 
Override the BrowserCode function of the control.
Something like:

Function BrowserCode( ) As String
BrowserCode = Super::BrowserCode( )

Dim strNL As String

strNL = Chr$(10)
BrowserCode = "<INPUT TYPE='text' NAME='Storeroom'
id='Storeroom' VALUE='" & loc & "' onkeyup='return
formKeyPress(event, this);'></INPUT>" & strNL
BrowserCode = BrowserCode & "<script
language='javascript'>" & strNL
If Not(loc = "") Then
BrowserCode=BrowserCode & "cookieUpdate
('Storeroom');"& strNL
Else
BrowserCode=BrowserCode & "fieldUpdate
('Storeroom')" & strNL
End If
BrowserCode = BrowserCode & "function formKeyPress
(evt, thisObj)" & strNL
BrowserCode = BrowserCode & "{ thisObj.value = thisObj.value.toUpperCase(); }" & strNL
BrowserCode = BrowserCode & "</script>" & strNL
End Function

I hope this helps a bit.

Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top