cAliasSX2 alias.
AdvPL GuideAxCadastro( <cAlias>, <cTitulo>, [cVldExc], [cVldAlt] )Opens dictionary-driven generic maintenance for a simple table.
AxCadastro provides search, view, insert, edit and delete for simple tables defined in SX2/SX3. The page accepts named deletion and editing validation functions; the minimal example omits both. Scheron Martins’s community source calls AxCadastro on SA1, illustrating invocation without proving suitability for every installation’s customer rules. The editorial proposal uses only fictional alias ZZ1, previously created, opened and validated in the dictionary, with cCadastro/aRotina in legacy context. It is not a ready-made standard-table maintenance routine. (TOTVS, n.d., ref. 1; MARTINS, 2023, ref. 2)
AxCadastro( <cAlias>, <cTitulo>, [cVldExc], [cVldAlt] )cAliasSX2 alias.
cTituloMaintenance title.
cVldExcDeletion validation function name.
cVldAltEditing validation function name.
The consulted page does not specify a return contract; the example does not use it.
#Include "Protheus.ch"
User Function EdAxcadas()
Private cCadastro := "Editorial test table"
Private aRotina := {}
// ZZ1 must exist in the dictionary and be open in testing.
If Select("ZZ1") > 0
AxCadastro("ZZ1", cCadastro)
EndIf
Return NilRequests interactive maintenance only if ZZ1 is already open; otherwise no screen is opened. 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.