USP_DATAFORMTEMPLATE_VIEW_FUNDRAISINGGOALCURRENCY
The load procedure used by the view dataform template "Fundraising Goal Base Currency"
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. |
@BASECURRENCYID | uniqueidentifier | INOUT | Currency |
@CURRENCYNAME | nvarchar(110) | INOUT | Currency name |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_FUNDRAISINGGOALCURRENCY (
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@BASECURRENCYID uniqueidentifier = null output,
@CURRENCYNAME nvarchar(110) = null output
) as begin
set nocount on;
set @DATALOADED = 0;
select
@DATALOADED = 1,
@BASECURRENCYID = GROUPGOAL.BASECURRENCYID,
@CURRENCYNAME = dbo.UFN_CURRENCY_GETDESCRIPTION(GROUPGOAL.BASECURRENCYID)
from
dbo.GROUPGOAL
where
GROUPGOAL.ID = @ID;
return 0;
end