USP_DATAFORMTEMPLATE_VIEW_ORIGINATIONSETTINGS
The load procedure used by the view dataform template "Origination Settings View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@REVENUESOURCECODE | nvarchar(100) | INOUT | Default constituent source code for revenue |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_ORIGINATIONSETTINGS
(
@DATALOADED bit = 0 output,
@REVENUESOURCECODE nvarchar(100) = null output
)
as
set nocount on;
--Set DATALOADED to 1 since the table may or may not exist
set @DATALOADED = 1
select top(1)
@REVENUESOURCECODE = dbo.UFN_INFOSOURCECODE_GETDESCRIPTION(REVENUESOURCECODEID)
from
dbo.ORIGINATIONSETTING
return 0;