USP_DATAFORMTEMPLATE_ADD_EDUCATIONALHISTORY_PRELOAD
The load procedure used by the edit dataform template "Educational History Add Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CONSTITUENTID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@ISPRIMARYRECORD | bit | INOUT | Primary alumni information |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_EDUCATIONALHISTORY_PRELOAD
(
@CONSTITUENTID uniqueidentifier,
@ISPRIMARYRECORD bit = null output
)
as
set nocount on;
select
@ISPRIMARYRECORD = case count(*) when 0 then 1 else 0 end
from dbo.EDUCATIONALHISTORY
where
CONSTITUENTID = @CONSTITUENTID
and ISPRIMARYRECORD = 1;
return 0;