USP_DATAFORMTEMPLATE_VIEW_EVENTBASECURRENCY
The load procedure used by the view dataform template "Event Base Currency View"
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 | Base currency |
@BASECURRENCYNAME | nvarchar(110) | INOUT | Base currency |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_EVENTBASECURRENCY
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@BASECURRENCYID uniqueidentifier = null output,
@BASECURRENCYNAME nvarchar(110) = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
select
@DATALOADED = 1,
@BASECURRENCYID = EVENT.BASECURRENCYID,
@BASECURRENCYNAME = dbo.UFN_CURRENCY_GETDESCRIPTION(EVENT.BASECURRENCYID)
from
dbo.EVENT
where
EVENT.ID = @ID;
return 0;