<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: ORB Report Name -->
 <LOVS_ROW>
  <GUID>1F0480A825896E8BE0636ADA860A3BB8</GUID>
  <LOV_NAME>ORB Report Name</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
olf_name.property_value value,
olf_desc.property_value description
from
xxorb.orb_report orr,
xxorb.orb_meta_object omo,
xxorb.orb_localizedstring_flat olf_name,
xxorb.orb_localizedstring_flat olf_desc
where
olf_name.meta_object_id = orr.id and
olf_name.property_key = &apos;name&apos; and
olf_desc.meta_object_id(+) = orr.id and
omo.id=orr.id and
olf_desc.property_key(+) = &apos;description&apos; and 
(:$flex$.report_folder_name is null or
omo.parent_id=(
select 
omo.id
from 
xxorb.orb_meta_object omo,
xxorb.orb_localizedstring_flat olf
where 
omo.id=olf.meta_object_id and
olf.property_key = &apos;name&apos; and
omo.obj_type=12 and
olf.property_value=:$flex$.report_folder_name
)
)</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: ORB Report Parameters -->
 <REPORTS_ROW>
  <GUID>1F69CC0A6C6F6A0DE0636ADA860AA809</GUID>
  <SQL_TEXT>select
report_id,
report_name,
rownum*10 blitz_param_display_sequence,
parameters.param_order orb_param_order,
xxen_orb_util.blitz_parameter_name(id,parameter_name) blitz_parameter_name,
parameter_name orb_parameter_name_display,
param_name orb_param_name,
id orb_parameter_id,
parameters.obj_key orb_param_obj_key,
component_type orb_component_type,
case when component_type like &apos;number%&apos; then &apos;Number&apos;
when component_type like &apos;text%&apos; then &apos;Char&apos;
when component_type like &apos;date%&apos; then &apos;Date&apos;
when component_type like &apos;date%&apos; and
exists (select 1 from xxorb.orb_properties_flat opf where opf.meta_object_id=parameters.id and opf.property_key=&apos;INCLUDE_TIME&apos;
and opf.property_value=&apos;true&apos;) then &apos;DateTime&apos;
when component_type like &apos;%selection-prompt&apos; then &apos;LOV custom&apos;
end blitz_datatype_report,
required_flag blitz_required_flag,
xxen_orb_util.construct_parameter_sql_text(report_id,parameters.param_order) blitz_parameter_sql_text,
case when component_type like &apos;%selection-prompt&apos; then xxen_orb_util.construct_lov_sql(report_id,id) end blitz_parameter_lov_sql
from 
(select 
opm.parent_id report_id,
orv.report_name,
param_order display_sequence,
case when orp.component_type like &apos;%range%&apos; then olf.property_value||&apos; From&apos; else olf.property_value end parameter_name,
orp.param_name,
orp.id,
orp.param_order,
orp.component_type,
opm.obj_key,
opm.obj_properties,
case when orp.param_required=0 then &apos;N&apos; else &apos;Y&apos; end required_flag
from 
xxorb.orb_meta_object opm,
xxorb.orb_report_parameter orp,
xxorb.orb_localizedstring_flat olf,
xxorb.orb_report_v orv
where 1=1 and
opm.obj_type=16 and 
olf.property_key(+)=&apos;name&apos; and
olf.locale(+)=&apos;en&apos; and
olf.meta_object_id(+)=orp.id and
opm.id=orp.id and 
orv.report_id=opm.parent_id
union all
select 
opm.parent_id report_id,
orv.report_name,
param_order display_sequence,
olf.property_value||&apos; To&apos; parameter_name,
orp.param_name||&apos;_1&apos;,
orp.id,
orp.param_order,
orp.component_type,
opm.obj_key,
opm.obj_properties,
case when orp.param_required=0 then &apos;N&apos; else &apos;Y&apos; end required_flag
from 
xxorb.orb_meta_object opm,
xxorb.orb_report_parameter orp,
xxorb.orb_localizedstring_flat olf,
xxorb.orb_report_v orv
where 1=1 and
opm.obj_type=16 and 
olf.property_key(+)=&apos;name&apos; and
olf.locale(+)=&apos;en&apos; and
orp.component_type like &apos;%range%&apos; and
olf.meta_object_id(+)=orp.id and
opm.id=orp.id and 
orv.report_id=opm.parent_id
order by display_sequence,parameter_name
) parameters</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>ORB Report Parameters</REPORT_NAME>
    <DESCRIPTION>Orbit Report Parameters with equivalent mapping for Blitz Report Parameter including datatype,LOV SQL .</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>ORBIT</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>trim(orv.report_name)=:report_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>ORB Report Name</LOV_NAME>
    <LOV_GUID>1F0480A825896E8BE0636ADA860A3BB8</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
olf_name.property_value value,
olf_desc.property_value description
from
xxorb.orb_report orr,
xxorb.orb_meta_object omo,
xxorb.orb_localizedstring_flat olf_name,
xxorb.orb_localizedstring_flat olf_desc
where
olf_name.meta_object_id = orr.id and
olf_name.property_key = &apos;name&apos; and
olf_desc.meta_object_id(+) = orr.id and
omo.id=orr.id and
olf_desc.property_key(+) = &apos;description&apos; and 
(:$flex$.report_folder_name is null or
omo.parent_id=(
select 
omo.id
from 
xxorb.orb_meta_object omo,
xxorb.orb_localizedstring_flat olf
where 
omo.id=olf.meta_object_id and
olf.property_key = &apos;name&apos; and
omo.obj_type=12 and
olf.property_value=:$flex$.report_folder_name
)
)</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
