OnStepSelected event

Arguments
Argument Description Type
bstrStep The step name. String
bstrPath The path of the step. String
bstrUnit The unit name. String
bstrAlias The recipe alias. String
bOOS Indicates whether the unit is or is not Out of Service. Number
lCommandMask The set of valid commands. Number
lState The set of valid states. Number
lMode The mode of the step. Number
bstrCreateId The unique ID of the selected (active) batch. String
lBatchState The state of the batch. Number
lBatchMode The mode of the batch. Number
Controls applied to
Batch PFC
Batch Step List
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);
}