cCampoUSERLGI/USERLGA field name in the positioned context.
AdvPL GuideFWLeUserlg(cCampo, nOpcao)Interprets stored USERLGI/USERLGA information.
TOTVS Support clarifies this reads stored audit-field content rather than the logged-in user. The alias must be correctly positioned and the advised use is in a virtual field. During insertion there may be no stored content yet. The example wraps the documented read without querying actual data or generalizing undocumented return options. (Sources: refs. 1–1.)
FWLeUserlg(cCampo, nOpcao)cCampoUSERLGI/USERLGA field name in the positioned context.
nOpcaoOption 1 observed in the official example; other options not detailed here.
Stored field information under option and position; no fixed value.
#Include "Protheus.ch"
User Function Ed434()
// Evaluate only in a virtual field with the alias correctly positioned.
Local bRead := {|| FWLeUserlg("A1_USERLGI",1)}
Return NilPrepared block; no user or record queried. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.