cAliasAlias registered in SX2 and available in context.
AdvPL GuideAxVisual( <cAlias>, <nReg>, <nOpc>, [aAcho], [nColMens], [cMensagem], [cFunc], [aButtons], [lMaximized] )Configures record viewing in a legacy interface.
AxVisual supplies the record viewing interface according to the Protheus dictionary. The alias must exist in SX2 with fields and validations in SX3; the caller supplies record and browse context. nOpc is the option position in aRotina. It differs from the operation code in the fourth menu column: 2 in this example. Optional argument positions differ across Ax functions; do not transfer AxAltera positions to AxInclui or AxDeleta. The page does not formalize a return. The fragment only configures an option in an already prepared legacy routine without executing the operation. (TOTVS, n.d., ref. 1)
AxVisual( <cAlias>, <nReg>, <nOpc>, [aAcho], [nColMens], [cMensagem], [cFunc], [aButtons], [lMaximized] )cAliasAlias registered in SX2 and available in context.
nRegRecord RecNo in browse context.
nOpcOption position in aRotina, not a universal operation code.
aAchoDisplayed fields; NOUSER can prevent user-defined fields being added.
nColMensUnused in the page.
cMensagemUnused in the page.
cFuncFunction for loading memory variables.
aButtonsAdditional buttons: bitmap, block and title.
lMaximizedDialog maximization.
The consulted page does not specify a return contract; the example does not use it.
// Fragment: aRotina already exists in the legacy caller.
// The framework supplies alias, record and option position.
AAdd(aRotina, {"Viewing", "AxVisual", 0, 2})Adds one menu entry; it does not independently open a screen or modify data. 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.