USP_DATAFORMTEMPLATE_VIEW_APPUSER_CMSPAGEEXPRESSION
The load procedure used by the view dataform template "CMS App User Page Expression"
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. |
@CMS_ISMAPPEDUSER | bit | INOUT | Is CMS mapped user |
@CMS_ISINTERNALUSER | bit | INOUT | Is CMS internal user |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_APPUSER_CMSPAGEEXPRESSION
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CMS_ISMAPPEDUSER bit = null output,
@CMS_ISINTERNALUSER bit = null output
)
as
set nocount on;
set @DATALOADED = 0;
select @DATALOADED = 1,
@CMS_ISMAPPEDUSER = 1,
@CMS_ISINTERNALUSER = ClientUsers.InternalUser
from ClientUsers join BBNCUSERMAP on BBNCUSERMAP.BBNCUSERNAME=ClientUsers.UserName
where BBNCUSERMAP.ID = @ID
if @DATALOADED = 0
begin
set @CMS_ISMAPPEDUSER = 0
set @CMS_ISINTERNALUSER = 0
set @DATALOADED = 1 --reset this to loaded so the page doesn't blow up
end
return 0;