| View previous topic :: View next topic |
| Author |
Message |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Feb 27, 2003 6:20 am Post subject: Controlling the Field display dynamically |
|
|
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.
Please advise,
Thanks,
Phantom |
|
| Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Thu Feb 27, 2003 7:12 am Post subject: |
|
|
| Give the fields to hide a different attribute and use the attrib command to change them to what you want. |
|
| Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Feb 27, 2003 7:37 am Post subject: |
|
|
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 |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Thu Feb 27, 2003 7:51 am Post subject: |
|
|
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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Feb 27, 2003 8:32 am Post subject: |
|
|
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 |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Thu Feb 27, 2003 8:42 am Post subject: |
|
|
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 |
|
 |
DaveyC Moderator

Joined: 02 Dec 2002 Posts: 151 Topics: 3 Location: Perth, Western Australia
|
Posted: Thu Feb 27, 2003 10:47 am Post subject: |
|
|
Anything is possible with a dynamic area, enough said... _________________ Dave Crayford |
|
| Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Fri Feb 28, 2003 2:38 am Post subject: |
|
|
| 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 |
|
 |
|
|
|