USP_DATAFORMTEMPLATE_VIEW_PAPERLESSMANDATESENABLED_FORREVENUE

The load procedure used by the view dataform template "Paperless Mandates Enabled For Revenue 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

Definition

Copy


            create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_PAPERLESSMANDATESENABLED_FORREVENUE
            (
                @ID uniqueidentifier,
                @DATALOADED bit = 0 output,
                @ENABLED integer = null output
            )
            as
                set nocount on;

                begin try                
                    set @ENABLED = dbo.UFN_PAPERLESSMANDATES_ENABLED_FORREVENUE(@ID);
                    set @DATALOADED = 1;
                end try                
                begin catch
                    exec dbo.USP_RAISE_ERROR;                    
                    return 1;
                end catch

                return 0;