USP_DATAFORMTEMPLATE_VIEW_SETTINGSCHILDINELIGIBLE

The load procedure used by the view dataform template "Sponsorship Settings Child Ineligible View Form"

Parameters

Parameter Parameter Type Mode Description
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@INELIGIBLEMATCHING nvarchar(100) INOUT For matching an opportunity use
@INELIGIBLETRANSFERRULE tinyint INOUT For transferring sponsorships use

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_SETTINGSCHILDINELIGIBLE
(
    @DATALOADED bit = 0 output,
    @INELIGIBLEMATCHING nvarchar(100) = null output,
    @INELIGIBLETRANSFERRULE tinyint = null output
)
as
    set nocount on;

    -- be sure to set this, in case the select returns no rows

    set @DATALOADED = 0;

    -- populate the output parameters, which correspond to fields on the form.  Note that

    -- we set @DATALOADED = 1 to indicate that the load was successful.  Otherwise, the system

    -- will display a "no data loaded" message.

    select top 1
        @DATALOADED = 1,
        @INELIGIBLEMATCHING = INELIGIBLEMATCHING,
        @INELIGIBLETRANSFERRULE = INELIGIBLETRANSFERRULE
    from 
        dbo.SPONSORSHIPINFO
    order by DATEADDED

    return 0;