User Tools

Site Tools


setlogoutoff_turn_off_logout_for_all_relationmanagers_in_transaction_list_.htm
Navigation:  ABC Library Reference > TransactionManager > TransactionManager Methods >====== SetLogoutOff (turn off logout for all RelationManagers in transaction list) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetLogoutOff( )

blk2blue.jpg

SetLogoutOff Turn off default logout setting in all RelationManagers stored in TransactionManager list queue

SetLogoutOff is used to set the default logout setting in the appropriate RelationManager objects contained in the protected TransactionManagerQueue to OFF. This allows the TranactionManager to control the tranaction process through its own properties and methods.

Implementation:

The SetLogoutOff method loops through the list of RelationManager objects listed by the TranactionManager, saves the appropriate status of the RelationManager's UseLogout property, and sets the UseLogout property to FALSE. It is internally called by the Start method, or may be called explicitly in a process where multiple transactions with batches of records may occur, and the continued call to the Start method for each batch does not need to continually reset the UseLogout property.

Example:

TransactionManager.Start        PROCEDURE()

I       LONG,AUTO

RetVal  BYTE,AUTO

CODE

   IF SELF.TransactionRunning THEN RETURN Level:Fatal.

   IF SELF.AutoLogoutOff

      FREE(SELF.UselogoutList)

      SELF.LogoutOff = True

   END

   FREE(SELF.RMList)

   LOOP I=1 TO RECORDS(SELF.Files)

        GET(SELF.Files,I)

        IF NOT ERRORCODE()

           IF SELF.AutoLogoutOff

              SELF.SetLogoutOff(SELF.Files.RM)

           END

           RetVal = SELF.AddFileToLogout(SELF.Files.RM,SELF.Files.Cascade)

           IF RetVal<;>Level:Benign

              BREAK

           END

        END

   END

See Also:     RestoreLogout

setlogoutoff_turn_off_logout_for_all_relationmanagers_in_transaction_list_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1