OnStepSelected event
- Arguments
-
Argument Description Type bstrStepThe step name. String bstrPathThe path of the step. String bstrUnitThe unit name. String bstrAliasThe recipe alias. String bOOSIndicates whether the unit is or is not Out of Service. Number lCommandMaskThe set of valid commands. Number lStateThe set of valid states. Number lModeThe mode of the step. Number bstrCreateIdThe unique ID of the selected (active) batch. String lBatchStateThe state of the batch. Number lBatchModeThe mode of the batch. Number - Controls applied to
- Batch PFC
- Syntax
BatchPfcControl1.OnStepSelected(bstrStep, bstrPath, bstrUnit, bstrAlias, bOOS, lCommandMask, lState, lMode, bstrCreateId, lBatchState, lBatchMode)- Example
-
{ if( Dsp.BatchPfcControl1.GetWasStepSelectedByUser() ){ Lyt.Variables[Dsp.BatchPfcControl1.CurrentSelectedStep] = bstrPath; Lyt.Variables[Dsp.BatchPfcControl1.PreviousBatch] = Dsp.BatchPfcControl1.ControlledBatch; } }catch (e){ DL.SubmitDiagnosticFailure(Dsp.BatchPfcControl1, "BatchPfcControl", "OnStepSelected failed with error: " + e.message); }{ if( Dsp.BatchStepList1.GetWasStepSelectedByUser() ){ Lyt.Variables[Dsp.BatchStepList1.CurrentSelectedStep] = bstrPath; Lyt.Variables[Dsp.BatchStepList1.PreviousBatch] = Dsp.BatchStepList1.ControlledBatch; } }catch (e){ DL.SubmitDiagnosticFailure(Dsp.BatchStepList1, "BatchStepList", "OnStepSelected failed with error: " + e.message); }