USP_DATAFORMTEMPLATE_EDITLOAD_ORGANIZATIONCURRENCYSETUP
The load procedure used by the edit dataform template "Organization Currency Setup Edit Data Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
@LOCALEID | uniqueidentifier | INOUT | Locale |
@NAME | nvarchar(100) | INOUT | Name |
@ISO4217 | nvarchar(3) | INOUT | ISO code |
@DECIMALDIGITS | tinyint | INOUT | Decimal digits |
@CURRENCYSYMBOL | nvarchar(5) | INOUT | Currency symbol |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_ORGANIZATIONCURRENCYSETUP
(
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@LOCALEID uniqueidentifier = null output,
@NAME nvarchar(100) = null output,
@ISO4217 nvarchar(3) = null output,
@DECIMALDIGITS tinyint = null output,
@CURRENCYSYMBOL nvarchar(5) = null output
)
as
set nocount on;
set @DATALOADED = 1; -- Always return success
set @TSLONG = 0;
select
@TSLONG = [TSLONG],
@LOCALEID = [LOCALEID],
@NAME = [NAME],
@ISO4217 = [ISO4217],
@DECIMALDIGITS = [DECIMALDIGITS],
@CURRENCYSYMBOL = [CURRENCYSYMBOL]
from
dbo.CURRENCY
where
ISORGANIZATIONCURRENCY = 1;
return 0;