USP_DATAFORMTEMPLATE_ADD_STUDENTCOURSEREQUEST_PRELOAD

The load procedure used by the edit dataform template "Student Course Request Add Data Form"

Parameters

Parameter Parameter Type Mode Description
@CURRENTAPPUSERID uniqueidentifier IN Input parameter indicating the ID of the current user.
@SESSIONID uniqueidentifier INOUT

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_STUDENTCOURSEREQUEST_PRELOAD
                    (
                        @CURRENTAPPUSERID uniqueidentifier,
                        @SESSIONID uniqueidentifier = null output
                    )
                    as
                        set nocount on

                        select
                            @SESSIONID = dbo.SESSION.ID
                        from dbo.SESSION
                            inner join dbo.ACADEMICYEAR on SESSION.ACADEMICYEARID = ACADEMICYEAR.ID
                            inner join dbo.APPUSERSESSION on SESSION.ID = APPUSERSESSION.SESSIONID
                        where dbo.APPUSERSESSION.ID = @CURRENTAPPUSERID

                        return 0