Determine a sized of input field



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Determine a sized of input field

Postby kaky » Mon May 10, 2010 11:21 pm

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 !
kaky
 
Posts: 5
Joined: Mon May 10, 2010 11:14 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Determine a sized of input field

Postby Bill Dennis » Tue May 11, 2010 12:00 am

Enforce the width by making the field variable name 4 bytes in the panel source.

    Item ====>_AAAA+

Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Determine a sized of input field

Postby kaky » Tue May 11, 2010 12:09 am

what is the + in the end of line ?
what does it mean ?
kaky
 
Posts: 5
Joined: Mon May 10, 2010 11:14 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Determine a sized of input field

Postby enrico-sorichetti » Tue May 11, 2010 5:35 am

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Determine a sized of input field

Postby kaky » Tue May 11, 2010 9:04 pm

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.
kaky
 
Posts: 5
Joined: Mon May 10, 2010 11:14 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Determine a sized of input field

Postby MrSpock » Tue May 11, 2010 9:43 pm

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.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Determine a sized of input field

Postby kaky » Tue May 11, 2010 10:39 pm

thanks, i will check it.
kaky
 
Posts: 5
Joined: Mon May 10, 2010 11:14 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Determine a sized of input field

Postby kaky » Thu May 13, 2010 12:28 am

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 ?
kaky
 
Posts: 5
Joined: Mon May 10, 2010 11:14 pm
Has thanked: 0 time
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post