Subfile not displaying properly

pts.
Tags:
Application development
I am having a problem with my subfile not displaying properly. I my application, I have two scrollable subfiles displayed. The user can select several vendors and then display a list of checks sent to that vendor in a sequential manor (meaning if the user presses enter, the next vendor selected?s checks are displayed). This is functioning very well but, if a vendor with several checks to be displayed, is displayed just before a vendor with no checks on file, the previous vendors checks are visible, they are not cleared when the ?No checks for this vendor? notification is displayed. Here is what the resulting display looks like: VEND# VENDOR 00283 X & X LLC NO CHECKS FOUND FOR THIS VENDOR 27 / 08 / 2003 173732 REPAIRS TO: 30 HP $685.00 3131 27 / 08 / 2003 173732 REPAIRS TO: 200 HP $825.00 3132 12 / 07 / 2006 117514 MOTOR REPAIR $325.00 4193 13 / 12 / 2006 123838 30 HP GE EL. VERTI $1,100.45 4229 + Even the `+? sign is still visible indicating more checks (but pgup/pgdown has no effect- acting as it should for the no-checks vendor). I am using the following to clear my subfile before each new subfile is built and displayed (and the flags in the DDS are set appropriately to activate SFLCLR). 0579.00 C SETON 71 0580.00 C WRITE CHKCTL 0581.00 C SETOFF 71 Here is what the entire screen looks like so you can get an idea of how the DDS is build. VNDACTL VENDORS LISTED BY VENDOR NAME 3/15/07 SEARCH: 13:51:28 BELOW (C/M) ENTER C TO DISPLAY CHECKS OR M TO DISPLAY MAILING ADDRESS C/M VENDOR NAME NUMBER ADDRESS 1 CITY ST *DO NOT USE* SEE 20805 20800 MORRISON HOME C HOUMA LA "A" CAJUN ELECTRIC CO., 00141 P. O. BOX 597 BOURG LA A & A AWARDS 00284 1013 ST. MARY S THIBODAUX LA A & A CLEANERS AND LAUN 00155 107 PATTERSON S HOUMA LA C A & B ARMATURE WORKS, I 00285 P. O. BOX 3094 HOUMA LA C A & B LLC 00283 903 KENNEY ST HOUMA LA + VEND# VENDOR 00283 A & B LLC NO CHECKS FOUND FOR THIS VENDOR 27 / 08 / 2003 173732 REPAIRS TO: 30 HP $685.00 3131 27 / 08 / 2003 173732 REPAIRS TO: 200 HP $825.00 3132 12 / 07 / 2006 117514 MOTOR REPAIR $325.00 4193 13 / 12 / 2006 123838 30 HP GE EL. VERTI $1,100.45 4229 + F3 - EXIT F5 - LIST BY VENDOR NUMBER PAGEDOWN/UP - SCROLL RECORD ENTER - CONTINUE or NEXT REQUEST Please let me know if you have any idea what might be causing this problem. Thanks for whatever help you can offer.

Answer Wiki

Thanks. We'll let you know when a new response is added.

in the DDS for the “No checks to display” format do you have ERASE(FMT) where FMT is the check list format name.

The problem is in overlaying the “No checks…” there is nothing on the following lines to clear them. FMT can be the name of the format you are writing, if you use the same one for “No checks…” and the check list. It just erases previous one from the screen.

BTW:you might need to also add USRRSTDSP as well

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • RickSavoy
    Thanks for your reply BigKat :)) I tried what you suggested by adding the following lines to my DDS control FMT (CHKCTL) conditioned to execute at the same time as SFLCLR, but got the same results as before. 0092.00 A 71 SFLCLR 0093.00 A 71 ERASE(CHKRCD) I also attempted to use USRRSTDSP as you suggested but since the subfile is not in a window, the DDS would not compile. Shortly after submitting this request (after working on it for a week, go figure) I found a hint on the Internet and tried it and it worked! I created another record FMT in my DDS with blank lines to cover only the check listing. I then wrote the new record FMT when my no-checks-found indicator was on. This worked perfectly! I had not tried this because everything I read told me I could not overlay a subfile display. Apparently this works for me in this case because no subfile record was written, only the control FMT. Thanks again for your help!! p.s. If anyone has a better way to solve this problem, please let me know.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following