USP_DATAFORMTEMPLATE_EDITLOAD_BATCHCOMMITPARAMETERS
The load procedure used by the edit dataform template "Batch Commit Process Parameter Edit 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. |
@BATCHNUMBER | nvarchar(100) | INOUT | Batch number |
@CREATEOUTPUTIDSET | bit | INOUT | Create output Selection |
@OUTPUTIDSETNAME | nvarchar(100) | INOUT | Name |
@OVERWRITEOUTPUTIDSET | bit | INOUT | Overwrite output Selection |
@CREATEEXCEPTIONBATCH | bit | INOUT | Create exception batch |
@EXCEPTIONBATCHNAME | nvarchar(60) | INOUT | Exception batch name |
@PURGEBATCH | bit | INOUT | Delete batch after committing |
@CREATECONTROLREPORT | bit | INOUT | Create control report |
@TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_BATCHCOMMITPARAMETERS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@BATCHNUMBER nvarchar(100) = null output,
@CREATEOUTPUTIDSET bit = null output,
@OUTPUTIDSETNAME nvarchar(100) = null output,
@OVERWRITEOUTPUTIDSET bit = null output,
@CREATEEXCEPTIONBATCH bit = null output,
@EXCEPTIONBATCHNAME nvarchar(60) = null output,
@PURGEBATCH bit = null output,
@CREATECONTROLREPORT bit = null output,
@TSLONG bigint = 0 output
)
as
set NOCOUNT on;
set @DATALOADED = 0
set @TSLONG = 0
select
@DATALOADED = 1,
@BATCHNUMBER = [BATCH].[BATCHNUMBER],
@CREATEOUTPUTIDSET = [BATCH].[CREATEOUTPUTIDSET],
@OUTPUTIDSETNAME = [BATCH].[OUTPUTIDSETNAME],
@OVERWRITEOUTPUTIDSET = [BATCH].[OVERWRITEOUTPUTIDSET],
@CREATEEXCEPTIONBATCH =[BATCH].[CREATEEXCEPTIONBATCH],
@EXCEPTIONBATCHNAME = [BATCH].[EXCEPTIONBATCHNAME],
@PURGEBATCH = [BATCH].[PURGEBATCH],
@CREATECONTROLREPORT = [BATCH].[CREATECONTROLREPORT],
@TSLONG = [BATCH].[TSLONG]
from
dbo.[BATCH]
where
[BATCH].[ID] = @ID;
return 0;