Ticket #155 ( Closed )

Short Description Setting the size of input fields
Entered By: snigg When: 1998-09-21 10:47:44 Build: 1.03.07A
Categories Type: Question   Department: Product   Category: HTML Generation
Is there a way to set the size of the input fields in the devcenter? I was looking at the global assumptions and i'm guessing maybe it can be done with the TEDATA input settings.
Append By: LifeGuard  When: 1998-09-21 11:47:08  New Status: Pending Customer
Comment There are several ways to change the size of an input field.

First is the standard HTML tag. For example, <input type="text" name="MyInput" size=20>. You can then use the appropriate function to send this variable to the host.

The TEDATA tag will send a defined area of a screen starting at the row column values and ending after the defined offset. So, for an input field at screen position row=24 column=16 that is 63 characters in length you would say <TEDATA 24 16 63 AS INPUT>.

From your question, I assume you wish to decrease the size of the input field. So, using the example above, you would simply display less then the full 63 characters of this input field (say 30) like so...
<TEDATA 24 16 30 AS INPUT>.

Displaying more then the number of characters defined in the screen could cause some troubles since the host may not be able to accept a longer string as input.

I hope this helps Mike

Append By: WindSurfer  When: 1998-11-09 22:43:17  New Status: Pending Customer
Comment Did you resolve this issue? We'd like to close the ticket if it is no longer required to be open...

Also, in reviewing it I wondered if you were working with a screen that is not field-formatted, as this is true for many output-only screens, where a "field" is just any streamed-out portion of the screen that is the same attributes as the surrounding screen. When this is the case you can set the screen mode to tokens instead of fields, and get a better "field" definition...but may still need to edit the generated tags.