USP_DATAFORMTEMPLATE_EDITLOAD_DESIGNATIONLEVELSTEWARDSHIPRECIPIENT
The load procedure used by the edit dataform template "Stewardship Recipient 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. |
@CONSTITUENTID | uniqueidentifier | INOUT | Constituent |
@DESIGNATIONLEVELID | uniqueidentifier | INOUT | Purpose ID |
@TYPECODEID | uniqueidentifier | INOUT | Type |
@STARTDATE | datetime | INOUT | Start date |
@ENDDATE | datetime | INOUT | End date |
@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_DESIGNATIONLEVELSTEWARDSHIPRECIPIENT
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CONSTITUENTID uniqueidentifier = null output,
@DESIGNATIONLEVELID uniqueidentifier = null output,
@TYPECODEID uniqueidentifier = null output,
@STARTDATE datetime = null output,
@ENDDATE datetime = null output,
@TSLONG bigint = 0 output
)
as
begin
set nocount on
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@CONSTITUENTID = RECIPIENT.CONSTITUENTID,
@DESIGNATIONLEVELID = RECIPIENT.DESIGNATIONLEVELID,
@TYPECODEID = RECIPIENT.TYPECODEID,
@STARTDATE = RECIPIENT.STARTDATE,
@ENDDATE = RECIPIENT.ENDDATE,
@TSLONG = RECIPIENT.TSLONG
from
dbo.DESIGNATIONLEVELSTEWARDSHIPRECIPIENTS as RECIPIENT
where
RECIPIENT.ID = @ID
return 0
end