cAliasAlias registered in SX2 and available in context.
AdvPL GuideAxInclui( <cAlias>, <nReg>, <nOpc>, [aAcho], [cFunc], [aCpos], [cTudoOk], [lF3], [cTransact], [aButtons], [aParam], [aAuto], [lVirtual], [lMaximized] )Configures record insertion in a legacy interface.
AxInclui supplies the record insertion 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: 3 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) The caller must define cCadastro as Private. cTudoOk is a validation-function string rather than a block.
AxInclui( <cAlias>, <nReg>, <nOpc>, [aAcho], [cFunc], [aCpos], [cTudoOk], [lF3], [cTransact], [aButtons], [aParam], [aAuto], [lVirtual], [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.
cFuncFunction for loading memory variables.
aCposEditable fields; in AxDeleta, displayed fields.
cTudoOkValidation function name as a string, not a block.
lF3Indicates a call from an F3 lookup.
cTransactFunction called inside the AxFunction transaction.
aButtonsAdditional buttons: bitmap, block and title.
aParamFunctions before the screen, validation, inside and outside the transaction, in that order.
aAutoAutomatic-mode fields, values and validations; requires separate analysis.
lVirtualVirtual file; documentation relates it to cFunc.
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, {"Insertion", "AxInclui", 0, 3})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.