USP_DATAFORMTEMPLATE_ADD_USERDEFINEDELEMENTATTACHMENT_PRELOAD
The load procedure used by the edit dataform template "User-defined Element Attachment Add Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@USERDEFINEDELEMENTID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@AUTHORID | uniqueidentifier | INOUT | Author |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_USERDEFINEDELEMENTATTACHMENT_PRELOAD
(
@CURRENTAPPUSERID uniqueidentifier,
@USERDEFINEDELEMENTID uniqueidentifier,
@AUTHORID uniqueidentifier = null output
)
as
set nocount on;
select top 1
@AUTHORID = [CONSTITUENTID]
from
dbo.APPUSER
where
ID = @CURRENTAPPUSERID;
return 0;