USP_DATAFORMTEMPLATE_VIEW_RE7INTEGRATIONCONSTITUENTMAP_REVERSE

The load procedure used by the view dataform template "RE7 Integration Constituent Reverse Map View Form"

Parameters

Parameter Parameter Type Mode Description
@ID int IN The input ID parameter used to load the fields defined on the form.
@CONSTITUENTID uniqueidentifier INOUT Constituent ID
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.

Definition

Copy

                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_RE7INTEGRATIONCONSTITUENTMAP_REVERSE
                (
                    @ID int,
                    @CONSTITUENTID uniqueidentifier = null output,
                    @DATALOADED bit = 0 output
                ) as
                    set nocount on;

                    set @DATALOADED = 0;

                    select
                        @DATALOADED = 1,
                        @CONSTITUENTID = RE7INTEGRATIONCONSTITUENTMAP.ID
                    from
                        dbo.RE7INTEGRATIONCONSTITUENTMAP
                    where
                        RE7INTEGRATIONCONSTITUENTMAP.RE7RECORDID = @ID

                    return 0;