The following lines contain the word 'select', 'insert', 'update' or 'delete':
select count(*)+1
from per_jobs -- bug fix 3680782
where business_group_id = Hr_General.Get_Business_Group_Id;
select -1 plan_id
,' ' plan_name
from sys.dual
union
select plan_id
,description plan_name
from bisbv_business_plans
where current_plan_flag = 'Y'
order by 2;
params(i).Value := htf.formSelectOpen( 'BPL_ID' );
htf.formSelectOption(ci_bpl.plan_name,NULL,
'VALUE="'||ci_bpl.plan_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select '1' lev_code,
message_text lev
from fnd_new_messages
where message_name = 'HR_BIS_AREA'
and application_id = 453
and language_code = userenv('LANG')
union
select '2' lev_code,
message_text lev
from fnd_new_messages
where message_name = 'HR_BIS_COUNTRY'
and application_id = 453
and language_code = userenv('LANG')
union
select '3' lev_code,
message_text lev
from fnd_new_messages
where message_name = 'HR_BIS_REGION'
and application_id = 453
and language_code = userenv('LANG');
params(i).Label := htf.formSelectOpen( 'GEOLVL',NULL, NULL,
'OnChange="getGeog(document.params.GEOVAL, '||
'document.params.GEOLVL.selectedIndex)" ' );
htf.formSelectOption(ci_geog_level.lev,NULL,
'VALUE="'||ci_geog_level.lev_code||'"');
params(i).Label := params(i).Label || htf.formSelectClose;
params(i).Value := htf.formSelectOpen( 'GEOVAL' );
htf.formSelectOption(ci_area.area,NULL,
'VALUE="'||ci_area.area_code||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select '-1' id
, ' ' value
from dual
UNION
select id
, value
from bis_product_categories_v
order by 2;
params(i).Value := htf.formSelectOpen( 'PRODID' );
htf.formSelectOption(ci_product_category.value,NULL,
'VALUE="'||ci_product_category.id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select lookup_code
,meaning
from fnd_common_lookups
where lookup_type = 'JOB_CATEGORIES'
order by 2;
params(i).Value := htf.formSelectOpen( 'JOBCAT' );
htf.formSelectOption(' ',NULL, 'VALUE="__ALL__"');
htf.formSelectOption(ci_job_category.meaning,NULL,
'VALUE="'||ci_job_category.lookup_code||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
params(i).Value := htf.formSelectOpen( 'JOBCAT1' );
htf.formSelectOption(ci_job_category.meaning,NULL,
'VALUE="'||ci_job_category.lookup_code||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
params(i).Value := htf.formSelectOpen( 'JOBCAT2' );
htf.formSelectOption(' ',NULL, 'VALUE="__ALL__"');
htf.formSelectOption(ci_job_category.meaning,NULL,
'VALUE="'||ci_job_category.lookup_code||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
params(i).Value := htf.formSelectOpen( 'JOBCAT3' );
htf.formSelectOption(' ',NULL, 'VALUE="__ALL__"');
htf.formSelectOption(ci_job_category.meaning,NULL,
'VALUE="'||ci_job_category.lookup_code||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select b.budget_id, b.budget_name
from pqh_budgets b ,pqh_budget_versions bv
where b.business_group_id = g_bus_id
and b.budget_id = bv.budget_id
and trunc(sysdate) between bv.date_from and nvl( bv.date_to, sysdate+1 )
order by b.budget_name ;
params(i).Value := htf.formSelectOpen( 'BGT_ID' );
htf.formSelectOption(ci_bgt_id.budget_name, NULL,
'VALUE="'||ci_bgt_id.budget_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select b.budget_id, b.name
from per_budgets b ,per_budget_versions bv
where b.business_group_id = g_bus_id
and b.budget_id = bv.budget_id
and trunc(sysdate) between bv.date_from and nvl( bv.date_to, sysdate+1 )
order by b.name ;
params(i).Value := htf.formSelectOpen( 'BGT_ID' );
htf.formSelectOption(ci_bgt_id.name, NULL,
'VALUE="'||ci_bgt_id.budget_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select lookup_code
,meaning
from hr_lookups
where lookup_type = 'PROC_PERIOD_TYPE'
and lookup_code in ('CM','BM','Q','SY','Y')
order by decode(lookup_code, 'CM',1, 'BM',2, 'Q',3, 'SY',6, 'Y',12, 99);
params(i).Value := htf.formSelectOpen( 'FRQNCY' );
htf.formSelectOption(ci_frequency.meaning, NULL,
'VALUE="'||ci_frequency.lookup_code||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select '-1' territory_code
, ' ' country
from dual
union
select territory_code
, territory_short_name country
from fnd_territories_vl
order by 2;
select '-1' region_code, ' ' region
from dual
union
select lookup_code region_code, meaning region
from fnd_lookups
where lookup_type = 'REGION'
order by 2;
select b.budget_id, b.name
from per_budgets b ,per_budget_versions bv
where b.business_group_id = g_bus_id
and b.budget_id = bv.budget_id
and trunc(sysdate) between bv.date_from and nvl( bv.date_to, sysdate+1 );
params(i).Value := htf.formSelectOpen('BGT_ID');
htf.formSelectOption(ci_bgt_id.name, NULL,
'VALUE="'||ci_bgt_id.budget_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select competence_id, name
from per_competences_vl
where business_group_id = g_bus_id
or business_group_id is null -- bug 2518364 dsheth Sep 3, 2002
order by 2;
params(i).Value := htf.formSelectOpen('COMPID');
htf.formSelectOption(ci_compid.name, NULL,
'VALUE="'||ci_compid.competence_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select c.currency_code , c.name
from per_business_groups b , fnd_currencies_vl c
where b.business_group_id = hr_bis.get_sec_profile_bg_id -- bug 2968520
and c.enabled_flag = 'Y'
and sysdate between nvl(c.start_date_active, hr_general.start_of_time)
and nvl(c.end_date_active, hr_general.end_of_time)
order by decode(b.currency_code, c.currency_code, 1,2) , c.currency_code;
params(i).Value := htf.formSelectOpen('CURRCD');
htf.formSelectOption(ci_currcd.currency_code||' - '||ci_currcd.name, NULL,
'VALUE="'||ci_currcd.currency_code||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
params(i).Value := htf.formSelectOpen('DISPLY');
params(i).Value := params(i).Value || htf.formSelectOption(fnd_message.get_string( 'HRI' ,'HR_BIS_TOP'), NULL, 'VALUE="'||'HR_BIS_TOP'||'"');
params(i).Value := params(i).Value || htf.formSelectOption(fnd_message.get_string( 'HRI' ,'HR_BIS_BOTTOM'), NULL, 'VALUE="'||'HR_BIS_BOTTOM'||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
params(i).Value := params(i).Value || htf.formSelectOpen('DCOUNT');
params(i).Value := params(i).Value || htf.formSelectOption(inc_val, NULL, 'VALUE="'||inc_val||'"');
params(i).Value := params(i).Value || htf.formSelectOption(10, 'Yes', 'VALUE="10"');
params(i).Value := params(i).Value || htf.formSelectOption(inc_val, NULL, 'VALUE="'||inc_val||'"');
params(i).Value := params(i).Value || htf.formSelectOption(inc_amt*inc_val, NULL, 'VALUE="'||inc_amt*inc_val||'"');
params(i).Value := params(i).Value || htf.formSelectOption(inc_amt*inc_val, NULL, 'VALUE="'||inc_amt*inc_val||'"');
params(i).Value := params(i).Value || htf.formSelectOption('99', NULL, 'VALUE="99"');
params(i).Value := params(i).Value || htf.formSelectClose;
select message_name , message_text
from fnd_new_messages
where message_name in ('HR_BIS_INCLUDE','HR_BIS_EXCLUDE')
and language_code = userenv('LANG')
and application_id = 453
order by decode(message_name,'HR_BIS_EXCLUDE','1,2');
params(i).Value := htf.formSelectOpen('EXCCUR');
htf.formSelectOption(ci_exccur.message_text, NULL,
'VALUE="'||ci_exccur.message_name||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select grade_id,name
from per_grades
where business_group_id = g_bus_id
order by name;
params(i).Value := htf.formSelectOpen('GRD_ID');
params(i).Value := params(i).Value || htf.formSelectOption(' ', NULL, 'VALUE="-1"');
htf.formSelectOption(ci_grd_id.name, NULL,
'VALUE="'||ci_grd_id.grade_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
params(i).Value := htf.formSelectOpen('EMPAPL');
|| htf.formSelectOption(fnd_message.get_string( 'HRI' ,'HR_BIS_CURRENT_EMPL_IN_JOB'),
NULL,
'VALUE="E"');
|| htf.formSelectOption(fnd_message.get_string( 'HRI' ,'HR_BIS_CURRENT_APPL_FOR_JOB'),
NULL,
'VALUE="A"');
params(i).Value := params(i).Value || htf.formSelectClose;
params(i).Value := htf.formSelectOpen('ORDERB');
htf.formSelectOption(fnd_message.get_string('HRI' ,'HR_BIS_TOTAL')
|| ' ' || fnd_message.get_string('HRI', 'HR_BIS_SEPARATED'),
NULL, 'VALUE="HR_BIS_TOTAL"');
htf.formSelectOption(fnd_message.get_string('HRI', 'HR_BIS_PERCENT')
|| ' ' || fnd_message.get_string('HRI', 'HR_BIS_SEPARATED'),
NULL, 'VALUE="HR_BIS_PERCENT"');
htf.formSelectOption(fnd_message.get_string('HRI', 'HR_BIS_PERCENT')
|| ' ' || fnd_message.get_string('HRI', 'HR_BIS_INCREASE'),
NULL, 'VALUE="HR_BIS_PERCENT"');
htf.formSelectOption(fnd_message.get_string('HRI' ,'HR_BIS_TOTAL')
|| ' ' || fnd_message.get_string('HRI', 'HR_BIS_INCREASE'),
NULL, 'VALUE="HR_BIS_TOTAL"');
params(i).Value := params(i).Value || htf.formSelectClose;
select meaning, lookup_code
from hr_lookups
where lookup_type = 'YES_NO'
and lookup_code IN ('Y', 'N');
params(i).Value := htf.formSelectOpen('ORGPRC');
htf.formSelectOption(lookup_yes, NULL, 'VALUE="ISRO"');
htf.formSelectOption(lookup_no, 'Yes', 'VALUE="ISNR"');
htf.formSelectOption(lookup_yes, NULL, 'VALUE="ISNR"');
htf.formSelectOption(lookup_no, NULL, 'VALUE="SINR"');
htf.formSelectOption(lookup_yes, NULL, 'VALUE="SIRO"');
htf.formSelectOption(lookup_no, NULL, 'VALUE="SINR"');
params(i).Value := params(i).Value || htf.formSelectClose;
select DISTINCT payroll_id , payroll_name
from pay_payrolls_f
where business_group_id = g_bus_id
order by payroll_name;
params(i).Value := htf.formSelectOpen('PAYRLL');
params(i).Value := params(i).Value || htf.formSelectOption(' ', NULL, 'VALUE="-1"');
htf.formSelectOption(ci_payrll.payroll_name, NULL,
'VALUE="'||ci_payrll.payroll_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select lookup_code,meaning
from hr_lookups /* bug fix 3323544*/
where lookup_type = p_lookup_type
and enabled_flag = 'Y' /* bug fix 1608726 */
order by 2;
params(i).Value := htf.formSelectOpen(P_FORM_NAME);
params(i).Value := params(i).Value || htf.formSelectOption(' ', NULL, 'VALUE="' || P_ALL_OPTION || '"');
htf.formSelectOption(ci_lookup.meaning, NULL,
'VALUE="'||ci_lookup.lookup_code||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
params(i).Value := htf.formSelectOpen('PFMEAS');
htf.formSelectOption(fnd_message.get_string('HRI','HR_BIS_MINIMUM_PROFICIENCY'),
NULL,
'VALUE="M"');
htf.formSelectOption(fnd_message.get_string('HRI','HR_BIS_PROFICIENCY_RANGE'),
NULL,
'VALUE="R"');
params(i).Value := params(i).Value || htf.formSelectClose;
select message_name , message_text
from fnd_new_messages
where language_code = userenv('LANG')
and application_id = 453
and message_name in ('HR_BIS_GRADE', 'HR_BIS_PERFORMANCE_RATING', 'HR_BIS_SERVICE_BAND',
'HR_BIS_JOB', 'HR_BIS_LOCATION', 'HR_BIS_GENDER')
UNION
select message_name , message_text
from fnd_new_messages , per_business_groups
where business_group_id = hr_bis.get_sec_profile_bg_id -- bug 2968520
and legislation_code = 'US'
and language_code = userenv('LANG')
and application_id = 453
and message_name = 'HR_BIS_EEO_CATEGORY'
UNION
select message_name , message_text
from fnd_new_messages fnm , per_business_groups bus
where bus.business_group_id = hr_bis.get_sec_profile_bg_id -- bug 2968520
and language_code = userenv('LANG')
and application_id = 453
and legislation_code <> 'US'
and message_name = 'HR_BIS_ETHNIC_ORIGIN' order by 2;
select message_name , message_text
from fnd_new_messages
where language_code = userenv('LANG')
and application_id = 453
and message_name in ('HR_BIS_AGE_YEARS', 'HR_BIS_LOS_YEARS', 'HR_BIS_GRADE', 'HR_BIS_PERFORMANCE_RATING')
order by message_name;
select message_name,
message_text
from fnd_new_messages
where message_name IN ('HR_BIS_TIME', 'HR_BIS_GEOGRAPHY', 'HR_BIS_PRODUCT')
and application_id = 453
and language_code = userenv('LANG')
order by 1 desc;
params(i).Value := htf.formSelectOpen('VIEWBY');
htf.formSelectOption(ci_viewby.message_text, NULL, 'VALUE="'||ci_viewby.message_name||'"');
htf.formSelectOption(ci_viewby.message_text, NULL, 'VALUE="'||ci_viewby.message_name||'"');
htf.formSelectOption(ci_viewby.message_text, NULL, 'VALUE="'||ci_viewby.message_name||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select organization_id, organization_name
from hri_org_lov_v
order by organization_name;
params(i).Value := htf.formSelectOpen('P_ORGANIZATION_ID');
params(i).Value := params(i).Value || htf.formSelectOption(' ', NULL, 'VALUE="-1"');
htf.formSelectOption(ci_org_list.organization_name, NULL,
'VALUE="'||ci_org_list.organization_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select job_id, name job_name
from per_jobs -- bug fix 3680782
where business_group_id = Hr_General.Get_Business_Group_Id
order by name; -- use of p_option = 1
params(i).Value := htf.formSelectOpen('P_JOB_ID');
params(i).Value := params(i).Value || htf.formSelectOption(' ', NULL, 'VALUE="-1"');
htf.formSelectOption(ci_job_list.job_name, NULL,
'VALUE="'||ci_job_list.job_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select location_id, location_name
from hri_loc_lov_v;
params(i).Value := htf.formSelectOpen('P_LOCATION_ID');
params(i).Value := params(i).Value || htf.formSelectOption(' ', NULL, 'VALUE="-1"');
htf.formSelectOption(ci_loc_list.location_name, NULL,
'VALUE="'||ci_loc_list.location_id||'"');
params(i).Value := params(i).Value || htf.formSelectClose;
select substrb( web_html_call, 48, length(web_html_call)-49)
from fnd_form_functions
where function_name = 'BIS_' || cp_report;