USP_DATAFORMTEMPLATE_PRELOAD_ADD_TEAMFUNDRAISINGTEAMATTEAM
The load procedure used by the edit dataform template "Team Fundraising Team at Team Add Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@PARENTTEAMID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@PARENTTEAMNAME | nvarchar(100) | INOUT | Parent team |
@BASECURRENCYID | uniqueidentifier | INOUT | Base currency |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_PRELOAD_ADD_TEAMFUNDRAISINGTEAMATTEAM
(
@PARENTTEAMID uniqueidentifier,
@PARENTTEAMNAME nvarchar(100) = null output,
@BASECURRENCYID uniqueidentifier = null output
)
as
begin
set nocount on
set @PARENTTEAMNAME = dbo.UFN_TEAMFUNDRAISINGTEAM_GETNAME(@PARENTTEAMID);
select
@BASECURRENCYID = APPEAL.BASECURRENCYID
from dbo.TEAMFUNDRAISINGTEAM
left join dbo.APPEAL on APPEAL.ID = TEAMFUNDRAISINGTEAM.APPEALID
where TEAMFUNDRAISINGTEAM.ID = @PARENTTEAMID;
return 0;
end