Blitz Report Parameter Default Value Validation

Description

Categories
Enginatics
Repository
GitHub
Lists report parameters whose LOV returns an id that differs from the displayed value, and shows whether the parameter's default value is stored as that id or as the display text.

Default Value Correct is the id the LOV resolves the stored default to. Where it differs from Default Value, the default was entered as the display value instead of the id. Use the 'Show non matching defaults only' parameter to list those cases.

The framework binds the id for such LOVs, so a report level default given as display text only works through a fallback validation, which costs an additional LOV execution every time the run screen opens and is ambiguous if the same text also exists as an id. Template and user level defaults are matched against the id only, so there the display text does not resolve at all.

Is Function and Is Select show whether the default is expressed as a function, e.g. fnd_profile.value, or as a select statement, and Dupl Count how many of the listed parameters share the identical default expression.

Use the Category and Report Name parameters to limit the scope.

SQL 31 lines

Parameters 5

ParameterTypeList of values SQL
CategoryLOV
xrpv.report_id in (
select
xrca.report_id
from
xxen_report_category_assigns xrca,
xxen_report_categories_v xrcv
where
xrcv.category=:category and
xrcv.category_id=xrca.category_id
)
Report NameLOV
xrpv.report_name=:report_name
Show non matching defaults onlyLOV
x.default_value<>x.default_value_correct
Show functions onyLOV
x.is_function='Y'
Show selects onlyLOV
x.is_select='Y'