USP_DATAFORMTEMPLATE_EDITLOAD_DONORCHALLENGEDESIGNATIONMAP
The load procedure used by the edit dataform template "Donor Challenge Designation Map 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. |
@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. |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@DESIGNATIONLOOKUPID | nvarchar(512) | INOUT | Original gift designation |
@MATCHINGDESIGNATIONID | uniqueidentifier | INOUT | Matching funds designation |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_DONORCHALLENGEDESIGNATIONMAP
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@CURRENTAPPUSERID uniqueidentifier,
@DESIGNATIONLOOKUPID nvarchar(512) = null output,
@MATCHINGDESIGNATIONID uniqueidentifier = null output
)
as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@TSLONG = DCDM.TSLONG,
@DESIGNATIONLOOKUPID = DESIGNATION.VANITYNAME,
@MATCHINGDESIGNATIONID = DCDM.MATCHINGDESIGNATIONID
from
dbo.DONORCHALLENGEDESIGNATIONMAP DCDM
inner join
dbo.DESIGNATION on DESIGNATION.ID = DCDM.DESIGNATIONID
where
DCDM.ID = @ID;
return 0;