USP_DATAFORMTEMPLATE_EDITLOAD_PEOPLEFINDERSUBMITPROCESS
The load procedure used by the edit dataform template "PeopleFinder Submit Process Edit Data 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. |
@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. |
@SELECTCONSTITUENTSCODE | tinyint | INOUT | Select constituents |
@IDSETREGISTERID | uniqueidentifier | INOUT | Selected |
@ADDRESSINCLUDECODE | tinyint | INOUT | Address types |
@ADDRESSTYPECODEID | uniqueidentifier | INOUT | Specific type |
@INCLUDEINCOMPLETEADDRESSES | bit | INOUT | Include incomplete addresses |
@INCLUDEINACTIVE | bit | INOUT | Include inactive constituents |
@CREATEOUTPUTIDSET | bit | INOUT | Create selection from results |
@OUTPUTIDSETNAME | nvarchar(100) | INOUT | Selection name |
@OVERWRITEOUTPUTIDSET | bit | INOUT | Overwrite existing selection |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PEOPLEFINDERSUBMITPROCESS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@SELECTCONSTITUENTSCODE tinyint = null output,
@IDSETREGISTERID uniqueidentifier = null output,
@ADDRESSINCLUDECODE tinyint = null output,
@ADDRESSTYPECODEID uniqueidentifier = null output,
@INCLUDEINCOMPLETEADDRESSES bit = null output,
@INCLUDEINACTIVE bit = null output,
@CREATEOUTPUTIDSET bit = null output,
@OUTPUTIDSETNAME nvarchar(100) = null output,
@OVERWRITEOUTPUTIDSET bit = null output
)
as
set nocount on;
set @DATALOADED = 0
set @TSLONG = 0
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@SELECTCONSTITUENTSCODE = case when @IDSETREGISTERID is null then 0 else 1 end,
@IDSETREGISTERID = IDSETREGISTERID,
@ADDRESSINCLUDECODE = ADDRESSINCLUDECODE,
@ADDRESSTYPECODEID = ADDRESSTYPECODEID,
@CREATEOUTPUTIDSET = CREATEOUTPUTIDSET,
@OUTPUTIDSETNAME = OUTPUTIDSETNAME,
@OVERWRITEOUTPUTIDSET = OVERWRITEOUTPUTIDSET,
@INCLUDEINACTIVE = INCLUDEINACTIVE,
@INCLUDEINCOMPLETEADDRESSES = INCLUDEINCOMPLETEADDRESSES
from
dbo.PEOPLEFINDERSUBMITPROCESS
where
ID = @ID
return 0;