USP_DATAFORMTEMPLATE_VIEW_CONSTITUENCYDISPLAYNAME
The load procedure used by the view dataform template "Constituency Name 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. |
@DISPLAYNAME | nvarchar(100) | INOUT | Display name |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CONSTITUENCYDISPLAYNAME
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@DISPLAYNAME nvarchar(100) = null output
)
as
set nocount on;
select
@DATALOADED = 1,
@DISPLAYNAME = DESCRIPTION
from dbo.CONSTITUENCYSYSTEMNAME
where ID = @ID
if @DATALOADED = 0
select
@DATALOADED = 1,
@DISPLAYNAME = DESCRIPTION
from dbo.CONSTITUENCYCODE
where ID = @ID
return 0;