MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Controlling the Field display dynamically

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Feb 27, 2003 6:20 am    Post subject: Controlling the Field display dynamically Reply with quote

I have a panel where I have few fields and a command line. When I type some command say "HIDE" in the command line some fields should become invisible and when I type "SHOW" in the command line the fields should be displayed again.

Is it possible with Dynamic Areas. Note : the fields are not displayed 1 after the other in a top down fashion. They are displayed left to right.

Code:

FIELD1       FIELD2         FIELD3         FIELD4


Fields 1 & 2 should be made invisible when the command is entered.

Code:

                                    FIELD3         FIELD4


Please advise,
Thanks,
Phantom
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Feb 27, 2003 7:12 am    Post subject: Reply with quote

Give the fields to hide a different attribute and use the attrib command to change them to what you want.
Back to top
View user's profile Send private message Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Feb 27, 2003 7:37 am    Post subject: Reply with quote

Warp,

Can you please tell me how to use the Attrib Command. In our shop, the Help for the attrib command says...

Code:

THE ATTRIB COMMAND ALLOWS DCB PARAMETERS TO BE DYNAMICALLY       
INTRODUCED AND NAMED FOR USE WITH A SUBSEQUENT ALLOCATE COMMAND.


A piece of code will be real help to me.

Thanks for your help.
Phantom
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Thu Feb 27, 2003 7:51 am    Post subject: Reply with quote

Phantom

Give every field a different attributes, or at least for those who are candidats for hide. For Example:
Code:
@FIELD1      @FIELD2        @FIELD3         #FIELD4


In the )PROC section, ask for user response, for example:
Code:
 IF &USERRESP = 'HIDE'
    .ATTRCHAR(@) = 'INTENS(NON)'


For more information about panels and dialogs, look at the 'ISPF Dialog Developer's Guide and Reference' in the following link.
________
M106


Last edited by ofer71 on Sat Feb 05, 2011 10:55 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Feb 27, 2003 8:32 am    Post subject: Reply with quote

Sorry Ofer,

But my intention was not this. If I specify INTENS(NON), the field data in the field will be invisible, ie it works something like a Password field. But, If I Use TAB Key the cursor stops in that field even though the field is not displayed. But, I want to remove the field from the Panel during runtime, Have a field when required and remove it from Panel when not necessary.

Thanks for your help,
Phantom
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Thu Feb 27, 2003 8:42 am    Post subject: Reply with quote

If you want to prevent the TAB skipping, change the next attribute to SKIP(OFF).
________
MB5


Last edited by ofer71 on Sat Feb 05, 2011 10:55 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Thu Feb 27, 2003 10:47 am    Post subject: Reply with quote

Anything is possible with a dynamic area, enough said...
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Feb 28, 2003 2:38 am    Post subject: Reply with quote

Phantom, to start with you need to get the differences between the environments straight. You looked for a panel command in tso, so naturally you did not find what you were looking for. Granted, I should have said attrchar command, but all I wanted to do is get you pointed in the right direction, the details should be done by you.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group