USP_DATAFORMTEMPLATE_VIEW_REVENUEBATCHDUPLICATERESOLUTION

The load procedure used by the view dataform template "Revenue Batch Duplicate Resolution View Form"

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN The input ID parameter used to load the fields defined on the form.
@NAME nvarchar(154) INOUT Constituent name
@ADDRESS nvarchar(300) INOUT Address
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.

Definition

Copy


                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_REVENUEBATCHDUPLICATERESOLUTION
                (
                    @ID uniqueidentifier,
                    @NAME nvarchar(154) = null output,
                    @ADDRESS nvarchar(300) = null output,
                    @DATALOADED bit = 0 output
                )
                as
                    set nocount on

                    select
                        @NAME = BRC.NAME,
                        @ADDRESS = dbo.UFN_BUILDFULLADDRESS(null, BRC.ADDRESSBLOCK, BRC.CITY, BRC.STATEID, BRC.POSTCODE, BRC.COUNTRYID),
                        @DATALOADED = 1
                    from dbo.BATCHREVENUECONSTITUENT BRC
                    where ID = @ID