USP_DATAFORMTEMPLATE_VIEW_PROSPECTCRITERIASUMMARY

The load procedure used by the view dataform template "Donor Lifecycle Prospect Criteria Summary"

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.
@NOAFFINITYPERIOD int INOUT NOAFFINITYPERIOD
@DONORPERIOD int INOUT DONORPERIOD
@DONORFILTERTYPECODE int INOUT DONORFILTERTYPECODE
@DONORASOFDATE datetime INOUT DONORASOFDATE

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_PROSPECTCRITERIASUMMARY
(
    @ID uniqueidentifier,
    @DATALOADED bit = 0 output,
    @NOAFFINITYPERIOD int = null output,
    @DONORPERIOD int = null output,
    @DONORFILTERTYPECODE int = null output,
    @DONORASOFDATE datetime = null output
)
as
    set nocount on;

    set @DATALOADED = 0;

    select 
        @DATALOADED = 1,
        @NOAFFINITYPERIOD = NOAFFINITYPERIOD,
        @DONORPERIOD = DONORPERIOD,
        @DONORFILTERTYPECODE = DONORFILTERTYPECODE,
        @DONORASOFDATE = DONORASOFDATE
    from 
        dbo.REVENUELIFECYCLECRITERIA
    where 
        ID = @ID

    return 0;