USP_DATAFORMTEMPLATE_VIEW_FINANCIALBATCHEXPRESSION

The load procedure used by the view dataform template "Financial Batch 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.
@NUMBER int INOUT Number
@COMMENT nvarchar(100) INOUT Comment

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_FINANCIALBATCHEXPRESSION
(
    @ID uniqueidentifier
    ,@DATALOADED bit = 0 output
    ,@NUMBER integer = null output
  ,@COMMENT nvarchar(100) = null output
)
as
    set nocount on;

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

    set @DATALOADED = 0;

    select 
    @DATALOADED = 1
    ,@NUMBER = NUMBER
    ,@COMMENT = COMMENT
    from dbo.FINANCIALBATCH
    where ID = @ID

    return 0;