USP_DATAFORMTEMPLATE_EDIT_THEME1
The save procedure used by the edit dataform template "Theme 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. |
@CLIENTSITESID | int | IN | Clientsites |
@NAME | nvarchar(256) | IN | Name |
@DESCRIPTION | nvarchar(2048) | IN | Description |
@LAYOUTID | int | IN | Layoutid |
@TEMPLATEID | int | IN | Templateid |
@DEFAULTSTYLING | int | IN | Defaultstyling |
@IMAGEID | int | IN | Imageid |
@DEFAULTSTYLINGSEQUENCE | int | IN | DefaultStylingSequence |
@LAYOUTSTYLINGSEQUENCE | int | IN | LayoutStylingSequence |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_EDIT_THEME1
(
@ID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier = null,
@CLIENTSITESID int,
@NAME nvarchar(256),
@DESCRIPTION nvarchar(2048),
@LAYOUTID int,
@TEMPLATEID int,
@DEFAULTSTYLING int,
@IMAGEID int,
@DEFAULTSTYLINGSEQUENCE int,
@LAYOUTSTYLINGSEQUENCE int
)
as
set nocount on;
if @CHANGEAGENTID is null
exec dbo.USP_CHANGEAGENT_GETORCREATECHANGEAGENT @CHANGEAGENTID output
begin try
-- handle updating the data
update dbo.THEME set
CLIENTSITESID = @CLIENTSITESID,
NAME = @NAME,
DESCRIPTION = @DESCRIPTION,
LAYOUTID = @LAYOUTID,
TEMPLATEID = @TEMPLATEID,
DEFAULTSTYLING = @DEFAULTSTYLING,
IMAGEID = @IMAGEID,
DEFAULTSTYLINGSEQUENCE = @DEFAULTSTYLINGSEQUENCE,
LAYOUTSTYLINGSEQUENCE = @LAYOUTSTYLINGSEQUENCE,
CHANGEDBYID = @CHANGEAGENTID,
DATECHANGED = getdate()
where ID = @ID
end try
begin catch
exec dbo.USP_RAISE_ERROR
return 1
end catch
return 0;