USP_DATAFORMTEMPLATE_VIEW_SYSTEMROLESUMMARY
The load procedure used by the view dataform template "System Role Summary 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. |
@NAME | nvarchar(255) | INOUT | Name |
@DESCRIPTION | nvarchar(max) | INOUT | Description |
@CANCUSTOMIZEHOMEPAGE | bit | INOUT | Can customize home page |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_SYSTEMROLESUMMARY
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@NAME nvarchar(255) = null output,
@DESCRIPTION nvarchar(max) = null output,
@CANCUSTOMIZEHOMEPAGE bit = null output
)
as
set nocount on;
set @DATALOADED = 0
select
@DATALOADED = 1,
@NAME = SR.NAME,
@DESCRIPTION = SR.DESCRIPTION,
@CANCUSTOMIZEHOMEPAGE = coalesce(PERMS.GRANTORDENY, 0)
from
dbo.SYSTEMROLE AS SR
left outer join dbo.SYSTEMROLEPERM_DATAFORMINSTANCE as PERMS on SR.ID = PERMS.SYSTEMROLEID
and PERMS.DATAFORMINSTANCECATALOGID = '691E1971-13B1-4947-AAD5-1D47103124F4'
where
SR.ID = @ID;
return 0;