View previous topic :: View next topic
|
Author |
Message |
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
I want to VIEW a temporary dataset with an initial macro. The macro makes some formatting changes.
Since it is a temporary file, it I do not want to be bothered by the VIEW Warning panel that is displayed on Exit. How to avoid that panel? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Instead of ISREDIT END, you can use ISREDIT CANCEL.
When using CANCEL, you can control the appearance and absence of the confirmation panel by setting and un-setting the system variable ZPCFMCNP.
O. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Sorry, if my post was not clear. I want to show the VIEWed dataset, but do not wish to see the exit confirmation panel when the user is done.
Thanks to my colleagues, I just learned of the CONFIRM and CHGWARN parameters. They did what I wanted.
Code: |
"VIEW DATAID("dataid") PANEL(mydde2) MACRO(mymacro)",
"CONFIRM(NO) CHGWARN(NO)" |
Also, my initial macro mapped the END command to CANCEL so that the user ends in the customary way:
Code: |
Address ISREDIT
"MACRO"
"DEFINE END ALIAS CANCEL"
"DEFINE EXIT ALIAS CANCEL" |
|
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Pedro,
While in your customised VIEW, if a user invokes another window using the EDIT primary command is the END command still aliased? They might think they are saving changes but not! |
|
Back to top |
|
|
|