USP_DATAFORMTEMPLATE_EDITLOAD_EMAILFINDERSUBMITPROCESS
The load procedure used by the edit dataform template "EmailFinder 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 |
| @SUBMITHOUSEHOLD | bit | INOUT | For households, submit shared addresses once along with primary contact name |
| @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_EMAILFINDERSUBMITPROCESS
(
@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,
@SUBMITHOUSEHOLD 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,
@SUBMITHOUSEHOLD = SUBMITHOUSEHOLD,
@INCLUDEINACTIVE = INCLUDEINACTIVE,
@INCLUDEINCOMPLETEADDRESSES = INCLUDEINCOMPLETEADDRESSES
from
dbo.EMAILFINDERSUBMITPROCESS
where
ID = @ID
return 0;