USP_DATAFORMTEMPLATE_VIEW_GLACCOUNSTRUCTURELISTPAGEEXPRESSION

The load procedure used by the view dataform template "Accounting Structure Page Expression View Form"

Parameters

Parameter Parameter Type Mode Description
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@NUMSEGMENTS tinyint INOUT NUMSEGMENTS

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_GLACCOUNSTRUCTURELISTPAGEEXPRESSION
(
    @DATALOADED bit = 0 output,
    @NUMSEGMENTS tinyint = null output
)
as
    set nocount on;

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

    set @DATALOADED = 0;

    select @DATALOADED = 1,
           @NUMSEGMENTS = coalesce(count(*),0)
    from dbo.PDACCOUNTSTRUCTURE
    where ELEMENTTYPECODE = 1
    return 0;