USP_DATAFORMTEMPLATE_ADDLOAD_STEWARDSHIPPLANSTEPATTACHMENT

The load procedure used by the edit dataform template "Stewardship Plan Step Attachment Add Form"

Parameters

Parameter Parameter Type Mode Description
@CURRENTAPPUSERID uniqueidentifier IN Input parameter indicating the ID of the current user.
@STEPID uniqueidentifier IN Input parameter indicating the context ID for the record being added.
@AUTHORID uniqueidentifier INOUT Author
@HEADERCONTENTKEY nvarchar(50) INOUT

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADDLOAD_STEWARDSHIPPLANSTEPATTACHMENT (
    @CURRENTAPPUSERID uniqueidentifier,
    @STEPID uniqueidentifier,
    @AUTHORID uniqueidentifier = null output,    
    @HEADERCONTENTKEY nvarchar(50) = null output
) as
    set nocount on;

    set @HEADERCONTENTKEY = 'GenericAttachmentAdd_StewardshipPlanStepHeader';

    select top 1
        @AUTHORID = CONSTITUENTID
    from
        dbo.APPUSER
    where
        ID = @CURRENTAPPUSERID;

    return 0;