CLASSPublished
FWFormView
FWFormView():New()Defines the presentation layer of a Protheus MVC routine.
Overview
Builds the visual layer of an MVC routine and connects its interface components to the corresponding model substructures.
Syntax
FWFormView():New()Basic view definition
Static Function ViewDef()
Local oView := FWFormView():New()
oView:SetModel(FWLoadModel("CADPROD"))
oView:AddField("VIEW_MASTER", FWFormStruct(2, "SB1"), "MASTER")
Return oViewExpected result
The view loads the model and connects a field component to the MASTER submodel.
- Keep presentation concerns in the view.
- Associate each component with the correct submodel.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.