USP_DATAFORMTEMPLATE_VIEW_PAPERLESSMANDATESCONFIGURATION_FORSITE
The load procedure used by the view dataform template "Paperless Mandates Configuration For Site View 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. |
@ENABLED | int | INOUT | Use paperless mandates |
@DAYSADVANCEDNOTICE | int | INOUT | Days of advanced notice |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_PAPERLESSMANDATESCONFIGURATION_FORSITE
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@ENABLED integer = null output,
@DAYSADVANCEDNOTICE integer = null output
)
as
set nocount on;
set @DATALOADED = 1;
begin try
set @ENABLED = dbo.UFN_PAPERLESSMANDATES_ENABLED_FORSITE(@ID);
if @ENABLED = 1
begin
set @DAYSADVANCEDNOTICE = dbo.UFN_PAPERLESSMANDATES_DAYSADVANCEDNOTICE_FORSITE(@ID)
end
end try
begin catch
exec dbo.USP_RAISE_ERROR;
return 1;
end catch
return 0;