V_QUERY_REPORTPARAMETERS
Provides support for querying on the parameters for reports from the application catalog.
Fields
Field | Field Type | Null | Description |
---|---|---|---|
REPORTID | uniqueidentifier | Report ID | |
FIELDID | nvarchar(max) | yes | Field ID |
DATATYPE | nvarchar(18) | yes | Data type |
REQUIRED | int | yes | Required |
READONLY | int | yes | Read only |
HIDDEN | int | yes | Hidden |
MAXLENGTH | int | yes | Max length |
CAPTION | nvarchar(max) | yes | Caption |
DESCRIPTION | nvarchar(max) | yes | Description |
MAXVALUE | int | yes | Max value |
MINVALUE | int | yes | Min value |
PRECISION | int | yes | Precision |
SCALE | int | yes | Scale |
TIMEPRECISION | int | yes | Time precision |
DATETIMEWITHOFFSETPRECISION | int | yes | DateTimeWithOffset precision |
INCLUDETIMEONDATE | int | yes | Include time on date |
ALLOWMONTHDAYONFUZZYDATE | int | yes | Allow Month/Day on fuzzy date |
DEFAULTVALUETEXT | nvarchar(max) | yes | Default value text |
FIXEDVALUETEXT | nvarchar(max) | yes | Fixed value text |
CAPTIONRESOURCEKEY | nvarchar(max) | yes | Caption resource key |
CATEGORY | nvarchar(max) | yes | Category |
CATEGORYRESOURCEKEY | nvarchar(max) | yes | Category resource key |
DONOTAPPLYFORMAT | int | yes | Do not apply format |
MULTILINE | int | yes | Multiline |
APPLYPHONEFORMATTING | int | yes | Apply phone formatting |
ALLOWZOOM | int | yes | Allow zoom |
AVAILABLETOCLIENT | int | yes | Available to client |
DESCRIPTORTYPE | varchar(14) | Descriptor type | |
INSTALLEDPRODUCTSLIST | nvarchar(max) | yes | Installed product list |
INSTALLED | bit | yes | Installed |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 8/2/2010 7:06:50 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.7.1654.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE VIEW dbo.V_QUERY_REPORTPARAMETERS AS
with xmlnamespaces ('bb_appfx_report' as tns, 'bb_appfx_commontypes' as common)
select
R.ID as REPORTID,
report.fields.value('@FieldID', 'nvarchar(max)') as FIELDID,
coalesce(report.fields.value('@DataType', 'nvarchar(18)'), 'String') as DATATYPE,
coalesce(report.fields.value('@Required', 'bit'), 0) as REQUIRED,
coalesce(report.fields.value('@ReadOnly', 'bit'), 0) as READONLY,
coalesce(report.fields.value('@Hidden', 'bit'), 0) as HIDDEN,
coalesce(report.fields.value('@MaxLength', 'integer'), 0) as MAXLENGTH,
report.fields.value('@Caption', 'nvarchar(max)') as CAPTION,
report.fields.value('@Description', 'nvarchar(max)') as DESCRIPTION,
coalesce(report.fields.value('@MaxValue', 'integer'), 0) as MAXVALUE,
coalesce(report.fields.value('@MinValue', 'integer'), -1) as MINVALUE,
coalesce(report.fields.value('@PRECISION', 'integer'), -1) as PRECISION,
coalesce(report.fields.value('@Scale', 'integer'), -1) as SCALE,
coalesce(report.fields.value('@TimePrecision', 'integer'), 0) as TIMEPRECISION,
coalesce(report.fields.value('@DateTimeWithOffsetPrecision', 'integer'), 3) as DATETIMEWITHOFFSETPRECISION,
coalesce(report.fields.value('@IncludeTimeOnDate', 'bit'), 0) as INCLUDETIMEONDATE,
coalesce(report.fields.value('@AllowMonthDayOnFuzzyDate', 'bit'), 0) as ALLOWMONTHDAYONFUZZYDATE,
report.fields.value('@DefaultValueText', 'nvarchar(max)') as DEFAULTVALUETEXT,
report.fields.value('@FixedValueText', 'nvarchar(max)') as FIXEDVALUETEXT,
report.fields.value('@CaptionResourceKey', 'nvarchar(max)') as CAPTIONRESOURCEKEY,
report.fields.value('@Category', 'nvarchar(max)') as CATEGORY,
report.fields.value('@CategoryResourceKey', 'nvarchar(max)') as CATEGORYRESOURCEKEY,
coalesce(report.fields.value('@DoNotApplyFormat', 'bit'), 0) as DONOTAPPLYFORMAT,
coalesce(report.fields.value('@Multiline', 'bit'), 0) as MULTILINE,
coalesce(report.fields.value('@ApplyPhoneFormatting', 'bit'), 0) as APPLYPHONEFORMATTING,
coalesce(report.fields.value('@AllowZoom', 'bit'), 0) as ALLOWZOOM,
coalesce(report.fields.value('@AvailableToClient', 'bit'), 1) as AVAILABLETOCLIENT,
case
when report.fields.exist('common:CodeTable') = 1 then 'CodeTable'
when report.fields.exist('common:ValueList') = 1 then 'ValueList'
when report.fields.exist('common:SimpleDataList') = 1 then 'SimpleDataList'
when report.fields.exist('common:Collection') = 1 then 'Collection'
when report.fields.exist('common:SearchList') = 1 then 'SearchList'
when report.fields.exist('common:Link') = 1 then 'Link'
when report.fields.exist('common:File') = 1 then 'File'
when report.fields.exist('common:CreditCard') = 1 then 'CreditCard'
when report.fields.exist('common:Html') = 1 then 'Html'
else 'None'
end as DESCRIPTORTYPE,
dbo.UFN_INSTALLEDPRODUCTS_TRANSLATELIST(report.fields.query('common:InstalledProductList')) as INSTALLEDPRODUCTSLIST,
dbo.UFN_INSTALLEDPRODUCTS_OPTIONALPRODUCTSINSTALLED(report.fields.query('common:InstalledProductList')) as INSTALLED
/*#EXTENSION*/
from dbo.REPORTCATALOG as R
cross apply R.REPORTSPECXML.nodes('tns:ReportSpec/common:FormMetaData/common:FormFields/common:FormField') as report(fields)