Reset window prompts to defaults? (AREV Specific)
At 02 JUN 1999 01:26:05PM Michael Slack wrote:
We have an AREV 3.12 window that will change the "Entry Type" settings of certain prompts based on the data in a given prompt. The problem comes when another row is to be processed after this happens during the same window session. The prompts have not reverted back to thier initial "Entry Type" (Required, Optional, Protected, …) settings.
Is there any way within a windows session to reset all of the prompts to thier default Entry Type and color settings as if it was the first time using the window?
I've done some searching in this Online Discussion area and read about the WC_DISPLAY_ACTION%=REDISPLAY_ALL$. The REDISPLAY_ALL$ only seems to relate to the data portion of the screen (as far as I can decipher the Windows Common Reference manual). Is there some trigger that will reset all of the prompts to thier default value. So that no matter how a window is modified during the last row processed that right before another row is about to be processed, the window is reset to its default settings as if it is the first row to be processed.
I can write a small subroutine to read from the Windows table the current window and set all of the prompts to thier default Entry Type and color. That is something if all else fails.
Thank you for your time.
Michael Slack
At 02 JUN 1999 10:55PM Matt Sorrell wrote:
Michael,
Something else you might want to try is placing the original values into variables, then when you need to reset the prompt attributes, you can restore them from these variables instead of having to read from disk.
Matt Sorrell
msorrell@movgal.com
At 03 JUN 1999 02:32AM amcauley@sprezzatura.com onmouseover=window.status=why not click here to send me email?;return(true)", [url=http://www.sprezzatura.com" onMouseOver=window.status=Why not click here to visit our web site?';return(true)]Sprezzatura Group[/url] wrote:
REVMEDIA FKB to the rescue….
¦* Title Uncommon Knowledge - WC_W%
¦———————————————————————
¦ A dimensioned array containing all of the prompt details for the current
¦ window. It is dimensioned to WC_W_Cnt%. Once loaded the WC_W%() array
¦ maintains the same values for the life of the window unless a
¦ WC_Display_Action%=7 is encountered. If WC_Display_Action% is set to 7
¦ then all changes made to WC_W%() in this session will be discarded and
¦ WC_W%() will be set back to the original values when the window was loaded.
¦ To avoid this, modify the WC_Prompts% array instead and then issue a
¦ WC_Display_Action%=7. This causes WC_W%() to be reloaded from WC_Prompts%.
¦
¦
¦ (Volume 3, Issue 10, Page 15)
amcauley@sprezzatura.com
World Leaders in all things RevSoft