Page 1 of 1

Determine a sized of input field

PostPosted: Mon May 10, 2010 11:21 pm
by kaky
hello,
i'm trying to build ispf screeen that has 3 input fields. each one should contain only 4 chars.
i defined the attribute something like that:
_ type(input) color(blue) hilite(uscore)
and i want it to have a width of 3 chars.
for some reassons, only combobox listbox etc. have the option to determine the width of the field.

Is there any option to set width of regular input field ?

thanks !

Re: Determine a sized of input field

PostPosted: Tue May 11, 2010 12:00 am
by Bill Dennis
Enforce the width by making the field variable name 4 bytes in the panel source.

    Item ====>_AAAA+


Re: Determine a sized of input field

PostPosted: Tue May 11, 2010 12:09 am
by kaky
what is the + in the end of line ?
what does it mean ?

Re: Determine a sized of input field

PostPosted: Tue May 11, 2010 5:35 am
by enrico-sorichetti
for some reassons, only combobox listbox etc. have the option to determine the width of the field.

nothing could be more wrong

the only reason for that statement would be not having looked at the manuals
here is a link to the ispf bookshelf
http://publibz.boulder.ibm.com/cgi-bin/ ... s/ISPZPM61

the field length is automagically determined by the attribute that follows any field
look at the manuals for the default values or use the MODEL command for samples

Re: Determine a sized of input field

PostPosted: Tue May 11, 2010 9:04 pm
by kaky
i didn't find the answer for my question.
i just want to put one field (not a repetable field by the number of the rows that should be in the table) that its length is 3 chars only.
in model section, as i understood, there is no place to determine width. only the concept of the table design and how each row would be.

There is not width paramter for regular input field.

Re: Determine a sized of input field

PostPosted: Tue May 11, 2010 9:43 pm
by MrSpock
In your panel definition, do you have the line(s) like:

)Attr Default(%+_)
% TYPE(TEXT) INTENS(HIGH)
+ TYPE(TEXT) INTENS(LOW)
_ TYPE(INPUT) INTENS(HIGH) CAPS(ON) JUST(LEFT)

As was mentioned before, you can use one of text attributes (+ or % by default) at the end of an input or output field to set it's length.

Re: Determine a sized of input field

PostPosted: Tue May 11, 2010 10:39 pm
by kaky
thanks, i will check it.

Re: Determine a sized of input field

PostPosted: Thu May 13, 2010 12:28 am
by kaky
thank you very much,
Another thing the i want to know -
i have a screen with field. when ? is placed on the field - new table panel opened . I want the user to choose his item and pass it to the field in the first screen.
i thought about vput and vget . Is there better way to send variables between two screens ? especially with one that already open ?