Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Protect a field in Panel

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Protect a field in Panel
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    Post subject:
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    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Thu Aug 16, 2012 11:57 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Fri Aug 17, 2012 1:36 am    Post subject: Reply to: Protect a field in Panel
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Sat Aug 18, 2012 2:11 pm    Post subject: Reply to: Protect a field in Panel
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 24 Tue Dec 06, 2016 8:04 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us