USP_DATAFORMTEMPLATE_VIEW_BATCH2STATUS
The load procedure used by the view dataform template "Batch2 Status View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@NEXTSTATUS | nvarchar(60) | INOUT | Next status |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_BATCH2STATUS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@NEXTSTATUS nvarchar(60) = null output
)
as
set nocount on;
set @DATALOADED = 1;
select @NEXTSTATUS =
BWS.NAME
from BATCHWORKFLOWSTATE as BWS
join BATCHWORKFLOWTASK as BWT on BWT.NEXTBATCHWORKFLOWSTATEID = BWS.ID
where BWT.ID = @ID
return 0;