View previous topic :: View next topic
|
Author |
Message |
Deepak KM
New User
Joined: 14 Jun 2012 Posts: 13 Location: India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Deepak KM
New User
Joined: 14 Jun 2012 Posts: 13 Location: India
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Marso has created hyperlinks to the appropriate manuals in this post |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
at first i was going to be helpful, but since you are another of those
unskilled IBM employees
ycgsyaihtnnhybtygf |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
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 |
|
|
Deepak KM
New User
Joined: 14 Jun 2012 Posts: 13 Location: India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
its a privilege for me to be a part of IBM !!
|
i am sure! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
|