USP_DATAFORMTEMPLATE_VIEW_GLFISCALYEARS

The load procedure used by the view dataform template "Fiscal years expression 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.
@FISCALYEAREXIST bit INOUT FISCALYEAREXIST
@FENXT bit INOUT

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_GLFISCALYEARS
(
    @ID uniqueidentifier,
    @DATALOADED bit = 0 output,
    @FISCALYEAREXIST bit = null output,
    @FENXT bit = null output
)
as
    set nocount on;

    set @DATALOADED = 1;

    if exists (select * from dbo.GLFISCALYEAR)
        set @FISCALYEAREXIST = 1;
    else
        set @FISCALYEAREXIST = 0;

    if exists (select 1 from dbo.FENXTINTEGRATION)
        set @FENXT = 1;
    else
        set @FENXT = 0;

    return 0;