USP_DATAFORMTEMPLATE_ADD_REGISTRANTMAINEVENTFROMINVITEE_PRELOAD

The load procedure used by the edit dataform template "Registrant Main Event from Invitee Add Form"

Parameters

Parameter Parameter Type Mode Description
@INVITEEID uniqueidentifier IN Input parameter indicating the context ID for the record being added.
@MAINEVENTID uniqueidentifier INOUT MAINEVENTID
@CONSTITUENTID uniqueidentifier INOUT Registrant
@PACKAGESPRICES xml INOUT
@MULTICOMPONENTEVENTPRICES xml INOUT

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_REGISTRANTMAINEVENTFROMINVITEE_PRELOAD
                    (
                        @INVITEEID uniqueidentifier,
                        @MAINEVENTID uniqueidentifier = null output,
                        @CONSTITUENTID uniqueidentifier = null output,
                        @PACKAGESPRICES xml = null output,
                        @MULTICOMPONENTEVENTPRICES xml = null output
                    )
                    as
                        set nocount on;

                        select
                            @MAINEVENTID = INVITEE.EVENTID,
                            @CONSTITUENTID = INVITEE.CONSTITUENTID
                        from
                            dbo.INVITEE
                        where
                            INVITEE.ID = @INVITEEID;

                        set @PACKAGESPRICES = dbo.UFN_REGISTRATIONPACKAGE_GETPACKAGESPRICES_TOITEMLISTXML(@MAINEVENTID);
                        set @MULTICOMPONENTEVENTPRICES = dbo.UFN_EVENTPRICE_GETMULTICOMPONENTEVENTPRICES_TOITEMLISTXML(@MAINEVENTID);

                        return 0;