USP_DATAFORMTEMPLATE_EDITLOAD_MKTVENDORLIST
The load procedure used by the edit dataform template "Marketing Vendor List Edit Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@NAME | nvarchar(43) | INOUT | Name |
@DESCRIPTION | nvarchar(255) | INOUT | Description |
@CODE | nvarchar(10) | INOUT | Code |
@LISTCATEGORYCODEID | uniqueidentifier | INOUT | Category |
@RECORDSOURCEID | uniqueidentifier | INOUT | Record source |
@RECORDSOURCELOCKED | bit | INOUT | Record source locked |
@RECORDSOURCEHIDDEN | bit | INOUT | Record source hidden |
@BASERENTALCOST | money | INOUT | Base rental cost |
@BASERENTALCOSTBASISCODE | tinyint | INOUT | Base rental cost basis code |
@BASEEXCHANGECOST | money | INOUT | Base exchange cost |
@BASEEXCHANGECOSTBASISCODE | tinyint | INOUT | Base exchange cost basis code |
@CODEVALUEID | uniqueidentifier | INOUT | 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 | Base currency ID |
@SITEID | uniqueidentifier | INOUT | Site |
@SITEREQUIRED | bit | INOUT | Site required? |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@LISTPARTDEFINITIONID | uniqueidentifier | INOUT |
Definition
Copy
CREATE procedure dbo.[USP_DATAFORMTEMPLATE_EDITLOAD_MKTVENDORLIST]
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@NAME nvarchar(43) = null output,
@DESCRIPTION nvarchar(255) = null output,
@CODE nvarchar(10) = null output,
@LISTCATEGORYCODEID uniqueidentifier = null output,
@RECORDSOURCEID uniqueidentifier = null output,
@RECORDSOURCELOCKED bit = null output,
@RECORDSOURCEHIDDEN bit = null output,
@BASERENTALCOST money = null output,
@BASERENTALCOSTBASISCODE tinyint = null output,
@BASEEXCHANGECOST money = null output,
@BASEEXCHANGECOSTBASISCODE tinyint = null output,
@CODEVALUEID uniqueidentifier = null output,
@TSLONG bigint = 0 output,
@BASECURRENCYID uniqueidentifier = null output,
@SITEID uniqueidentifier = null output,
@SITEREQUIRED bit = null output,
@CURRENTAPPUSERID uniqueidentifier = null,
@LISTPARTDEFINITIONID uniqueidentifier = null output
)
as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
exec dbo.[USP_DATAFORMTEMPLATE_EDITLOAD_MKTLIST]
@ID,
@DATALOADED output,
@NAME output,
@DESCRIPTION output,
@CODE output,
@LISTCATEGORYCODEID output,
null,
@RECORDSOURCEID output,
@RECORDSOURCELOCKED output,
@RECORDSOURCEHIDDEN output,
@BASERENTALCOST output,
@BASERENTALCOSTBASISCODE output,
@BASEEXCHANGECOST output,
@BASEEXCHANGECOSTBASISCODE output,
@CODEVALUEID output,
@TSLONG output,
@BASECURRENCYID output,
@SITEID output,
null,
@CURRENTAPPUSERID,
@LISTPARTDEFINITIONID output;
set @SITEREQUIRED = dbo.[UFN_SITEREQUIREDFORUSERONFEATURE](@CURRENTAPPUSERID, 'FE10A752-E9BD-499A-A042-0E2D40DAD066', 1);
return 0;