USP_DATAFORMTEMPLATE_VIEW_TEAMFUNDRAISERFROMREGISTRANT
The load procedure used by the view dataform template "Team Fundraiser from Registrant View 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. |
@GOAL | money | INOUT | Goal |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_TEAMFUNDRAISERFROMREGISTRANT
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@GOAL money = null output
)
as
begin
set nocount on;
set @DATALOADED = 0;
select
@DATALOADED = 1,
@GOAL = TEAMFUNDRAISER.GOAL
from
dbo.REGISTRANT
left join dbo.EVENT on REGISTRANT.EVENTID = EVENT.ID
left join dbo.TEAMFUNDRAISER on
EVENT.APPEALID = TEAMFUNDRAISER.APPEALID
and REGISTRANT.CONSTITUENTID = TEAMFUNDRAISER.CONSTITUENTID
where
REGISTRANT.ID = @ID;
return 0;
end