ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Display file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Display file

    Hi all,

    I have display file having a record format and a subfile.

    In the record format(first screen) If I give invalid date range it is showing the error message. For example if I give 2007/01/01 to 2007/01/30 it is checking the records in database file and displaying the error message "Records not available for the given Date Range" in the first screen.

    Then I am refreshing the screen and If I hit enter it is fetching all the records from the file and displaying the subfile.

    Again If I give the above date range it is not throwing the error message.
    I am not using any field for Error message, I am simply turn on the indicator
    to populate the message. The message is getting populated when the first time but not in second time.

    how can I resolve this?

    Muthu
    Miles to Go, Before I sleep.

  • #2
    Re: Display file

    short and quicker way to see why this is happening is to put the program in debug, recreate the situation and see where the program control goes when you hit enter or refresh the second time

    that will help you see where the problem is

    Comment


    • #3
      Re: Display file

      I think your gonna have to post some code so we can see whats going on...


      jamie
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: Display file

        look carefully at the indicator. you must be forgetting to switch off the indicator the first time OR you are not switching on the indicator the second time

        Comment

        Working...
        X