Usina BRAdvPL Guide
Sign in
← All topics
CLASSUnder review

FWWizardStep

oWizard:AddStep(cID,bConstruct) -> FWWizardStep

Defines controls and conditions for a wizard step.

FWWizardStepAdvPL
01 · OVERVIEW

Overview

Created by FWWizardControl AddStep, available from 12.1.6. SetNextAction, SetPrevAction and SetCancelAction require logical results to permit or block navigation. When methods govern button enablement and SetConstruction defines panel construction. UI validation is separate from saving a business operation. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

oWizard:AddStep(cID,bConstruct) -> FWWizardStep

Methods

GetIDGets identifier.o:GetID() -> cID
SetNextActionSets logical next-step block.o:SetNextAction(bAction)
SetConstructionDefines panel control creation.o:SetConstruction(bConstruction)
03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed458()
    Local oWiz := FWWizardControl():New()
    Local oStep := oWiz:AddStep("ED01",{|oPanel| Nil})
    Local lReady := .F.
    // Initial condition blocks progress; no window is activated.
    oStep:SetNextAction({|| lReady})
    ConOut(oStep:GetID())
    oWiz:Destroy()
Return Nil
Expected result

Displays ED01; next-step condition remains false. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Keep captured variables valid throughout wizard lifetime and define cancellation explicitly.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FWWizardStep. TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha