USP_DATAFORMTEMPLATE_EDITLOAD_CONSTITUENTADDRESSUPDATEBATCHROW
The load procedure used by the edit dataform template "Constituent Address Update Batch Row 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. |
@ADDRESSID | uniqueidentifier | INOUT | Constituent address |
@ADDRESSTYPECODEID | uniqueidentifier | INOUT | Address type |
@COUNTRYID | uniqueidentifier | INOUT | Country |
@ADDRESSBLOCK | nvarchar(150) | INOUT | Address |
@CITY | nvarchar(50) | INOUT | City |
@STATEID | uniqueidentifier | INOUT | State |
@POSTCODE | nvarchar(12) | INOUT | ZIP |
@ISPRIMARY | bit | INOUT | Set as primary address |
@DONOTMAIL | bit | INOUT | Do not send mail to this address |
@UPDATEMATCHINGSPOUSEADDRESSES | bit | INOUT | Update spouse address |
@SEQUENCE | int | INOUT | Sequence |
@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_CONSTITUENTADDRESSUPDATEBATCHROW
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@ADDRESSID uniqueidentifier = null output,
@ADDRESSTYPECODEID uniqueidentifier = null output,
@COUNTRYID uniqueidentifier = null output,
@ADDRESSBLOCK nvarchar(150) = null output,
@CITY nvarchar(50) = null output,
@STATEID uniqueidentifier = null output,
@POSTCODE nvarchar(12) = null output,
@ISPRIMARY bit = null output,
@DONOTMAIL bit = null output,
@UPDATEMATCHINGSPOUSEADDRESSES bit = null output,
@SEQUENCE int = null output,
@TSLONG bigint = 0 output
) as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@ADDRESSID = [ADDRESSID],
@ADDRESSTYPECODEID = [ADDRESSTYPECODEID],
@COUNTRYID = [COUNTRYID],
@ADDRESSBLOCK = [ADDRESSBLOCK],
@CITY = [CITY],
@STATEID = [STATEID],
@POSTCODE = [POSTCODE],
@ISPRIMARY = [ISPRIMARY],
@DONOTMAIL = [DONOTMAIL],
@UPDATEMATCHINGSPOUSEADDRESSES = [UPDATEMATCHINGSPOUSEADDRESSES],
@SEQUENCE = [SEQUENCE],
@TSLONG = [TSLONG]
from
dbo.BATCHCONSTITUENTADDRESSUPDATE
where
BATCHCONSTITUENTADDRESSUPDATE.ID = @ID;
return 0;