USP_DATAFORMTEMPLATE_VIEW_CURRENCYSETBASECURRENCY
The load procedure used by the view dataform template "Currency Set 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 |
@DECIMALDIGITS | tinyint | INOUT | Decimal digits |
@ROUNDINGTYPECODE | tinyint | INOUT | Rounding type |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CURRENCYSETBASECURRENCY
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@BASECURRENCYID uniqueidentifier = null output,
@DECIMALDIGITS tinyint = null output,
@ROUNDINGTYPECODE tinyint = null output
)
as
set nocount on;
select
@BASECURRENCYID = CURRENCY.ID,
@DECIMALDIGITS = CURRENCY.DECIMALDIGITS,
@ROUNDINGTYPECODE = CURRENCY.ROUNDINGTYPECODE,
@DATALOADED = 1
from
dbo.CURRENCYSET
inner join dbo.CURRENCY on CURRENCY.ID = CURRENCYSET.BASECURRENCYID
where
CURRENCYSET.ID = @ID
return 0;