I am creating custom reports on Oracle Application Express and I would like to know how I can retrieve the value in the search bar and use it as a parameter to generate reports.
Below is a screenshot for reference.
In the search bar I am selecting a need by date and I need my report to run based on that selected need by date. The need by date is a field in my SQL script and I have also defined a parameter.
select EBS_PO_IR_ITEM.ITEM_CODE as ITEM_CODE,
EBS_PO_IR_ITEM.ITEM_DESCRIPTION as ITEM_DESCRIPTION,
EBS_PO_IR_ITEM.UNIT_MEAS_LOOKUP_CODE as UNIT_MEAS_LOOKUP_CODE,
EBS_PO_IR_ITEM.MARKED as MARKED, EBS_PO_IR_ITEM.REQUIRED_QUANTITY as
REQUIRED_QUANTITY from EBS_PO_IR_ITEM EBS_PO_IR_ITEM where
EBS_PO_IR_ITEM.MARKED = 'Y' and EBS_PO_IR_ITEM.NEED_BY_DATE =
NVL(:P_NEED_BY_DATE, EBS_PO_IR_ITEM.NEED_BY_DATE)
I did some research and could find any information regarding the above. If you can give me some hints or provide me a link, I will be grateful.