USP_DATAFORMTEMPLATE_EDITLOAD_EDUCATIONALINSTITUTION_DETAILS
The load procedure used by the edit dataform template "Educational Institution Details Edit 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. |
@TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
@CLASSIFICATIONCODE | tinyint | INOUT | Classification |
@TYPECODEID | uniqueidentifier | INOUT | Type |
@FICECODE | nvarchar(50) | INOUT | FICE code |
@LOCATIONCODEID | uniqueidentifier | INOUT | Location |
@INFOSOURCECODEID | uniqueidentifier | INOUT | Information source |
@WEBADDRESS | UDT_WEBADDRESS | INOUT | Website |
@NAME | nvarchar(100) | INOUT | Name |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_EDUCATIONALINSTITUTION_DETAILS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@CLASSIFICATIONCODE tinyint = null output,
@TYPECODEID uniqueidentifier = null output,
@FICECODE nvarchar(50) = null output,
@LOCATIONCODEID uniqueidentifier = null output,
@INFOSOURCECODEID uniqueidentifier = null output,
@WEBADDRESS dbo.UDT_WEBADDRESS = null output,
@NAME nvarchar(100) = null output
)
as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@CLASSIFICATIONCODE=dbo.EDUCATIONALINSTITUTION.CLASSIFICATIONCODE,
@TYPECODEID=dbo.EDUCATIONALINSTITUTION.TYPECODEID,
@FICECODE = dbo.EDUCATIONALINSTITUTION.FICECODE,
@LOCATIONCODEID=dbo.EDUCATIONALINSTITUTION.LOCATIONCODEID,
@INFOSOURCECODEID=dbo.EDUCATIONALINSTITUTION.INFOSOURCECODEID,
@WEBADDRESS = dbo.CONSTITUENT.WEBADDRESS,
@TSLONG = dbo.EDUCATIONALINSTITUTION.TSLONG,
@NAME = dbo.EDUCATIONALINSTITUTION.NAME
from
dbo.EDUCATIONALINSTITUTION LEFT OUTER JOIN dbo.CONSTITUENT ON EDUCATIONALINSTITUTION.ID=CONSTITUENT.ID
where
dbo.EDUCATIONALINSTITUTION.ID = @ID;
return 0;