USP_DATAFORMTEMPLATE_VIEW_WPPROFILEPDF

The load procedure used by the view dataform template "WealthPoint Profile View 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.
@NAME nvarchar(154) INOUT NAME
@DATA varbinary INOUT DATA

Definition

Copy


                create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_WPPROFILEPDF
                    @ID uniqueidentifier,
                    @DATALOADED bit = 0 output,
                    @NAME nvarchar(154) = null output,
                    @DATA varbinary(max) = null output
                as
                begin
                    set nocount on;

                    set @DATALOADED = 0;

                    select
                        @DATALOADED = 1,
                        @NAME = C.NAME,
                        @DATA = W.WEALTHPROFILEPDF
                    from 
                        dbo.WEALTH W
                        inner join dbo.CONSTITUENT C on C.ID=W.ID
                    where
                        W.ID = @ID;

                    return 0;
                end