USP_DATAFORMTEMPLATE_EDITLOAD_PAPERLESSMANDATESSITECONFIGURATION
The load procedure used by the edit dataform template "Paperless Mandates Site Configuration Edit Data Form"
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. |
@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. |
@ENABLED | bit | INOUT | Use paperless mandates |
@DAYSADVANCEDNOTICE | int | INOUT | Days of advanced notice |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PAPERLESSMANDATESSITECONFIGURATION(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@ENABLED bit = null output,
@DAYSADVANCEDNOTICE integer = null output
)
as
set nocount on;
set @DATALOADED = 0
set @TSLONG = 0
select
@DATALOADED = 1,
@ID = SITECONFIGURATION.ID,
@TSLONG = SITECONFIGURATION.TSLONG,
@ENABLED = SITECONFIGURATION.ENABLED,
@DAYSADVANCEDNOTICE = nullif(SITECONFIGURATION.DAYSADVANCEDNOTICE,-1)
from
dbo.PAPERLESSMANDATESSITECONFIGURATION SITECONFIGURATION
where
SITECONFIGURATION.ID = @ID
return 0;