Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

DBCommitAll

DBCommitAll() --> Nil

Documents flushing updates and scope across work areas.

DBCommitAllAdvPL
01 · OVERVIEW

Overview

The DBCommitAll page contains an editorial inconsistency: its summary mentions the current area, while its example opens and changes two areas before the global call. Do not use it to isolate one operation’s confirmation. The reference returns Nil and does not establish outer-transaction completion. To avoid flushing unrelated changes in a demonstration, the example only prepares an uninvoked callback. EDTRB identifies only an owned test table already open with the required schema and permissions; examples are not intended for standard tables. (TOTVS, n.d., ref. 1)

02 · SYNTAX

Syntax

DBCommitAll() --> Nil

Return value

Nil; not a logical success indicator.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed327()
    Local bFlush
    // Global action: do not invoke merely to demonstrate the API.
    bFlush := {|| DBCommitAll()}
Return Nil
Expected result

Callback created without flushing updates. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Check RDD, alias and pending operations. Navigation can flush updates; preserve context under the caller contract and handle errors in the complete routine.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. DBCommitAll. TDN. Accessed on 2026-10-26.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha