FWWizardStep
oWizard:AddStep(cID,bConstruct) -> FWWizardStepDefines controls and conditions for a wizard step.
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.)
Syntax
oWizard:AddStep(cID,bConstruct) -> FWWizardStepMethods
GetIDGets identifier.o:GetID() -> cID
SetNextActionSets logical next-step block.o:SetNextAction(bAction)
SetConstructionDefines panel control creation.o:SetConstruction(bConstruction)
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 NilDisplays ED01; next-step condition remains false. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- 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.

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