USP_DATAFORMTEMPLATE_EDIT_MKTSEGMENTREVENUE
The save procedure used by the edit dataform template "Revenue Segment Edit Form".
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter indicating the ID of the record being edited. |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the procedure. |
@NAME | nvarchar(100) | IN | Name |
@DESCRIPTION | nvarchar(255) | IN | Description |
@CODE | nvarchar(10) | IN | Code |
@QUERYVIEWCATALOGID | uniqueidentifier | IN | Records source |
@SELECTIONS | xml | IN | Selections |
@GROUPS | xml | IN | Groups |
Definition
Copy
CREATE procedure dbo.[USP_DATAFORMTEMPLATE_EDIT_MKTSEGMENTREVENUE]
(
@ID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier = null,
@NAME nvarchar(100),
@DESCRIPTION nvarchar(255),
@CODE nvarchar(10),
@QUERYVIEWCATALOGID uniqueidentifier,
@SELECTIONS xml,
@GROUPS xml
)
as
set nocount on;
begin try
--Save the segment...
exec dbo.[USP_DATAFORMTEMPLATE_EDIT_MKTSEGMENT] @ID, @CHANGEAGENTID, @NAME, @DESCRIPTION, @CODE, @QUERYVIEWCATALOGID, @SELECTIONS, @GROUPS;
end try
begin catch
exec dbo.USP_RAISE_ERROR;
return 1;
end catch
return 0;