USP_DATAFORMTEMPLATE_PRELOAD_ADD_INDTOORG_RELATIONSHIP

The load procedure used by the edit dataform template "Relationship Individual to Organization Add Form"

Parameters

Parameter Parameter Type Mode Description
@CONSTITUENTID uniqueidentifier IN Input parameter indicating the context ID for the record being added.
@CONSTITUENTNAME nvarchar(154) INOUT

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_PRELOAD_ADD_INDTOORG_RELATIONSHIP
                    (
                        @CONSTITUENTID uniqueidentifier,
                        @CONSTITUENTNAME nvarchar(154) = null output
                    )
                    as
                        set nocount on;

                        select 
                            @CONSTITUENTNAME = NAME
                        from
                            dbo.CONSTITUENT 
                        where
                            ID = @CONSTITUENTID;

                        return 0;