FWMVCDef.chUsed by MVC resources; confirm which source symbols actually depend on it.
AdvPL Guide#Include "FWMVCDef.ch"Provides definitions used by Framework MVC routines, including operation constants that require current-LIB confirmation.
FWMVCDef.ch is commonly used by MVC sources for Framework constants and definitions. ModelDef(), ViewDef() and MenuDef() are conventional routine functions, not commands transformed by the include itself. TopConn.ch serves SQL access and is not the MVC persistence mechanism. Confirm operation constants and values in the include for the target release.
#Include "FWMVCDef.ch"FWMVCDef.chUsed by MVC resources; confirm which source symbols actually depend on it.
No runtime return value; it provides compile-time definitions.
#Include "TOTVS.ch"
#Include "FWMVCDef.ch"
Static Function ModelDef()
Local oModel := MPFormModel():New("EXAMPLE")
Return oModel
Static Function ViewDef()
Local oView := FWFormView():New()
oView:SetModel(ModelDef())
Return oViewThe include provides definitions; the developer still implements ModelDef() and ViewDef().
© 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