USP_DATAFORMTEMPLATE_VIEW_REPORTPAGEEXPRESSION
The load procedure used by the view dataform template "Report Page Expression 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. |
@NAME | nvarchar(100) | INOUT | Name |
@HASPARAMETERS | bit | INOUT | Has parameters |
@HASSELECTIONFILTERS | bit | INOUT | Has selection filters |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_REPORTPAGEEXPRESSION
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@NAME nvarchar(100) = null output,
@HASPARAMETERS bit = null output,
@HASSELECTIONFILTERS bit = null output
)
as
set nocount on;
set @DATALOADED = 0;
with xmlnamespaces ('bb_appfx_report' as tns, 'bb_appfx_commontypes' as common)
select
@DATALOADED = 1,
@NAME = R.UINAME,
@HASPARAMETERS = R.REPORTSPECXML.exist('tns:ReportSpec/common:FormMetaData'),
@HASSELECTIONFILTERS = R.REPORTSPECXML.exist('tns:ReportSpec/tns:IDSetFilterParameter')
from dbo.REPORTCATALOG as R
where R.ID = @ID;
return 0;