Search This Blog

Tuesday, January 9, 2018

Oracle forms 10g to restrict the Query in the Form based on column value

DECLARE
  v_def_where   VARCHAR2(2000) := Get_Block_Property('XXFUJ_PM_DETAILS',DEFAULT_WHERE);
  v_new_where   VARCHAR2(2000);
  --v_condition varchar2(100) := 'EMPLOYEE';
 
BEGIN
  v_new_where := 'CATEGORY = ''MANAGER''';
  Set_Block_Property('XXFUJ_PM_DETAILS',DEFAULT_WHERE, v_new_where);
  Execute_Query;
  -- Now reset the DEFAULT_WHERE back to it's original value.
  --Set_Block_Property('TRANS',DEFAULT_WHERE, v_def_where);
END;

---------------

CATEGORY = ''MANAGER''            --two single quotes

<column_name> = ''<TEXT>''

No comments:

Post a Comment