How to place one canvas over other canvas in forms?
Can anyone please send me the code for placeing stacked canvas over content canvas.
Thanks
Saritha
Printable View
How to place one canvas over other canvas in forms?
Can anyone please send me the code for placeing stacked canvas over content canvas.
Thanks
Saritha
1) U should create stack canvas in desine time, using usual "create object" scenario.
-- create canvas
-- set canvas property -> stacked
-- set all needed view attributes
2) in any trigger (example --> WHEN-TREE-NODE-SELECTED)
u can hide (or show) stacked canvas:
-----------------------------------------
DECLARE
cr_n FTREE.NODE;
BEGIN
cr_n := Ftree.Get_Tree_Selection('tr', 1);
:ct.rg_prd := Ftree.Get_Tree_Node_Property('tr',
:SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
go_block('dcp');
clear_block(no_commit);
if is_list(:ct.rg_prd) then
execute_query;
set_view_property('c_dep',DISPLAY_POSITION,225,28);
show_view('c_dep');
go_block('v_all');
execute_query;
begin
select nm_product into :tot.nm_prod
from trd.dc_product
where rg_product = :ct.rg_prd;
end;
go_block('v_all');
else
hide_view('c_dep');
go_block('dcp');
clear_block(no_commit);
execute_query;
end if;
END;
----------------------------------------------
In this code --> c_dep - stacked canvas
view stacked canvas:
set_view_property('c_dep',DISPLAY_POSITION,225,28);
show_view('c_dep');
hide stacked canvas:
hide_view('c_dep');
This is real code from production application with liitle changes.