USP_DATAFORMTEMPLATE_EDITLOAD_MKTSEGMENTREVENUE
The load procedure used by the edit dataform template "Revenue Segment Edit Form"
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 |
@QUERYVIEWCATALOGID | uniqueidentifier | INOUT | Records source |
@SELECTIONS | xml | INOUT | Selections |
@GROUPS | xml | INOUT | Groups |
@SMARTQUERIESEXIST | bit | INOUT | Smart queries exist |
@ISINUSE | bit | INOUT | Is in use |
@SELECTIONTYPE | tinyint | INOUT | Selection type |
@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. |
Definition
Copy
CREATE procedure dbo.[USP_DATAFORMTEMPLATE_EDITLOAD_MKTSEGMENTREVENUE]
(
@ID uniqueidentifier,
@CURRENTAPPUSERID uniqueidentifier,
@DATALOADED bit = 0 output,
@NAME nvarchar(100) = null output,
@DESCRIPTION nvarchar(255) = null output,
@CODE nvarchar(10) = null output,
@QUERYVIEWCATALOGID uniqueidentifier = null output,
@SELECTIONS xml = null output,
@GROUPS xml = null output,
@SMARTQUERIESEXIST bit = null output,
@ISINUSE bit = null output,
@SELECTIONTYPE tinyint = null output,
@TSLONG bigint = 0 output
)
as
set nocount on;
set @SELECTIONTYPE = 2;
--Load the segment
exec dbo.[USP_DATAFORMTEMPLATE_EDITLOAD_MKTSEGMENT] @ID, @CURRENTAPPUSERID, @DATALOADED output, @NAME output, @DESCRIPTION output, @CODE output, @QUERYVIEWCATALOGID output, @SELECTIONS output, @GROUPS output, @SMARTQUERIESEXIST output, @ISINUSE output, @TSLONG output;
return 0;