good to all, currently I have oracle forms version 12.2.1.4, in oracle linux, I have a form and in that form it has a period field, I have a code in that form referring to another table, for when the period status is in status ='C' , I can not edit that form but it is not working for me, this is my code:
declare
v_period_p number(7);
v_period_st number(7);
cursor period is
select p.period,p.period_st
from period p,mov h
where p.period=h.period
and p.company=h.company
group by p.period,p.period_st;
begin
open period;
fetch period into v_period_p,v_period_st;
close period;
if :movh.period=v_period_p
and v_period_st='C'
then
set_block_property('movh',update_allowed,property_false);
end if;
end;