Home > Ask the AS/400 Experts > Questions & Answers > Automatic refresh on display
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Automatic refresh on display

John Brandt EXPERT RESPONSE FROM: John Brandt

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site
>
QUESTION POSED ON: 28 October 2004
I'm trying to create a screen (subfile) to display inventory information. I realize that the automatic refresh screen is more efficient than pressing F5 (refresh). I think WRKACTJOB has a function key F19 (automatic refresh) that I'd like to use. Unfortunately, I have no idea if this is available on my system.

>
The simple way is to set up second display file (duplicate of the main display file) that will only be used when the user hits the function key F19. Your program should drop into a loop that reads the second display file, rather than doing an EXFMT, use a write, then a read to the display file. This read will be against the second display file created like this:

 CRTDSPF FILE(MYLIB/SECONDDSPF) SRCFILE(MYSRCLIB/QDDSSRC) WAITRCD(15) 

This will cause your program to wait for 15 seconds before returning. When the file returns, check to see if the user hit F3 or F12. If they did, drop back to the original routine. If not, reload the subfile and write/read again.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts