USP_DATAFORMTEMPLATE_EDITLOAD_MKTPACKAGE_PASSIVE
The load procedure used by the edit dataform template "Package Edit Form (Public Media)"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@NAME | nvarchar(100) | INOUT | Name |
@DESCRIPTION | nvarchar(255) | INOUT | Description |
@CODE | nvarchar(10) | INOUT | Code |
@COST | money | INOUT | Base cost |
@COSTDISTRIBUTIONMETHODCODE | tinyint | INOUT | Distribution |
@INSERTCOSTPERPIECE | money | INOUT | Additional content cost |
@TOTALCOSTPERPIECE | money | INOUT | Total per piece cost |
@SITEID | uniqueidentifier | INOUT | Site |
@SITEREQUIRED | bit | INOUT | Site required? |
@SITECANBECHANGED | bit | INOUT | Site can be changed (obsolete)? |
@CHANNELCODE | tinyint | INOUT | Channel |
@CATEGORYCODEID | uniqueidentifier | INOUT | Category |
@CREATIVEID | uniqueidentifier | INOUT | Creative |
@ACKNOWLEDGEMENTMAILINGSINSTALLED | bit | INOUT | Marketing Acknowledgement installed? |
@MEMBERSHIPMAILINGSINSTALLED | bit | INOUT | Membership renewal efforts installed? |
@CODEVALUEID | uniqueidentifier | INOUT | Code value ID |
@CHANNELSOURCECODE | nvarchar(10) | INOUT | Channel source code |
@CHANNELSOURCECODEVALUEID | uniqueidentifier | INOUT | Channel code value ID |
@TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
@BASECURRENCYID | uniqueidentifier | INOUT | Currency |
@PACKAGEPARTDEFINITIONID | uniqueidentifier | INOUT | Package part definition ID |
@CHANNELPARTDEFINITIONID | uniqueidentifier | INOUT | Channel part definition ID |
Definition
Copy
CREATE procedure dbo.[USP_DATAFORMTEMPLATE_EDITLOAD_MKTPACKAGE_PASSIVE]
(
@ID uniqueidentifier,
@CURRENTAPPUSERID uniqueidentifier,
@DATALOADED bit = 0 output,
@NAME nvarchar(100) = null output,
@DESCRIPTION nvarchar(255) = null output,
@CODE nvarchar(10) = null output,
@COST money = null output,
@COSTDISTRIBUTIONMETHODCODE tinyint = null output,
@INSERTCOSTPERPIECE money = null output,
@TOTALCOSTPERPIECE money = null output,
@SITEID uniqueidentifier = null output,
@SITEREQUIRED bit = null output,
@SITECANBECHANGED bit = null output,
@CHANNELCODE tinyint = null output,
@CATEGORYCODEID uniqueidentifier = null output,
@CREATIVEID uniqueidentifier = null output,
@ACKNOWLEDGEMENTMAILINGSINSTALLED bit = null output,
@MEMBERSHIPMAILINGSINSTALLED bit = null output,
@CODEVALUEID uniqueidentifier = null output,
@CHANNELSOURCECODE nvarchar(10) = null output,
@CHANNELSOURCECODEVALUEID uniqueidentifier = null output,
@TSLONG bigint = 0 output,
@BASECURRENCYID uniqueidentifier = null output,
@PACKAGEPARTDEFINITIONID uniqueidentifier = null output,
@CHANNELPARTDEFINITIONID uniqueidentifier = null output
)
as
set nocount on;
exec dbo.[USP_MKTPACKAGE_EDITLOAD] @ID, @CURRENTAPPUSERID, @DATALOADED output, @NAME output, @DESCRIPTION output, @CODE output, @COST output, @COSTDISTRIBUTIONMETHODCODE output, @INSERTCOSTPERPIECE output, @TOTALCOSTPERPIECE output, @SITEID output, @SITEREQUIRED output, @SITECANBECHANGED output, @CHANNELCODE output, @CATEGORYCODEID output, null, null, null, @ACKNOWLEDGEMENTMAILINGSINSTALLED output, @MEMBERSHIPMAILINGSINSTALLED output, @CODEVALUEID output, @CHANNELSOURCECODE output, @CHANNELSOURCECODEVALUEID output, @TSLONG output, @BASECURRENCYID output, @PACKAGEPARTDEFINITIONID output, @CHANNELPARTDEFINITIONID output;
if @DATALOADED = 1
begin
set @DATALOADED = 0;
select
@DATALOADED = 1,
@CREATIVEID = [MKTPACKAGE].[CREATIVEID]
from dbo.[MKTPACKAGE]
where [MKTPACKAGE].[ID] = @ID;
end
set @SITEREQUIRED = dbo.[UFN_SITEREQUIREDFORUSERONFEATURE](@CURRENTAPPUSERID, '446B8B01-240A-41C3-A718-348264CC91BE', 1)
return 0;