USP_DATAFORMTEMPLATE_PRELOAD_ADD_MKTDOCUMENTPACKAGE
The load procedure used by the edit dataform template "Marketing Package Document Add Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@SITEREQUIRED | bit | INOUT | Site required? |
@SITEID | uniqueidentifier | INOUT | Site |
@BASECURRENCYID | uniqueidentifier | INOUT | Currency |
@PACKAGEID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
Definition
Copy
CREATE procedure dbo.[USP_DATAFORMTEMPLATE_PRELOAD_ADD_MKTDOCUMENTPACKAGE]
(
@CURRENTAPPUSERID uniqueidentifier,
@SITEREQUIRED bit = null output,
@SITEID uniqueidentifier = null output,
@BASECURRENCYID uniqueidentifier = null output,
@PACKAGEID uniqueidentifier
)
as
set nocount on;
set @SITEID = dbo.[UFN_APPUSER_DEFAULTSITEFORUSER](@CURRENTAPPUSERID);
set @SITEREQUIRED = dbo.[UFN_SITEREQUIREDFORUSERONFEATURE](@CURRENTAPPUSERID, '05b3d788-73b3-4759-91aa-609cba8363e7', 1);
select
@BASECURRENCYID = [BASECURRENCYID]
from dbo.[MKTPACKAGE]
where [ID] = @PACKAGEID;
return 0;