USP_DATAFORMTEMPLATE_PRELOAD_ADD_CAMPAIGNSUBPRIORITY

The load procedure used by the edit dataform template "Campaign Category Add Form"

Parameters

Parameter Parameter Type Mode Description
@CURRENTAPPUSERID uniqueidentifier IN Input parameter indicating the ID of the current user.
@CAMPAIGNPRIORITYID uniqueidentifier IN Input parameter indicating the context ID for the record being added.
@BASECURRENCYID uniqueidentifier INOUT Base currency ID

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_PRELOAD_ADD_CAMPAIGNSUBPRIORITY
                    (
                        @CURRENTAPPUSERID uniqueidentifier,
                        @CAMPAIGNPRIORITYID uniqueidentifier,
                        @BASECURRENCYID uniqueidentifier = null output
                    )
                    as
                        set nocount on;

                        select 
                            @BASECURRENCYID = CAMPAIGN.BASECURRENCYID 
                        from
                            dbo.CAMPAIGNPRIORITY
                            inner join dbo.CAMPAIGN on CAMPAIGNPRIORITY.CAMPAIGNID = CAMPAIGN.ID
                        where 
                            CAMPAIGNPRIORITY.ID = @CAMPAIGNPRIORITYID;

                        return 0;