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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EIS text box

Status
Not open for further replies.

dmaytum

Programmer
Mar 4, 2003
23
0
0
US
I'm getting a limit from a text box control on an EIS. When the user enters something into this textbox and then hits enter, Brio moves the cursor to the next line in the text box. Is there any way to change this behavior so the cursor moves to the next control.

Because the text box is only 1 line tall, it looks like the value in the textbox has been erased so users enter another value. Now there are two values in the text box on 2 different lines.

Otherwise, is there a way to limit how many characters a user can enter in the textbox??
 
(for the example, create a textbox1 field.)

Add dcript behind TextBox1 (onChange() evt) - Checks for carriage returns, if one is entered, an alert
prompts the user to use the Tab Key instead of the Enter Key.

To test this, enter a few characters into TextBox1 and press the enter key.


var myStr = TextBox1.Text;
var myBit = myStr.charCodeAt(myStr.length-1);
Console.Writeln("1")
if(myBit==10)
{
var newBit = myStr.slice(0,myStr.length-2);
TextBox1.Text = newBit;
Alert("Please use the Tab key instead of Enter","You hit the Enter key");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top