View previous topic :: View next topic
|
Author |
Message |
manigadu
New User
Joined: 29 Aug 2008 Posts: 10 Location: Bangalore
|
|
|
|
my panel is like this:
)ATTR
_ TYPE(INPUT) INTENS(HIGH) COLOR(RED)
% TYPE(TEXT) INTENS(LOW) SKIP(ON)
+ TYPE(TEXT) INTENS(HIGH) SKIP(ON) PAD(_)
)BODY
%
%Field 1 : _field1
%
%Field 2: _field2
)END
I know that after entering some value to the field1, the cursor automatically goes to field2. But I want my field1 accept 2 lines of data. But after completing the first line, it automatically goes to field 2, Please help in doing this. |
|
Back to top |
|
|
kacks7
New User
Joined: 22 Sep 2010 Posts: 33 Location: chennai(india)
|
|
|
|
hi
remove the '%' in the 3rd line of the body section.
Code: |
)ATTR
_ TYPE(INPUT) INTENS(HIGH) COLOR(RED)
% TYPE(TEXT) INTENS(LOW) SKIP(ON)
+ TYPE(TEXT) INTENS(HIGH) SKIP(ON) PAD(_)
)BODY
%
%Field 1 : _field1
%Field 2: _field2
)END
|
|
|
Back to top |
|
|
manigadu
New User
Joined: 29 Aug 2008 Posts: 10 Location: Bangalore
|
|
|
|
Thank you very much kacks5, I am learning REXX, and may be you think my questions are very basic. But REXX is really interesting.
I have another question. In any normal ispf panel, the input field contains
a blank (________________) when nothing is entered. Where we can overwrite our data. How can we do that in the REXX Panel? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you would find info easier in the manuals if you would not refer to panels as rexx panels - since they are not.
This is a link to the z/OS ISPF Library. I would start with the dialog devel guide, which discusses ISPF PANELS.
although they will not help you very much understanding ISPF Panels (above reference) the following are libraries and documents concerning REXX:
This is all REXX documents.
This is the REXX Reference Manual
and
this is the REXX User's Guide |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
I think you were asking about underscores. Try this:
Code: |
)ATTR
_ TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) HILITE(USCORE) |
|
|
Back to top |
|
|
kacks7
New User
Joined: 22 Sep 2010 Posts: 33 Location: chennai(india)
|
|
|
|
hi manigadu,
for more details go through the manuals posted by 'dick'.
Code: |
_ TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) HILITE(USCORE) |
we can also use the following.
Code: |
_ TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) PAD(_) |
replace the '_' winthin the brackets of PAD with whatever u want. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
Please do not use PAD(_) .
You may think it is trivial, but it makes it hard to type in your field. If you make a mistake and need to insert a character, you cannot without deleting your '_' at the end of the string. |
|
Back to top |
|
|
manigadu
New User
Joined: 29 Aug 2008 Posts: 10 Location: Bangalore
|
|
|
|
Thanks Pedro, Any way I have used
_ TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) HILITE(USCORE)
and it is working. Thanks once again and you guys are giving a good motivation for me to learn more about REXX.
Thanks a lot !! |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
Quote: |
good motivation for me to learn more about REXX. |
This was an ISPF discussion, not a rexx discussion. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
But, by all means - learn more of both
d |
|
Back to top |
|
|
kacks7
New User
Joined: 22 Sep 2010 Posts: 33 Location: chennai(india)
|
|
|
|
hi pedro,
Quote: |
Please do not use PAD(_) .
|
could you please explain more... |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
repeating:
You may think it is trivial, but it makes it hard to type in your field. If you make a mistake and need to insert a character, you cannot insert without deleting your '_' at the end of the string. |
|
Back to top |
|
|
kacks7
New User
Joined: 22 Sep 2010 Posts: 33 Location: chennai(india)
|
|
|
|
hi Pedro,
got your point. thank you. but a doubt, incase if i want to make a line with any other character like '.' instead of uscore what i need to use.?? |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
Pedro wrote: |
Please do not use PAD(_) .
You may think it is trivial, but it makes it hard to type in your field. If you make a mistake and need to insert a character, you cannot without deleting your '_' at the end of the string. |
completely agree... pretty (?) BUT annoying |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
I think I know what you are asking...
Multiple choice action lists should use USCORE. Use HILITE(USCORE)
Single choice action lists should use a period. use PAD(.) Only the selection field should have the pad.
There is a tradeoff in giving the user a visual clue about the use the list. This is the only case that I can think of to use PAD(.) instead of HILITE.h |
|
Back to top |
|
|
|