USP_DATAFORMTEMPLATE_VIEW_FEEDALERTINSTANCEDATALIST
The load procedure used by the view dataform template "Feed Alert Instance Data List 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. |
@DATALISTSPECXML | xml | INOUT | Data list spec xml |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_FEEDALERTINSTANCEDATALIST
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@DATALISTSPECXML xml = null output
)
as
set nocount on;
select
@DATALOADED = 1,
@DATALISTSPECXML = D.DATALISTSPEC
from dbo.FEEDALERTINSTANCE as INSTANCE
inner join dbo.ALERTTYPE on INSTANCE.ALERTTYPEID = ALERTTYPE.ID
inner join dbo.DATALISTCATALOG as D on ALERTTYPE.DATALISTID = D.ID
where INSTANCE.ID = @ID