In order for this site to work correctly, and for us to improve the site, we need to store a small file (called a cookie) on your computer.
By continuing to use this website, you agree to our cookies and privacy policy.
  
Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel

Reader's Clinic - Dynamic Screen Display

Mr A. Gordon of St. Helier writes - "How do I get AREV to display a screen dynamically like the DICT window depending on the contents of a record?

This is actually a lot easier than may at first seem. When you look at the prompts in a screen they are numbered sequentially internally, so that Alt-A in PAINT would show you the key as prompt 2 etc. To tell the system to display a screen with specific prompts you need to load the numbers of the prompts into an @FM delimited variable called WC_Redisplay_List% and set WC_Display_Action% to 7 to tell the system to redisplay all. This can be done on a post-prompt or a post read.

Thus on a post prompt we could check if invoices were present and if they were, include the field showing invoices, but if they were not omit this field. E.G. if Key was prompt 1, name 2 and invoices 3


0001  If {INVOICES} Then
0002        WC_Redisplay_List% = 1:@FM:2:@FM:3
0003        WC_Display_Action% = 7
0004  End Else
0005        WC_Redisplay_List% = 1 :@FM : 2
0006        WC_Display_Action% = 7
0007  End

(Volume 1, Issue 2, Page 3)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel