USP_DATAFORMTEMPLATE_VIEW_CMSUSER
The load procedure used by the view dataform template "CMS User View"
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. |
@USERNAME | nvarchar(50) | INOUT | Username |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CMSUSER
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@USERNAME nvarchar(50) = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
select @DATALOADED = 1,
@USERNAME = UserName
from dbo.ClientUsers
where Guid = @ID
return 0;