IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Protect a field in Panel


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepak KM

New User


Joined: 14 Jun 2012
Posts: 13
Location: India

PostPosted: Thu Aug 16, 2012 11:23 pm
Reply with quote

Hello

Is it possible to make some input fields inactive based on some condition. Just for an eg. sake, am taking a simple scenario here. I have a requirement to add upto 5 numbers. I've one panel to get how many numbers user needs to add and next panel will have 5 input fields.

Suppose, If the user wants to add only 3 numbers to be added, I need to make rest of 2 fields inactive (user shud not be able to enter any input) in next panel and if user wants to add 2 numbers, then 3 fields shud be inactive and so on...

Is this possible to achieve so that we can avoid writing 4 different panels for the 4 combination ?

Many Regards
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 16, 2012 11:30 pm
Reply with quote

yes, all you have to do is change the attribute for the fields that you do not want to display.

but, instead of 2 panels, why not just check and see if there is input in a field,
and if none, set its corresponding variable to zero?
Back to top
View user's profile Send private message
Deepak KM

New User


Joined: 14 Jun 2012
Posts: 13
Location: India

PostPosted: Thu Aug 16, 2012 11:50 pm
Reply with quote

Quote:
yes, all you have to do is change the attribute for the fields that you do not want to display.


Could you please explain a bit or link to any stuffs which i can refer to? By changing the attribute to what, I can achieve this. Sorry, If I'm being too dumb.. am a newbie to REXX..

Quote:
but, instead of 2 panels, why not just check and see if there is input in a field, and if none, set its corresponding variable to zero?

Well, this is not actually my scenario. I just took it for easiness of explanation, coz my requirement demands to have a panel which has to take an input from user and based on that it has to capture the input
and then write to an output file. so setting the var to zero can yield undesirable results.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Aug 16, 2012 11:57 pm
Reply with quote

Deepak KM wrote:
Quote:
yes, all you have to do is change the attribute for the fields that you do not want to display.


Could you please explain a bit or link to any stuffs which i can refer to? By changing the attribute to what, I can achieve this. Sorry, If I'm being too dumb.. am a newbie to REXX..

This is not Rexx at all, but DMS. You want to use the .ATTR control variable to change the field type from INPUT to OUTPUT.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 17, 2012 12:02 am
Reply with quote

Marso has created hyperlinks to the appropriate manuals in this post
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 17, 2012 12:13 am
Reply with quote

at first i was going to be helpful, but since you are another of those
unskilled IBM employees
ycgsyaihtnnhybtygf
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 17, 2012 12:21 am
Reply with quote

but for others that may be reading this thread
and would like to learn a little about the rules
of user interaction:

you don't have 1 screen to input the amount of input
and then another to input the indicated amount of input

1. if the user changes his/her mind,
how can the user change the input amount?

2. you check the input fields,
and if there is no input, there is no input.

This is an rookie philosophy to demand how much is going to be input from the user,
driven by the lack of technical skill of the coder
in an attempt to make life easier to code.

life in the real world is not done that way.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Fri Aug 17, 2012 1:36 am
Reply with quote

Quote:
This is an rookie philosophy to demand how much is going to be input from the user,


I agree it would be foolish to ask the user and then try to enforce it on his behalf.

But the concept of not allowing input to some fields has merit, though it is more likely to be situation based. For example, the owner of an object might see a userid field to grant permissions, where a mere reader of an object should not see that field (which gives the impression that granting permissions is allowed).
Back to top
View user's profile Send private message
Deepak KM

New User


Joined: 14 Jun 2012
Posts: 13
Location: India

PostPosted: Fri Aug 17, 2012 6:08 pm
Reply with quote

dbzTHEdinosauer wrote:
at first i was going to be helpful, but since you are another of those
unskilled IBM employees
ycgsyaihtnnhybtygf


If some one is learning or trying to understand something new doesn't mean he/she is unskilled. My primary area of concentration is not on ISPF Panels/Rexx. I started to learn it by myself hardly 8 or 10 months back. and yes, I'm comparatively new to this compared to you. You might have tons of experience and I respect that. I believe its just matter of time which makes anyone perfect.

Quote:
but for others that may be reading this thread
and would like to learn a little about the rules
of user interaction:


In my OP I told that I took it as an example for explanation. Infact that exactly is not my requirement. And in my 2nd post I clearly mentioned
"...my requirement demands to have a panel which has to take an input..." Wish you had read it carefully. My actual requirement is something bit more than this and I must have a separate panel for getting the input !

anyway thanks for the help..

and, last but not least..its a privilege for me to be a part of IBM !!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 17, 2012 6:10 pm
Reply with quote

Quote:
its a privilege for me to be a part of IBM !!


i am sure!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sat Aug 18, 2012 2:11 pm
Reply with quote

Quote:
its a privilege for me to be a part of IBM !!


it is a pity that You are doing little to earn it !

IBM employees, whether You like it or not, are not supposed to ask for help on a public forum(*),
there are plenty of IBM internal forumsresources to satisfy Your thirst for knowledge and help

(*) confirmed from a high ranking IBM employee in some private email exchanges I had with him
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts Call program, directly from panel CLIST & REXX 9
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
Search our Forums:

Back to Top