USP_DATAFORMTEMPLATE_VIEW_MAXIMUMCURRENCYDECIMALDIGITS
The load procedure used by the view dataform template "Maximum Number of Decimal Digits View"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | bit | 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. |
@DECIMALDIGITS | int | INOUT | Maximum decimal digits |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_MAXIMUMCURRENCYDECIMALDIGITS
(
@ID bit,
@DATALOADED bit = 0 output,
@DECIMALDIGITS integer = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 1;
select @DECIMALDIGITS = MAX(DECIMALDIGITS) from dbo.CURRENCY where INACTIVE = 0 or INACTIVE = @ID;
return 0;