USP_DATAFORMTEMPLATE_VIEW_CMSCLIENTSITE_DEFAULTSETTINGS
The load procedure used by the view dataform template "Default Client Site View Form"
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. |
@USESCOMPLEXPASSWORDS | bit | INOUT | Uses complex passwords |
@MINIMUMPASSWORDLENGTH | int | INOUT | Minimum password length |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CMSCLIENTSITE_DEFAULTSETTINGS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@USESCOMPLEXPASSWORDS bit = null output,
@MINIMUMPASSWORDLENGTH int = null output
)
as
set nocount on;
declare @DEFAULTSITEID int = (select Value from Setting where ID=1)
set @USESCOMPLEXPASSWORDS = coalesce((select cast(VALUE as bit) from CMSSITESETTING where ENUMID=26 and CLIENTSITESID=@DEFAULTSITEID),0)
set @MINIMUMPASSWORDLENGTH = coalesce((select cast(VALUE as int) from CMSSITESETTING where ENUMID=6 and CLIENTSITESID=@DEFAULTSITEID),7)
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 1;
return 0;