-- List Request field information
spool c:\request_field_info_yyyymmdd.txt
set linesize 1000
select crt.request_type_id, crt.request_type_name,
ns.section_id, nsl.section_type_code, ns.section_name,
npsf.prompt, npsf.parameter_token,
npsf.batch_number, npsf.parameter_column_number
from KNTA_SECTION_LAYOUTS nsl, KCRT_REQUEST_TYPES crt,
KNTA_SECTIONS ns, KNTA_PARAMETER_SET_FIELDS npsf
where crt.enabled_flag = 'Y'
and nsl.entity_primary_key = crt.request_type_id
and nsl.section_id = ns.section_id
and nsl.section_id = npsf.section_id
-- limit to a single request type. Comment out to list all request types
and crt.request_type_name = 'Inventory Restock Request'
order by
-- to locate field by parameter and batch number
npsf.batch_number, npsf.parameter_column_number
-- OR
-- to list fields in visual order of appearance on the request
-- nsl.entity_primary_key, nsl.seq, npsf.row_number, npsf.column_number
spool off
|