ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Readc

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

  • Readc

    It's been a good while since I looked at code this old.. Data gets entered on a subfile screen but when the program gets to the READC command, the indicator doesn't get set indicating a changed record. I tried to follow the program to see if a READC was being done before this one but I don't that. I would have thought that the READC would find a changed record since data was typed into the subfile. Someone help me refresh my memory, why wouldn't this record be flagged that it was changed?

  • #2
    Re: Readc

    Does the user press a function key or enter after changing data. If a function key then look at to see if the key is FA or not.
    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

    Comment


    • #3
      Re: Readc

      Prob the record level SFLNXTCHG kwd is missing on the SF data.
      Philippe

      Comment


      • #4
        Re: Readc

        The user fills out the header info, then tabs down to the subfile and enters item and qty then presses enter. SFLNXTCHG is on the SF.

        Comment


        • #5
          Re: Readc

          The other funny thing is, if I changed something in the subfile and hit enter again, it will now pick up the change. Why doesn't it pick up the initial entry as a change? Weird.

          Comment


          • #6
            Re: Readc

            Is the indicator associated with SFLNXTCHG on ?
            Philippe

            Comment


            • #7
              Re: Readc

              Originally posted by ljv_as400
              It's been a good while since I looked at code this old.. Data gets entered on a subfile screen but when the program gets to the READC command, the indicator doesn't get set indicating a changed record. I tried to follow the program to see if a READC was being done before this one but I don't that. I would have thought that the READC would find a changed record since data was typed into the subfile. Someone help me refresh my memory, why wouldn't this record be flagged that it was changed?
              Which indicator are you looking at being set? I cant really tell if you are talking about the readc indicator, or you are possibly looking at the slfnxtchg indicator. The SFLNXTCHG indicator wont be set unless it is set in the program, and doesnt need to be set if the data was actually changed in the subfile. The ReadC will pick up any actual changed records in the subfile. The SFLNXTCHG keyword will force the record to be picked up by the readc whether it was changed or not.
              Michael Catalani
              IS Director, eCommerce & Web Development
              Acceptance Insurance Corporation
              www.AcceptanceInsurance.com
              www.ProvatoSys.com

              Comment


              • #8
                Re: Readc

                We are missing some piece of information here. The way you describe the situation, the changed record should be read when you do the READC the first time. SFLNXTCHG has nothing to do with this situation. How about posting some of the DDS and some of the program?

                Comment


                • #9
                  Re: Readc

                  If you are entering the data from screen that time you have to READC Subfile record after that in that loop .... you have to execute SFLNXTCHG(this keyword must add with some specific indicator in display file) after coding SFLNXTCHG again do READC the record will change.
                  please insert the code if possible then exactly we can check it.

                  Comment


                  • #10
                    Re: Readc

                    Just a guess here but are you re-loading the subfile when the control gets changed? (before testing for readc)

                    Best of Luck
                    GLS
                    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

                    Comment

                    Working...
                    X