USP_DATAFORMTEMPLATE_ADD_PRELOAD_BENEFITPCT

The load procedure used by the edit dataform template "Percent Benefit Add Form"

Parameters

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

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_PRELOAD_BENEFITPCT
                    (
                        @CURRENTAPPUSERID uniqueidentifier,
                        @SITES xml = null output
                    )
                    as
                        set nocount on;

                        declare @DEFAULTSITEID uniqueidentifier
                        set @DEFAULTSITEID = dbo.UFN_APPUSER_DEFAULTSITEFORUSER(@CURRENTAPPUSERID)

                        if @DEFAULTSITEID is not null
                            set @SITES = (SELECT newID() as ID, @DEFAULTSITEID as SITEID for xml raw('ITEM'),type,elements,root('SITES'),BINARY BASE64)

                        return 0;