View not returning records in Forms
I am creating a custom form starting from TEMPLATE.fmb and used OE_ORDER_HEADERS_V as the base table for the Block.
When I querying the view from a SQL*Plus session after calling mo_global.set_policy_context('S', 303) it is returning rows.
But when I am querying the form it is not returning any row, though the Profile ORG_ID for the Responsibility is correctly set to 303. (Where clause in the property sheet of the block is null).
Is there anything special I need to do in TEMPLATE.fmb to get the form to return data? Can anyone tell me why I am not getting any data.