Usina BRAdvPL Guide
Sign in
← All topics
CLASSEPublished

FWFormView

FWFormView():New()

Define a apresentação de uma rotina MVC.

MVCInterface
01 · OVERVIEW

Overview

Constrói a camada visual de uma rotina MVC e conecta os componentes ao modelo.

02 · SYNTAX

Syntax

FWFormView():New()
03 · PRACTICAL EXAMPLE

Exemplo prático

Static Function ViewDef()
    Local oView := FWFormView():New()
    oView:SetModel(FWLoadModel("CADPROD"))
    oView:AddField("VIEW_MASTER", FWFormStruct(2, "SB1"), "MASTER")
Return oView
BEST PRACTICES
  • A view deve tratar apresentação.
  • Associe cada componente ao submodelo correto.

Related content

REFERENCES
  1. TOTVS. AdvPL using MVC. Supplied 134-page PDF, generated June 1, 2018; related content reviewed August 2, 2026.
Status
Published
Last reviewed on
Original language
Português
Reviewed by
Usina.BR